From: Tom Hughes Date: Wed, 10 Oct 2007 14:45:44 +0000 (+0000) Subject: Give OpenLayers three different hosts (all really pointing at tile) to X-Git-Tag: live~8134 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/c941bc197cfa499ec140025715e8fac0b9a1f95e Give OpenLayers three different hosts (all really pointing at tile) to get mapnik tiles from so it loads tiles more quickly. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 2f7d52e58..fab00e81d 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -15,7 +15,7 @@ function createMap(divName) { projection: "EPSG:41001" }); var mapnik = new OpenLayers.Layer.TMS("Mapnik", - "http://tile.openstreetmap.org/", + ["http://a.tile.openstreetmap.org/","http://b.tile.openstreetmap.org/","http://c.tile.openstreetmap.org/"], { type: 'png', getURL: getTileURL, displayOutsideMaxExtent: true }); map.addLayer(mapnik);