mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Fix URL template host rotation
It was sending all tiles at a given zoom to the same host.
This commit is contained in:
@@ -15,7 +15,7 @@ iD.BackgroundSource.template = function(data) {
|
||||
|
||||
return data.template
|
||||
.replace('{t}', data.subdomains ?
|
||||
data.subdomains[coord[2] % data.subdomains.length] : '')
|
||||
data.subdomains[(coord[0] + coord[1]) % data.subdomains.length] : '')
|
||||
.replace('{u}', u)
|
||||
.replace('{x}', coord[0])
|
||||
.replace('{y}', coord[1])
|
||||
|
||||
Reference in New Issue
Block a user