Maps API getZoom() Method
Example
Returns the current zoom level of the map:
map.getZoom();
Try it »
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