From fe38a47a3cf66deb58773e2d5797dc140af0abc1 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 28 May 2013 18:46:15 -0700 Subject: [PATCH] Fix URL template host rotation It was sending all tiles at a given zoom to the same host. --- js/id/renderer/background_source.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/renderer/background_source.js b/js/id/renderer/background_source.js index 46c93821f..ef17fe5da 100644 --- a/js/id/renderer/background_source.js +++ b/js/id/renderer/background_source.js @@ -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])