map.addLayer(mapnik);
var osmarender = new OpenLayers.Layer.TMS("Osmarender",
- "http://dev.openstreetmap.org/~ojw/Tiles/tile.php/",
+ ["http://a.tah.openstreetmap.org/Tiles/tile.php/","http://b.tah.openstreetmap.org/Tiles/tile.php/","http://c.tah.openstreetmap.org/Tiles/tile.php/"],
{ type: 'png', getURL: getTileURL, displayOutsideMaxExtent: true });
map.addLayer(osmarender);
{
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;
}
}