Class: Controls

nsVmap.nsToolsManager.Controls

Class nsVmap.nsToolsManager.Controls: Add the controls defined in data/tools.json, available : Attribution, FullScreen, MousePosition, OverviewMap, Rotate, ScaleLine, Zoom, ZoomSlider, ZoomToExtent, CurrentProjection, DragAndDrop (GPX,GeoJSON,IGC,KML,TopoJSON)

Classes

controlsController
controlsDirective

Methods

addControl(control){boolean} experimental

vmap/tools/controls.js, line 98

Add a control to the ol map

Name Type Description
control string

Control to add

Returns:
False if the control cannot be added

getControlsList(){array} experimental

vmap/tools/controls.js, line 344

nsVmap.aControls_ getter

Returns:
Controls on the map

getOverviewMap(){ol.OverveiwMap}

vmap/tools/controls.js, line 365

this.overviewMap_ getter

setControlsList(aControls) experimental

vmap/tools/controls.js, line 354

nsVmap.aControls_ setter

Name Type Description
aControls array

Controls to set

toggleControl(control) experimental

vmap/tools/controls.js, line 223

Toggle a control to the ol map

Name Type Description
control string

Control to add