Get URL selection right...

This commit is contained in:
Tom Hughes 2007-10-10 15:00:13 +00:00
parent c941bc197c
commit 63bd068f2e

View file

@ -47,7 +47,15 @@ function getTileURL(bounds) {
{
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;
}
}