Class: Controls

vmap.Tools.Controls

Class vmap.Tools.Controls: Add the controls defined in data/tools-tree.json

Methods

addControl(control){boolean}

tools/controls.js, line 44

Add a control to the map

Name Type Description
control string

Control to add

Returns:
False if the control cannot be added

getControls(){array} experimental

tools/controls.js, line 144

vmap.controls_ getter

Returns:
Controls on the map

setControls(controls) experimental

tools/controls.js, line 153

vmap.controls_ setter

Name Type Description
controls array

Controls to set