AnsweredAssumed Answered

bug in draw tool (Draw.POLYGON) ESRI JS API

Question asked by royarturo on Feb 18, 2015

When using  esri/toolbars/draw, this is what happened if the drawing feature used is a polygon Ex. toolbar.activate(Draw.POLYGON)

 

 

Once activated the toolbar, on mouse down you start drawing, and with each click you shape the polygon at will. But if in the second click, where you have drawn a line and not a polygon yet, you decide to double-click instead of one click, then the toolbar stop drawing, and draw-end fires, however the result geometry is not a polygon as this feature expect, it is a line in this case. Then you get an error (see image )Capture.PNG

 

I don't think this should be an error.

Is there anyway i cant prevent this error from showing up in the console?

 

thanks!

roy

Outcomes