How to draw a railroad line using the API?

442
0
05-08-2014 10:38 PM
NiamathAli
New Contributor
Hi,

Can anyone share a code snippet for drawing a railroad line on a map?

For instace, currently i use the below snippet to draw solid line on the map.

var polyline = new esri.geometry.Polyline(new esri.SpatialReference({wkid:102100}));
var polylineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([randomColour1,randomColour2,randomColour3, 0.5]), 4);
var atLine = new esri.Graphic(polyline, polylineSymbol);

I need a similar snippet which can draw a railroad line on the map.

Any pointers would be of help.

Regards,
Niamath
0 Kudos
0 Replies