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

293
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