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