From 638af531493c71a41ddedb6974caccc07600db32 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Fri, 16 Nov 2012 11:38:33 -0500 Subject: [PATCH] Distribute requests against domains, remove unused CSS --- css/app.css | 7 ------- js/iD/renderer/tiles.js | 4 +++- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/css/app.css b/css/app.css index 8ee1aada0..6f969acde 100644 --- a/css/app.css +++ b/css/app.css @@ -62,13 +62,6 @@ input[type=text]:focus { border-color:#222; } - -#zoombuttons { - position:absolute; - right:20px; - top:20px; -} - #bar button { width:100px; white-space:nowrap; diff --git a/js/iD/renderer/tiles.js b/js/iD/renderer/tiles.js index ee7571e66..c0b5f0352 100644 --- a/js/iD/renderer/tiles.js +++ b/js/iD/renderer/tiles.js @@ -12,7 +12,9 @@ iD.Tiles = function(selection, projection, width, height) { if ((coord[2] & mask) !== 0) byte += 2; u += byte.toString(); } - return 'http://ecn.t0.tiles.virtualearth.net/tiles/a' + u + '.jpeg?g=587&mkt=en-gb&n=z'; + // distribute requests against multiple domains + var t = coord[2] % 5; + return 'http://ecn.t' + t + '.tiles.virtualearth.net/tiles/a' + u + '.jpeg?g=587&mkt=en-gb&n=z'; } // derive the tiles onscreen, remove those offscreen and position tiles