Give OpenLayers three different hosts (all really pointing at tile) to

get mapnik tiles from so it loads tiles more quickly.
This commit is contained in:
Tom Hughes 2007-10-10 14:45:44 +00:00
parent d29a319ab0
commit c941bc197c

View file

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