Add numZoomLevels to the map.
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 14:00:11 +0000 (14:00 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 14:00:11 +0000 (14:00 +0000)
public/javascripts/map.js

index 51cd9f6a5abfbc62abcf4c382825e59dad1e4e9b..631999a0a99729854ae8e47080a3eef15ce48f2a 100644 (file)
@@ -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", {