How to find current zoom level in a Google Map?

K6t picture K6t · Jun 17, 2011 · Viewed 94.9k times · Source

How do I find the current zoom level when loading or clicking a Google map?

Answer

Nicola Peluchetti picture Nicola Peluchetti · Jun 17, 2011

If you have a map object like this:

var mapObject = new google.maps.Map(document.getElementById("map"), _mapOptions);

use

mapObject.getZoom();