Map APIgetZoom()Methods

Map() constructor

Example

Return the current zoom level of the map:

map.getZoom();

Try it Yourself »

Definition and Usage

The getZoom() method returns the current zoom level of the map.


Syntax

mapvariable.getZoom();


Return Value

Value Description
number The current zoom level of the map.


Map() constructor

other extensions