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