Latest web development tutorials
 

Google Maps API getZoom() Method

< 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 Values

Value Description
number The current zoom level of the map

< Map() Constructor