Display aircraft with mlat-derived positions with a different row color.
This commit is contained in:
parent
51b5f4af24
commit
bd96d40e4e
3 changed files with 15 additions and 2 deletions
public_html
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue