Set the map units to something OpenLayers actually understands...
authorTom Hughes <tom@compton.nu>
Thu, 21 Jun 2007 08:16:50 +0000 (08:16 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 21 Jun 2007 08:16:50 +0000 (08:16 +0000)
app/views/site/index.rhtml
app/views/user/account.rhtml

index f8c0f02f429686dc68c4f5650bf644fceb5f41bf..b383c4b5e5e057e21a3c23309c1c332d084b7da1 100644 (file)
@@ -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} );
index 5014b43afdc14f34cf8cf6edf17b787474cad47e..9f6e4f32bfa3735a80b6203c49c5d65d5258ae85 100644 (file)
     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 );
   }