]> git.openstreetmap.org Git - rails.git/commitdiff
Set the map units to something OpenLayers? actually understands...
authorTom Hughes <tom@compton.nu>
Thu, 21 Jun 2007 09:25:43 +0000 (09:25 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 21 Jun 2007 09:25:43 +0000 (09:25 +0000)
app/views/user/account.rhtml

index 5014b43afdc14f34cf8cf6edf17b787474cad47e..e9e8901d8396258a87da1d850bedb9ecb9f4a3e6 100644 (file)
       this.src = OpenLayers.Util.getImagesLocation() + "404.png";
     }
     map = new OpenLayers.Map( "map", 
-        {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), maxZoomLevel:18, maxResolution:156543, units:'meters', projection: "EPSG:41001"} );
+        {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), maxZoomLevel:18, maxResolution:156543, units:'m', projection: "EPSG:41001"} );
     layer = new OpenLayers.Layer.TMS( "Mapnik", "http://tile.openstreetmap.org/", {type:'png', getURL:getTileURL} );
     map.addLayer(layer);
     layer = new OpenLayers.Layer.TMS( "Osmarender", "http://dev.openstreetmap.org/~ojw/Tiles/tile.php/", {type:'png', getURL:getTileURL} );