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]
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.