I have added the following code to limit the zoom function, I dont
want anyone to zoom any further and only zoom 2x out.

var mt = map.getMapTypes();
      // Overwrite the getMinimumResolution() and getMaximumResolution
() methods
      for (var i=0; i<mt.length; i++) {
        mt[i].getMinimumResolution = function() {return 13;}
        mt[i].getMaximumResolution = function() {return 15;}
      }


It does not seem to work, it still zooms all directions.
I tried copying it from this map example:  
http://econym.org.uk/gmap/example_range.htm

The working example of my code/page is:  
http://www.whitebeckcourt.info/googlemaptest.htm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to