Don't trim the cache. Should be fine. Probably.

This commit is contained in:
Tom MacWright
2013-02-05 17:49:45 -05:00
parent 3d13e25d41
commit 930ed89229
+1 -2
View File
@@ -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(_) {