<mx:Image click="{activateSearchTool(DrawTool.MAPPOINT)}" source="assets/images/i_draw_point.png" useHandCursor="true" buttonMode="true" toolTip="some tooltip" width="40" height="40"/> private function activateSearchTool(value:String):void { setMapAction(value, "Some status text", null, DrawEnd); } private function DrawEnd(event:DrawEvent):void { var selectionQuery:Query = new Query(); selectionQuery.geometry = event.graphic.geometry; fieldsLayer.selectFeatures(selectionQuery, FeatureLayer.SELECTION_NEW); }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.