From c76b127cc6629a2d6adcb23bcee1f72fe87a4e11 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Mon, 13 Jan 2020 13:16:32 +0100 Subject: [PATCH] refresh planes in view when toggling military and other filters --- html/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/script.js b/html/script.js index dc14a65..e7e5064 100644 --- a/html/script.js +++ b/html/script.js @@ -1243,6 +1243,7 @@ function initialize_map() { // filters case "M": onlyMLAT = !onlyMLAT; + refreshTableInfo(); break; case "T": filterTISB = !filterTISB; @@ -2501,6 +2502,7 @@ function toggleIsolation() { function toggleMilitary() { onlyMilitary = !onlyMilitary; buttonActive('#U', onlyMilitary); + refreshTableInfo(); } function togglePersistence() { @@ -2516,6 +2518,7 @@ function togglePersistence() { reaper(); localStorage['noVanish'] = noVanish; console.log('noVanish = ' + noVanish); + refreshTableInfo(); } function toggleDebugAll() { @@ -2697,6 +2700,7 @@ function onJump(e) { const coords = _airport_coords_cache[searchTerm]; if (coords) { OLMap.getView().setCenter(ol.proj.fromLonLat([coords[1], coords[0]])); + refreshTableInfo(); } return false; }