var lArr:Array = yourServceID.layerInfos; [LEFT]foreach (var layerInfo:LayerInfo in lArr){ var idIndex:int = yourServceID.visibleLayers.getItemIndex(layerInfo.id); if(layerInfo.name == txtBox.text) yourServceID.visibleLayers.removeItemAt(idIndex); } [/LEFT]
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.