AnsweredAssumed Answered

PolylineSymbols are being added, but not displayed

Question asked by cmacn024 on Jul 29, 2013
Latest reply on Jul 29, 2013 by evtguy
Hi everyone, I have a problem that I'm hoping one of you can help me with. I've got a bunch of PictureMarkerSymbols, and I want to draw lines between them and a single other PictureMarkerSymbol. I've got all of the necessary coordinates, and I'm not seeing any errors when I create the appropriate objects. However, none of the lines I'm creating are being displayed on the map. I'll post a part of the code below, please let me know if you have any idea what might be wrong!

var polylineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([204, 102, 51]), 4);  path = $.map(line.points, function(point) {           p = new esri.geometry.Point(point.lng,;           return p;          });  polyline = new esri.geometry.Polyline(map.spatialReference); polyline.addPath([path[0], path[1]]); esri.Graphic(polyline, polylineSymbol));