Class: ZoomControlView

Controls.Zoom ZoomControlView

ZoomControlView

new ZoomControlView(args)

modules/controls/zoom/view.js, line 26
This control gives the user an interface to zoom in and out of the map
Name Type Description
args Object optional Config
Fires:
Listens to Events:
  • Map#event:RadioTriggerMapChange

Extends

Methods

mapChange(map){void}

modules/controls/zoom/view.js, line 131
Shows zoom buttons if map is in 2d-mode. Hides zoom buttons if map is in 3d-mode.
Name Type Description
map String Mode of the map. Possible values are "2D" or "3D".

render(){ZoomControlView}

modules/controls/zoom/view.js, line 58
Render Function
Returns:
Returns itself

setZoomBox(){void}

modules/controls/zoom/view.js, line 91
Create an Draggable ZoomBox(Rectangle) on Map
Fires:
  • Map#event:RadioTriggeraddInteractionDragZoom

setZoomLevelDown(){void}

modules/controls/zoom/view.js, line 81
Decreases the zoom level in the map by 1
Fires:

setZoomLevelUp(){void}

modules/controls/zoom/view.js, line 70
Increases the zoom level in the map by 1
Fires: