ZOOM limits in Google maps API

  1. var minMapScale = 5;
  2. var maxMapScale = 14;
  3. // get array of map types
  4. var mapTypes = map.getMapTypes();
  5. // overwrite the getMinimumResolution() and getMaximumResolution() methods for each map type
  6. for (var i = 0; i < mapTypes.length; i++) {
  7.     mapTypes[i].getMinimumResolution = function() {return minMapScale;}
  8.     mapTypes[i].getMaximumResolution = function() {return maxMapScale;}
  9. }
google.com bobrdobr.ru del.icio.us technorati.com linkstore.ru news2.ru rumarkz.ru memori.ru moemesto.ru

Похожие записи:

Оставить ответ