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
public_html

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) {