DrawingManagerOptions interface
Options for the drawing manager.
Properties
drag |
The style options for the primary drag handles |
freehand |
Specifies the number of pixels the mouse or touch must move before another
coordinate is added to a shape when in |
interaction |
The type of drawing interaction the manager should adhere to.
Default is |
mode | The drawing mode the manager is in.
Default is |
secondary |
The style options for the secondary drag handles. These provide handles at mid-points for creating new coordinates between existing coordinates. |
shape |
Specifies if shapes can be dragged when in edit or select mode. |
shape |
Specifies if shapes can be rotated when in edit mode. |
source | A data source to add newly created shapes to.
If not specified when the drawing manager is constructed one will be created automatically.
If the data source is changed the drawing manager will be switched to |
toolbar | A drawing toolbar to display as a control for the drawing manager. |
Property Details
dragHandleStyle
The style options for the primary drag handles
dragHandleStyle?: azmaps.HtmlMarkerOptions
Property Value
freehandInterval
Specifies the number of pixels the mouse or touch must move before another
coordinate is added to a shape when in "freehand"
or "hybrid"
drawing modes.
Default is 3
.
freehandInterval?: number
Property Value
number
interactionType
The type of drawing interaction the manager should adhere to.
Default is "hybrid"
.
interactionType?: DrawingInteractionType
Property Value
mode
The drawing mode the manager is in.
Default is "idle"
.
mode?: DrawingMode
Property Value
secondaryDragHandleStyle
The style options for the secondary drag handles. These provide handles at mid-points for creating new coordinates between existing coordinates.
secondaryDragHandleStyle?: azmaps.HtmlMarkerOptions
Property Value
shapeDraggingEnabled
Specifies if shapes can be dragged when in edit or select mode.
shapeDraggingEnabled?: boolean
Property Value
boolean
shapeRotationEnabled
Specifies if shapes can be rotated when in edit mode.
shapeRotationEnabled?: boolean
Property Value
boolean
source
A data source to add newly created shapes to.
If not specified when the drawing manager is constructed one will be created automatically.
If the data source is changed the drawing manager will be switched to "idle"
mode.
source?: azmaps.source.DataSource
Property Value
toolbar
A drawing toolbar to display as a control for the drawing manager.
toolbar?: DrawingToolbar