Class: Toolbar

Toolbar(map, controls)

The editor's toolbar.

Constructor

new Toolbar(map, controls)

Constructor.
Parameters:
Name Type Attributes Description
map ol.Map The map object.
controls ol.Collection.<ol.control.Control> Controls
options.target HTMLElement <optional>
Specify a target if you want the control to be rendered outside of the map's viewport.
Source:

Members

(private) controls :ol.Collection.<ol.control.Control>

Type:
  • ol.Collection.<ol.control.Control>
Source:

(private) map :ol.Map

Type:
  • ol.Map
Source:

Methods

(private) destroy()

Destroy the toolbar.
Source:

(private) load()

Load the toolbar.
Source: