Proof of concept for an aircraft metadata DB.

This commit is contained in:
Oliver Jowett 2015-02-24 21:51:30 +00:00
parent d7c5047fd3
commit da2fff8531
6 changed files with 219 additions and 1 deletions
public_html

View file

@ -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