Zoom

setZoom(zoom)

Description

Set the zoom level on the map.
The zoom level can be set 0~20.
The initial value is 0.

Parameter

zoom (number)

Example

map.setZoom(5)

getZoom()

Description

Gets the current zoom level value shown on the map.

Return Value

number

Example

map.getZoom()