X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e9d3d4d19bcdf91732db57ecaa8d4831c7f585a3..27532c3c3ad5b43af88dca96e54c88412d7ac601:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index bb730c448..b383c4b5e 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -55,10 +55,10 @@ function init(){ OpenLayers.Util.onImageLoadError = function() { - this.src = OpenLayers.Util.getImagesLocation + "404.png"; + 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} );