AnsweredAssumed Answered

How do I get full URL from ArcGISDynamicMapServiceLayer

Question asked by tgroussell on Feb 23, 2014
Latest reply on Feb 24, 2014 by tgroussell
If I set a dynamic layer like this

myLayer = new esri.layers.ArcGISDynamicMapServiceLayer("http://myserver:6080/ArcGIS/rest/services/MyLayers/MapServer", {id: "road_backlayer"});

it returns a url of:

but I need the index number of the layer appended to the end of the url. So how do I get a url of: