Skip to content

Commit f4e4bfb

Browse files
darksidelemmrossengeorgiev
authored andcommitted
Fix error with chase cars and landing_marker.
1 parent d013737 commit f4e4bfb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

js/tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1549,6 +1549,7 @@ function addPosition(position) {
15491549
if(!vehicles.hasOwnProperty(vcallsign)) {
15501550
var marker = null;
15511551
var marker_shadow = null;
1552+
var landing_marker = null;
15521553
var vehicle_type = "";
15531554
var horizon_circle = null;
15541555
var subhorizon_circle = null;
@@ -1729,6 +1730,8 @@ function addPosition(position) {
17291730
title: vcallsign + " Onboard Landing Prediction"
17301731
});
17311732
gmaps_elements.push(landing_marker);
1733+
} else {
1734+
landing_marker = null;
17321735
}
17331736
} else {
17341737
landing_marker = null;

0 commit comments

Comments
 (0)