Skip to content

Commit 92a5079

Browse files
authored
Merge pull request projecthorus#142 from LukePrior/testing
Live mode; update panel
2 parents 6cd8a2c + f79f743 commit 92a5079

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

js/tracker.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ var svgRenderer = L.svg();
7070

7171
var modeList = [
7272
// "Position",
73+
"0",
7374
"15s",
7475
"1m",
7576
"30m",
@@ -477,7 +478,7 @@ function load() {
477478
onAdd: function(map) {
478479
var div = L.DomUtil.create('div');
479480

480-
div.innerHTML = '<select name="timeperiod" id="timeperiod" style="width:auto !important;height:30px;" onchange="clean_refresh(this.value)"><option value="1h">1 hour</option><option value="3h" selected="selected">3 hours</option><option value="6h">6 hours</option><option value="12h">12 hours</option></select>';
481+
div.innerHTML = '<select name="timeperiod" id="timeperiod" style="width:auto !important;height:30px;" onchange="clean_refresh(this.value)"><option value="0">Live Only</option><option value="1h">1 hour</option><option value="3h" selected="selected">3 hours</option><option value="6h">6 hours</option><option value="12h">12 hours</option></select>';
481482
div.innerHTML.onload = setTimeValue();
482483

483484
return div;
@@ -4223,7 +4224,10 @@ function update(response) {
42234224

42244225
if(listScroll) listScroll.refresh();
42254226
if(zoomed_in && follow_vehicle == vcallsign && !manual_pan) panTo(follow_vehicle);
4226-
if(follow_vehicle == vcallsign) drawLOSPaths(vcallsign);
4227+
if (follow_vehicle == vcallsign) {
4228+
update_lookangles(follow_vehicle);
4229+
drawLOSPaths(vcallsign);
4230+
}
42274231
}
42284232

42294233
// step to the next callsign

0 commit comments

Comments
 (0)