Display aircraft with mlat-derived positions with a different row color.

This commit is contained in:
Oliver Jowett 2015-06-29 10:47:29 +01:00
parent 51b5f4af24
commit bd96d40e4e
3 changed files with 15 additions and 2 deletions

View file

@ -297,6 +297,16 @@ PlaneObject.prototype.updateData = function(receiver_timestamp, data) {
this.squawk = data.squawk; this.squawk = data.squawk;
if (typeof data.category !== "undefined") if (typeof data.category !== "undefined")
this.category = data.category; this.category = data.category;
this.position_from_mlat = false
if (typeof data.mlat !== "undefined") {
for (var i = 0; i < data.mlat.length; ++i) {
if (data.mlat[i] === "lat" || data.mlat[i] == "lon") {
this.position_from_mlat = true;
break;
}
}
}
}; };
PlaneObject.prototype.updateTick = function(receiver_timestamp, last_timestamp) { PlaneObject.prototype.updateTick = function(receiver_timestamp, last_timestamp) {

View file

@ -632,8 +632,10 @@ function refreshTableInfo() {
} else { } else {
TrackedAircraft++; TrackedAircraft++;
var classes = "plane_table_row"; var classes = "plane_table_row";
if (tableplane.position !== null) if (tableplane.position_from_mlat)
classes += " mlat";
else if (tableplane.position !== null)
classes += " vPosition"; classes += " vPosition";
if (tableplane.icao == SelectedPlane) if (tableplane.icao == SelectedPlane)
classes += " selected"; classes += " selected";

View file

@ -22,6 +22,7 @@ div#loader { z-index: 99; position: absolute; left: 0; top: 0; bottom: 0; right:
#tableinfo, #sudo_buttons { font-size: x-small; font-family: monospace; } #tableinfo, #sudo_buttons { font-size: x-small; font-family: monospace; }
.vPosition { font-weight: bold; background-color: #d5ffd5; } .vPosition { font-weight: bold; background-color: #d5ffd5; }
.mlat { font-weight: bold; background-color: #d5d5ff; }
.squawk7500 { font-weight: bold; background-color: #ff5555; } .squawk7500 { font-weight: bold; background-color: #ff5555; }
.squawk7600 { font-weight: bold; background-color: #00ffff; } .squawk7600 { font-weight: bold; background-color: #00ffff; }
.squawk7700 { font-weight: bold; background-color: #ffff00; } .squawk7700 { font-weight: bold; background-color: #ffff00; }