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;
if (typeof data.category !== "undefined")
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) {

View file

@ -633,7 +633,9 @@ function refreshTableInfo() {
TrackedAircraft++;
var classes = "plane_table_row";
if (tableplane.position !== null)
if (tableplane.position_from_mlat)
classes += " mlat";
else if (tableplane.position !== null)
classes += " vPosition";
if (tableplane.icao == SelectedPlane)
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; }
.vPosition { font-weight: bold; background-color: #d5ffd5; }
.mlat { font-weight: bold; background-color: #d5d5ff; }
.squawk7500 { font-weight: bold; background-color: #ff5555; }
.squawk7600 { font-weight: bold; background-color: #00ffff; }
.squawk7700 { font-weight: bold; background-color: #ffff00; }