Hi,
Im using javascript api 4.13
I have created some drawing tools using the SketchViewModel.
im not using the widget.
im using sketch.create("polygon");
this works perfect and i can draw polygons.
However if i close a polygon drawing by clicking on the first vertex created, then the polygon complete event fires. The problem is I then get a click event on the view for that point.
This doesnt happen if i close the polygon by double clicking to close the polygon. I dont get a click event fire.
my problem is that on the sketch complete event i fire the sketch.create("polygon"). as i want to be able to keep drawing polygons without the need to reselect the polygon tool. This works fine when i use double click to complete a polygon. but if i close the polygon by selecting the first point in the polgyon then i get an error as its trying to immediately click the point as the views click event is firing and i get the following error: