if (type === "from") { routeParams.stops.features[0] = map.graphics.add(new esri.Graphic(stop.location, fromSymbol, { address:stop.address, score:stop.score })); } else if (type === "to") { routeParams.stops.features[1] = map.graphics.add(new esri.Graphic(stop.location, toSymbol, { address:stop.address, score:stop.score })); }
var fromLoc = new esri.geometry.Point( -117.194958859564,34.0573637535114,map.spatialReference); routeParams.stops.features[0] = map.graphics.add(new esri.Graphic(fromLoc, fromSymbol,{address:"ESRI Redlands"})); var toLoc = new esri.geometry.Point(-117.163797351249,32.7075263536336,map.spatialReference); routeParams.stops.features[1] = map.graphics.add(new esri.Graphic(toLoc, toSymbol,{address:"San Diego Convention Center"}));
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.