var lyrObject:Object=new Object; lyrObject.label = msName; var msIndex:int=map.layerIds.indexOf(msName); lyrObject.id=msIndex.toString(); lyrObject.layer=map.layers[msIndex]; lyrObject.visible=true; AppEvent.dispatch(AppEvent.MAP_LAYER_VISIBLE, lyrObject);
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.