]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Commit initial work on export tab.
[rails.git] / public / javascripts / map.js
index 369df89876e1f7d1b0084467adcc997bbcc4c176..07c6b32d174b082481de347f72ee8e332418439a 100644 (file)
@@ -8,6 +8,10 @@ OpenLayers._getScriptLocation = function () {
    
 function createMap(divName) {
    map = new OpenLayers.Map(divName, {
+      maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
+      maxResolution: 156543,
+      units: "m",
+      projection: "EPSG:900913",
       controls: [
          new OpenLayers.Control.ArgParser(), 
          new OpenLayers.Control.Attribution(),
@@ -28,11 +32,8 @@ function createMap(divName) {
 
    var numZoomLevels = Math.max(mapnik.numZoomLevels, osmarender.numZoomLevels);
    markers = new OpenLayers.Layer.Markers("Markers", { 
-      displayInLayerSwitcher: false, numZoomLevels: numZoomLevels,
-      maxExtent: new OpenLayers.Bounds(-20037508,-20037508,20037508,20037508),
-      maxResolution: 156543,
-      units: "m",
-      projection: "EPSG:41001"
+      displayInLayerSwitcher: false,
+      numZoomLevels: numZoomLevels
    });
    map.addLayer(markers);