THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

Maps API getZoom() Method

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