Add registration and source to hover box

This commit is contained in:
James Wilson 2018-08-15 11:21:35 -05:00
parent 7d61b2aaab
commit e0bb6e11e7
2 changed files with 24 additions and 1 deletions

View file

@ -1165,6 +1165,21 @@ function refreshHighlighted() {
$('#higlighted_icaotype').text("");
}
if (highlighted.getDataSource() === "adsb_icao") {
$('#highlighted_source').text("ADS-B");
} else if (highlighted.getDataSource() === "tisb_trackfile" || highlighted.getDataSource() === "tisb_icao" || highlighted.getDataSource() === "tisb_other") {
$('#highlighted_source').text("TIS-B");
} else if (highlighted.getDataSource() === "mlat") {
$('#highlighted_source').text("MLAT");
} else {
$('#highlighted_source').text("Other");
}
if (highlighted.registration !== null) {
$('#highlighted_registration').text(highlighted.registration);
} else {
$('#highlighted_registration').text("");
}
$('#highlighted_speed').text(format_speed_long(highlighted.speed, DisplayUnits));