mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-07-28 23:23:55 +00:00
Change absolute URL in slippymap.html to a relative one
If we're browsing from a different machine localhost is the wrong hostname.
This commit is contained in:
@ -41,7 +41,7 @@
|
||||
} );
|
||||
|
||||
// This is the layer that uses the locally stored tiles
|
||||
var newLayer = new OpenLayers.Layer.OSM("Local Tiles", "http://localhost/osm/${z}/${x}/${y}.png", {numZoomLevels: 19});
|
||||
var newLayer = new OpenLayers.Layer.OSM("Local Tiles", "${z}/${x}/${y}.png", {numZoomLevels: 19});
|
||||
map.addLayer(newLayer);
|
||||
|
||||
layerMapnik = new OpenLayers.Layer.OSM.Mapnik("Mapnik");
|
||||
|
Reference in New Issue
Block a user