and again without using the wrong index: load center of map first when data is old.

This commit is contained in:
Matthias Wirth
2021-01-23 16:44:48 +01:00
parent 4f85f211ee
commit a1f689f597

View File

@@ -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]) {