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:
pnorman
2013-05-16 16:28:03 -06:00
parent b7cb20df4b
commit 7e57144dad

View File

@ -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");