DrawingToolbar class

A control for changing the drawing mode.

Constructors

DrawingToolbar(DrawingToolbarOptions)

Constructs a DrawingToolbar.

Methods

getOptions()

Gets the options used by the DrawingToolbar.

onAdd()

Initialization method for the control which is called when added to the map.

onRemove()

Method that is called when the control is removed from the map. Should perform any necessary cleanup for the control.

setOptions(DrawingToolbarOptions)

Sets the options for the DrawingToolbar.

Constructor Details

DrawingToolbar(DrawingToolbarOptions)

Constructs a DrawingToolbar.

new DrawingToolbar(options?: DrawingToolbarOptions)

Parameters

options
DrawingToolbarOptions

The options for the DrawingToolbar.

Method Details

getOptions()

Gets the options used by the DrawingToolbar.

function getOptions(): DrawingToolbarOptions

Returns

onAdd()

Initialization method for the control which is called when added to the map.

function onAdd(): HTMLElement

Returns

HTMLElement

An HTMLElement to be placed on the map for the control.

onRemove()

Method that is called when the control is removed from the map. Should perform any necessary cleanup for the control.

function onRemove()

setOptions(DrawingToolbarOptions)

Sets the options for the DrawingToolbar.

function setOptions(options: DrawingToolbarOptions)

Parameters

options
DrawingToolbarOptions

The new options for the DrawingToolbar.