var layerInfos:Array = ArcGISDynamicMapServiceLayer(<service>).layerInfos; //where service is the name of the map service var layerNames:Array = []; for each (var layerInfo:LayerInfo in layerInfos){ if (layerInfo.name){ // If the layer has a name layerNames.push(layerInfo.name); } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.