Select to view content in your preferred language

Tired of arbitrary circles/arrows/triangles/ellipses/rectangles from a single click?

364
0
03-27-2020 03:59 PM
CJWood
by
New Contributor

The circle/arrow/triangle/ellispe/rectangle/extent tools will all drop a shape from a single click.

To work around this behavior, in your event handler for draw-complete, do not add the graphic to your map if event.target._dragged is false. For safety, make sure to check the draw tool beforehand.

This does not fix the problem on touch-enabled devices. I have not gotten around to remote debugging mobile devices.

0 Kudos
0 Replies