Skip to content

Commit d7b4f99

Browse files
xssfoxTheSkorm
authored andcommitted
possible fix for off screen filtering issue
1 parent 9587cae commit d7b4f99

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

js/sondehub.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var manual_pan = false;
7474

7575
var car_index = 0;
7676
var car_colors = ["#a6cee3", "#1f78b4", "#fb9a99", "#e31a1c", "#fdbf6f", "#ff7f00", "#cab2d6"];
77-
var balloon_colors = ["#d95f02", "#7570b3", "#e7298a", "#e6ab02", "#a6761d", "#666666", "blue", "lime", "magenta", "#ffb300", "rebeccapurple"];
77+
var balloon_colors = ["#d95f02", "#7570b3", "#e7298a", "#e6ab02", "#a6761d", "#666666", "blue", "magenta", "#ffb300", "rebeccapurple"];
7878

7979
var nyan_color_index = 0;
8080
var nyan_colors = ['nyan', 'nyan-coin', 'nyan-mon', 'nyan-pirate', 'nyan-cool', 'nyan-tothemax', 'nyan-pumpkin', 'nyan-afro', 'nyan-coin', 'nyan-mummy'];
@@ -1790,20 +1790,22 @@ function updateVehicleInfo(vcallsign, newPosition) {
17901790
$('.landscape').append('<div id="lv'+vehicle.uuid+'" class="row vehicle'+vehicle.uuid+'" data-vcallsign="'+vcallsign+'"></div>');
17911791
}
17921792

1793-
if (offline.get('opt_selective_sidebar')) {
1794-
if (map.getBounds().contains(vehicles[vcallsign].marker.getLatLng())) {
1795-
document.getElementById("pv"+vehicle.uuid).style.display = "block";
1796-
document.getElementById("lv"+vehicle.uuid).style.display = "block";
1797-
} else {
1798-
document.getElementById("pv"+vehicle.uuid).style.display = "none";
1799-
document.getElementById("lv"+vehicle.uuid).style.display = "none";
1800-
}
1801-
}
18021793

18031794
} else if(elm.attr('data-vcallsign') === undefined) {
18041795
elm.attr('data-vcallsign', vcallsign);
18051796
}
18061797

1798+
if (offline.get('opt_selective_sidebar')) {
1799+
if (map.getBounds().contains(vehicles[vcallsign].marker.getLatLng())) {
1800+
document.getElementById("pv"+vehicle.uuid).style.display = "block";
1801+
document.getElementById("lv"+vehicle.uuid).style.display = "block";
1802+
} else {
1803+
document.getElementById("pv"+vehicle.uuid).style.display = "none";
1804+
document.getElementById("lv"+vehicle.uuid).style.display = "none";
1805+
}
1806+
}
1807+
1808+
18071809
// decides how to display the horizonal speed
18081810
var imp = offline.get('opt_imperial'), hrate_text;
18091811
var ascent_text = imp ? (vehicle.ascent_rate * 196.850394).toFixed(1) + ' ft/min' : vehicle.ascent_rate.toFixed(1) + ' m/s';

0 commit comments

Comments
 (0)