From 8a4d894e88b888d64db8cf991e014a521c783ae1 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Sun, 3 Oct 2021 16:09:02 +0200 Subject: [PATCH] fix some issue --- html/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/html/script.js b/html/script.js index 250aff9..5edc46a 100644 --- a/html/script.js +++ b/html/script.js @@ -123,7 +123,10 @@ let shareLink = ''; let onMobile = false; -let CenterLat, CenterLon, ZoomLvl, ZoomLvlCache; +let CenterLat = 0; +let CenterLon = 0; +let ZoomLvl = 5; +let ZoomLvlCache; let TrackedAircraft = 0; let globeTrackedAircraft = 0; @@ -1744,7 +1747,7 @@ function webglInit() { // Initalizes the map and starts up our timers to call various functions function initMap() { - + if (globeIndex) { jQuery('#dump1090_total_history_td').hide(); jQuery('#dump1090_message_rate_td').hide();