Get URL selection right...
This commit is contained in:
parent
c941bc197c
commit
63bd068f2e
1 changed files with 9 additions and 1 deletions
|
@ -47,7 +47,15 @@ function getTileURL(bounds) {
|
||||||
{
|
{
|
||||||
x = ((x % limit) + limit) % limit;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue