... myFeatureLayer1.addEventListener(FeatureLayerEvent.SELECTION_COMPLETE, onSelectionComplete); myFeatureLayer2.addEventListener(FeatureLayerEvent.SELECTION_COMPLETE, onSelectionComplete); ... or in mxml tag ... <esri:FeatureLayer id="myFeatureLayer1" selectionComplete="onSelectionComplete(event)" ... /> <esri:FeatureLayer id="myFeatureLayer2" selectionComplete="onSelectionComplete(event)" ... /> ... protected function onSelectionComplete(event:FeatureLayerEvent):void { event.featureLayer // Reference to the associated FeatureLayer event.featureLayer.selectedFeatures // selected features ... } ...
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.