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

362
0
10-31-2019 05:05 AM
NicolasGIS
Occasional Contributor III

Hello,

I am trying to force the Editor widget to create polygon as rectangle rather than a free polygon but I can't figure out how to do so.

The sketch widget does have an "availableCreateTools" property but it seems like the editor widget is ignoring it:

Codepen

Am I doing anything wrong ? Any workaround if not possible ?

Many thanks,

Tags (3)
0 Kudos
0 Replies