Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Maps API getZoom() Method

Maps API getZoom() Method

Map() Constructor Map() Constructor

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 Map() Constructor