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); } }
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.