On Sep 29, 10:46 am, Rahul Mehta <[email protected]> wrote: > i changed the values and its working fine > > var allowedBounds = new GLatLngBounds(new GLatLng(50.597186, 0.35 ), > new GLatLng(52.696361, > -1.098633)); > > find code below...its not working fine on zoom in and zoom out..pls > help whats going wrong > > > // ====== Restricting the range of Zoom Levels ===== > // Get the list of map types > var mt = map.getMapTypes(); > // Overwrite the getMinimumResolution() and > getMaximumResolution() methods > for (var i = 0; i < mt.length; i++) { > mt[i].getMinimumResolution = function() { return > 12; } > mt[i].getMaximumResolution = function() { return > 20; }
That should work. If it isn't, you must supply a link, not a code listing. I've lost count of how many times that phrase has appeared in the Group. -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
