From: Tom Hughes Date: Sat, 19 Apr 2008 14:00:11 +0000 (+0000) Subject: Add numZoomLevels to the map. X-Git-Tag: live~7845 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/97a4e25f909cf80c9e97edece6ce7c9b209d323c?ds=inline Add numZoomLevels to the map. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 51cd9f6a5..631999a0a 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -17,8 +17,9 @@ function createMap(divName) { new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.ScaleLine() ], + units: "m", maxResolution: 156543, - units: "m" + numZoomLevels: 20 }); var mapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik", {