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);
{
x = ((x % limit) + limit) % limit;
- return this.url + z + "/" + x + "/" + y + "." + this.type;
+ var url = this.url;
+ var path = z + "/" + x + "/" + y + "." + this.type;
+
+ if (url instanceof Array)
+ {
+ url = this.selectUrl(path, url);
+ }
+
+ return url + path;
}
}