THE WORLD'S LARGEST WEB DEVELOPER SITE

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


COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: