Index of ServiceLayers in a Map

Discussion created by stadtlandfluss on Nov 15, 2011
Latest reply on Nov 16, 2011 by hzhu
Hi there,

I have a map with serveral different MapServiceLayers (DynamicMapServiceLayers and FeatureLayer). Now I'm looking for indexes of each of this services in the map. So I like to know which is the topmost, the second topmost etc..

With the information about the indexes I can as as example the map.reorderLayer(layer, index) function for reordering.

best regards