DrawingManagerOptions interface

Options for the drawing manager.

Properties

dragHandleStyle

The style options for the primary drag handles

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.

interactionType

The type of drawing interaction the manager should adhere to. Default is "hybrid".

mode

The drawing mode the manager is in. Default is "idle".

secondaryDragHandleStyle

The style options for the secondary drag handles. These provide handles at mid-points for creating new coordinates between existing coordinates.

shapeDraggingEnabled

Specifies if shapes can be dragged when in edit or select mode.

shapeRotationEnabled

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 "idle" mode.

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

azmaps.HtmlMarkerOptions

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

azmaps.HtmlMarkerOptions

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

azmaps.source.DataSource

toolbar

A drawing toolbar to display as a control for the drawing manager.

toolbar?: DrawingToolbar

Property Value