Proof of concept for an aircraft metadata DB.
This commit is contained in:
parent
d7c5047fd3
commit
da2fff8531
6 changed files with 219 additions and 1 deletions
public_html
|
@ -36,6 +36,23 @@ function PlaneObject(icao) {
|
|||
this.marker = null;
|
||||
this.icon = { type: 'generic',
|
||||
fillOpacity: 0.9 };
|
||||
|
||||
// request metadata
|
||||
this.registration = null;
|
||||
this.icaotype = null;
|
||||
getAircraftData(this.icao).done(function(data) {
|
||||
if ("r" in data) {
|
||||
this.registration = data.r;
|
||||
}
|
||||
|
||||
if ("t" in data) {
|
||||
this.icaotype = data.t;
|
||||
}
|
||||
|
||||
if (this.selected) {
|
||||
refreshSelected();
|
||||
}
|
||||
}.bind(this));
|
||||
}
|
||||
|
||||
// Appends data to the running track so we can get a visual tail on the plane
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue