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);
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.