AnsweredAssumed Answered

Draw line with several paths to esri map

Question asked by jasonmcgraw on Mar 20, 2014
Latest reply on Mar 21, 2014 by JUihlein-esristaff

I am trying to draw a line between several paths on my esri map with no luck.  What's wrong with my code?

 for (var i = 1; i < data.length; i++) {                 polyline.addPath([[data[i - 1].longitude, data[i - 1].latitude], [data[i].longitude, data[i].latitude]]);             }              polylineSymbol.setStyle(esri.symbol.SimpleLineSymbol.STYLE_DASH);             polylineSymbol.setColor(new dojo.Color([255, 255, 0, 0.5]));             polylineSymbol.setWidth(4);             routeLayer.add(new esri.Graphic(polyline, polylineSymbol));