Class: Zoom

cercaliagl.control/Zoom


Javascript ES5

const control = new cercaliagl.control.Zoom();

Zoom control contains zoom buttons, rotate and a button to enable/disable 3D view.

new Zoom(options)

Name Type Description
options

Zoom options.

Name Type Description
className string | undefined

Class name

delta number | undefined

Delta zoom

duration number | undefined

Duration zoom

position string | undefined

Positions available: bottom-right, bottom-left, top-right, top-left. Default:bottom-right

target Element | undefined

Target element

Extends

Methods

Returns cercalia Map object

Returns:
Cercalia map.

getClass(){string} inherited

Get class name.

Returns:
Class name.

getElement(){Element} inherited

Get control HTML Element

Returns:
HTML Element

Get control id.

Returns:
Id.

getMap(){module:maplibre-gl~Map} inherited

Returns mapboxgl Map object

getName(){string|null} inherited

Get control name. Null if control has not defined name.

Returns:
Class name.

Hide control.

Show control.