diff --git a/html/planeObject.js b/html/planeObject.js index e156c19..d9550d4 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -1185,9 +1185,7 @@ PlaneObject.prototype.updateFeatures = function(now, last, redraw) { this.name = '_' + this.icao.toUpperCase(); } this.name = this.name.trim(); - } - if (!redraw && !this.updated && !this.visible) { - return; + this.updated = false; } const zoomedOut = 30 * Math.max(0, -1 * (ZoomLvl - 6)); @@ -1227,7 +1225,6 @@ PlaneObject.prototype.updateFeatures = function(now, last, redraw) { selectPlaneByHex(null,false); } } - this.updated = false; }; PlaneObject.prototype.clearMarker = function() { diff --git a/html/script.js b/html/script.js index 8b49e9b..67327d8 100644 --- a/html/script.js +++ b/html/script.js @@ -1796,7 +1796,7 @@ function refreshTableInfo() { if (globeIndex) { if (inView(tableplane, lastRenderExtent) || tableplane.selected) { tableplane.updateFeatures(now, last); - } else { + } else if (tableplane.visible) { tableplane.clearMarker(); tableplane.clearLines(); tableplane.visible = false;