ZOOM limits in Google maps API
Пятница, 8/07/2011-
var minMapScale = 5;
-
var maxMapScale = 14;
-
// get array of map types
-
var mapTypes = map.getMapTypes();
-
// overwrite the getMinimumResolution() and getMaximumResolution() methods for each map type
-
for (var i = 0; i < mapTypes.length; i++) {
-
mapTypes[i].getMinimumResolution = function() {return minMapScale;}
-
mapTypes[i].getMaximumResolution = function() {return maxMapScale;}
-
}
RSS