Hi,
After adding a one ArcGISdynamicMapServiceLayer to my map , I can then get it name by :
map.getLayer(map.layerIds[0]).layerInfos[0].name
The ArcGIS API for javascript sets the name automatically after creating the layer.
What I want to do is to give that layer what ever name I wanted. So that when
I make map.getLayer(map.layerIds[0]).layerInfos[0].name It will give me the name I have set.
Or may be there is another custome attribute inside the layer the developper can use ?
Thanks