Give OpenLayers three different hosts (all really pointing at tile) to
authorTom Hughes <tom@compton.nu>
Wed, 10 Oct 2007 14:45:44 +0000 (14:45 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 10 Oct 2007 14:45:44 +0000 (14:45 +0000)
get mapnik tiles from so it loads tiles more quickly.

public/javascripts/map.js

index 2f7d52e589b380ee99eb24b62a2e02484e04b38f..fab00e81d924e81659331add94646d0ea3f4c98b 100644 (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);