AnsweredAssumed Answered

Getting a string.substitute could not find key "layername" in template error when trying to initalize CreateDriveTimeAreas

Question asked by JAPiasente on Apr 10, 2017
Latest reply on Feb 15, 2018 by matthewfnicol

I am trying to create drive time areas for a point.  When I call the routine that calls the code I get the following error:

string.substitute could not find key "layername" in template.  I am following the scarce documentation for this so this is what I am doing

 

var params =
{
id: "analysisTool",
inputLayer: myLayer,
portalUrl: "https://www.arcgis.com",
showHelp: false,
map: map,

}

 

 var analysisTool = new CreateDriveTimeAreas(params, "driveTimesDiv");

 

The code breaks when it calls the instantiation of the CreateDriveTimesAreas.

 

Can anyone please tell me what I am doing wrong here?

Outcomes