Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find current zoom level in a Google Map?

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

like image 664
K6t Avatar asked Jun 17 '11 12:06

K6t


People also ask

How do I check the zoom level on Google Maps?

You can change the zoom level of the map using simple steps. Step 1 Go to Add or Edit Map page . Step 2 Select 'Default zoom level' in the 'Map Information section'. Step 3 click save map and see the changes.

Which method is used to get the current zoom level of the map?

Maps API getZoom() Method The getZoom() method returns the current zoom level of the map.

How do you get the current zoom level on Google Maps flutter?

You can get the current zoom this way: float zoom=googleMap. getCameraPosition().

How do I change the zoom level on Google Maps?

Users can zoom the map by clicking the zoom controls. They can also zoom and pan by using two-finger movements on the map for touchscreen devices.


1 Answers

If you have a map object like this:

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

use

mapObject.getZoom(); 
like image 183
Nicola Peluchetti Avatar answered Sep 22 '22 16:09

Nicola Peluchetti