Optional
editorThe Editor to use. The editor determines how creation behaves.
The Editor.getCreateHandle to get handles for creation.
2022.1
Optional
finishIndicates whether to finish creation on a single-click event, or a double-click event (the default).
The flag has effect on creation of shapes where you have to "confirm" your creation by clicking somewhere
else on the map. For example, creation of a circle, where you first click somewhere on the map to place the circle,
then change the position or radius of the circle and then click (or double-click, if this is false
)
somewhere else to finish creation.
This flag has no effect on the default point, polyline and polygon creation. Creation of these shapes already use single clicks to place points.
Optional
freehandIndicates whether to allow drawing shapes in "freehand" mode. When this is enabled, the user can click / tap near the last created point and drag to draw a shape. Multiple points will be inserted while the mouse is being dragged.
When this is disabled, the user can only create (single) points by clicking / tapping the map.
2022.0
true
Optional
handleThe style of the handles.
Optional
helperThe style that editing helper lines will be drawn in
Optional
mouseThe mouse interaction radius to use, in pixels.
This is the radius used for mouse events, to determine interaction with handles.
Optional
touchThe touch interaction radius to use, in pixels.
This is the radius used for touch events, to determine interaction with handles. Typically, this is larger than the mouseInteractionRadius.
Constructor options for CreateController.