Everything is in the title...
I want the zoom of the map limit from 1 to 5 while changing
To generate the map I use
var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
Everything is in the title...
I want the zoom of the map limit from 1 to 5 while changing
To generate the map I use
var map = new google.maps.Map(document.getElementById('map_canvas'), myOptions);
You could find it in the Google Map API for the listener "zoom_changed"
google.maps.event.addListener(map, "zoom_changed", function() {
var Z=map.getZoom();
if (Z > 5) {map.setZoom(5);}
else if (Z < 1) {map.setZoom(1);}
});