From a1f689f597d0aaf4ae6fdfdee61ff6fc98749f51 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sat, 23 Jan 2021 16:44:48 +0100 Subject: [PATCH] and again without using the wrong index: load center of map first when data is old. --- html/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/script.js b/html/script.js index 1137f53..4650e71 100644 --- a/html/script.js +++ b/html/script.js @@ -304,8 +304,11 @@ function fetchData(options) { let indexes = globeIndexes(); const ancient = (currentTime - 2 * refreshInt() / globeSimLoad * globeTilesViewCount) / 1000; for (let i in indexes) { - if (globeIndexNow[i] < ancient) - globeIndexNow[i] = null; + const k = indexes[i]; + if (globeIndexNow[k] < ancient) { + globeIndexNow[k] = null; + console.log(k); + } } indexes.sort(function(x,y) { if (!globeIndexNow[x] && !globeIndexNow[y]) {