<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); }
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.