From 77fbe6cf46857f50b6de2e5b65cdb2b2e34096db Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 2 Feb 2020 08:27:24 +0100 Subject: [PATCH] fetch data on jumping to an airport --- html/script.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html/script.js b/html/script.js index ed80d88..542225c 100644 --- a/html/script.js +++ b/html/script.js @@ -2820,6 +2820,8 @@ function onJump(e) { if (coords) { OLMap.getView().setCenter(ol.proj.fromLonLat([coords[1], coords[0]])); refreshTableInfo(); + if (ZoomLvl >= 7) + fetchData(); } return false; }