X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c941bc197cfa499ec140025715e8fac0b9a1f95e..f2be4b9449f31be5f81d8f32d966d06e62955764:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index fab00e81d..3f1b83af4 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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; } }