Editor widget JS API 4.12: Specify default sketch tool for 'Polygon'

395
0
07-26-2019 01:38 AM
Status: Open
NicolasGIS
Occasional Contributor III

It would be nice if it were possible to specify the default sketch tool for polygon in the JS API Editor widget.

So far, it is creating the sketch tool based on the geometry of the layer (either "Point", "Polyline" or "Polygon") but in the case of polygon, it could be possible to use "polygon", "rectangle" or "circle".

It would then allow, according to the layer selected, to pick the best tool depending on the data.

Thanks