From 4cce95ffe03658358a65b00b516af7eebe96e137 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 21 Jun 2007 09:25:43 +0000 Subject: [PATCH] Set the map units to something OpenLayers? actually understands... --- app/views/user/account.rhtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/user/account.rhtml b/app/views/user/account.rhtml index 5014b43af..e9e8901d8 100644 --- a/app/views/user/account.rhtml +++ b/app/views/user/account.rhtml @@ -124,7 +124,7 @@ 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} ); -- 2.43.2