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

Idea created by NicolasGIS on Jul 26, 2019
    • liang.yang@bchydro.com
    • NicolasGIS

    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.