Set the map units to something OpenLayers actually understands...
This commit is contained in:
parent
e6af088dda
commit
8b79f7ff0f
2 changed files with 2 additions and 2 deletions
|
@ -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} );
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue