... 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 ... } ...
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.