From f79f743859f34dd7f47fe1e8f5d8495733298b88 Mon Sep 17 00:00:00 2001 From: Uskompuf <22492406+Uskompuf@users.noreply.github.com> Date: Thu, 23 Sep 2021 11:57:10 +1000 Subject: [PATCH] Live mode; update panel --- js/tracker.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/js/tracker.js b/js/tracker.js index 5e3f665..9697df3 100644 --- a/js/tracker.js +++ b/js/tracker.js @@ -70,6 +70,7 @@ var svgRenderer = L.svg(); var modeList = [ // "Position", + "0", "15s", "1m", "30m", @@ -477,7 +478,7 @@ function load() { onAdd: function(map) { var div = L.DomUtil.create('div'); - div.innerHTML = ''; + div.innerHTML = ''; div.innerHTML.onload = setTimeValue(); return div; @@ -4223,7 +4224,10 @@ function update(response) { if(listScroll) listScroll.refresh(); if(zoomed_in && follow_vehicle == vcallsign && !manual_pan) panTo(follow_vehicle); - if(follow_vehicle == vcallsign) drawLOSPaths(vcallsign); + if (follow_vehicle == vcallsign) { + update_lookangles(follow_vehicle); + drawLOSPaths(vcallsign); + } } // step to the next callsign