From 930ed8922936f3045430518dc2f41013c9aa7ed6 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 5 Feb 2013 17:49:45 -0500 Subject: [PATCH] Don't trim the cache. Should be fine. Probably. --- js/id/renderer/background.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/id/renderer/background.js b/js/id/renderer/background.js index cae44ca09..2c2b35e78 100644 --- a/js/id/renderer/background.js +++ b/js/id/renderer/background.js @@ -78,6 +78,7 @@ iD.Background = function() { tiles.forEach(function(d) { addSource(d); requests.push(d); + console.log(d[3]); if (!cache[d[3]] && lookUp(d)) { requests.push(addSource(lookUp(d))); } @@ -130,8 +131,6 @@ iD.Background = function() { .on('load', load); image.style(transformProp, imageTransform); - - if (Object.keys(cache).length > 100) cache = {}; } background.offset = function(_) {