DrawingToolbar class
A control for changing the drawing mode.
Constructors
Drawing |
Constructs a DrawingToolbar. |
Methods
get |
Gets the options used by the DrawingToolbar. |
on |
Initialization method for the control which is called when added to the map. |
on |
Method that is called when the control is removed from the map. Should perform any necessary cleanup for the control. |
set |
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.