From: Tom Hughes Date: Thu, 21 Jun 2007 08:16:50 +0000 (+0000) Subject: Set the map units to something OpenLayers actually understands... X-Git-Tag: live~8961 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/8b79f7ff0fb6e950a8ba4f243caca8503ef1f93e?hp=e6af088dda8e85f53b11ffbaddb11edf08e4a046 Set the map units to something OpenLayers actually understands... --- diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index f8c0f02f4..b383c4b5e 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -58,7 +58,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), numZoomLevels:19, maxResolution:156543, units:'meters', projection: "EPSG:41001"} ); + {maxExtent: new OpenLayers.Bounds(-20037508.34,-20037508.34,20037508.34,20037508.34), numZoomLevels:19, 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} ); diff --git a/app/views/user/account.rhtml b/app/views/user/account.rhtml index 5014b43af..9f6e4f32b 100644 --- a/app/views/user/account.rhtml +++ b/app/views/user/account.rhtml @@ -181,7 +181,7 @@ var box = document.getElementById( 'highlightinfo' ); box.innerHTML = html; closePopup(); - popup = new OpenLayers.Popup.AnchoredBubble( 'popup', position, new OpenLayers.Size( box.offsetWidth, box.offsetHeight ), html, OpenLayers.Marker.defaultIcon(), true ); + popup = new OpenLayers.Popup.AnchoredBubble( 'popup', position, new OpenLayers.Size( box.offsetWidth + 100, box.offsetHeight + 20 ), html, OpenLayers.Marker.defaultIcon(), true ); map.addPopup( popup ); }