How to get full suite of polygon creation tools?
Hi,
Reading around but making little progress...module docs state:
EditorViewModel:
editGeometry: To allow the geometry of features to be edited, set to true. The default is true.
validateGeometry: To validate geometry changes when the user saves edited geometry, set to true. For example, a self-intersecting geometry is invalid. The default is true.
tools: An array of tools for the user to edit the geometry with. The factory configuration has tools to edit points, lines, polylines, freehand polylines, polygons, freehand polygons, circles, ellipses and rectangles.
The Tools Module implements the ability to define an array of tools in other modules.
"tools to edit points, lines, polylines, freehand polylines, polygons, freehand polygons, circles, ellipses and rectangle"
How to expose the (for example) circle, ellipse and rectangle tools for the "Create New Feature" command on a polygon layer (such as you get by default by doing soo in WAB) ?
Thanks for any help or ideas!
0
-
Hi David,
After some consultation with the developers, we determined that the "tools" array of the EditorViewModel would not actually add tools for the end user. Our best guess was that this configuration attribute was added with some expectations on how the associated tools would be added.
Unfortunately, that means there is no simple way to get a full suite of polygon tools through configuration.
I'll file a bug to have the documentation updated to be correct. Sorry about the confusion!
Regards,
-Malcolm0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar