Select to view content in your preferred language

Manually dispatch a double-click event to measure a line on the map

469
0
05-13-2011 12:44 PM
KyleTraff
Emerging Contributor
I am currently working with a drawing tool for the ESRI Flex API, and every time I double-click the mouse the draw tool will perform a measurement and display the length of the line that I am drawing.

I want to mimic this double-click manually by dispatching a MouseEvent.DOUBLE_CLICK, but the Draw Tool is not listening to this default Flex event. I suspect that the API has created a custom MapMouseEvent or something like it that is being dispatched when a user double-clicks the mouse.

Does anyone know which event is being dispatched when I double-click the mouse on the map? Thanks!
Tags (2)
0 Kudos
0 Replies