have verbose type available from database (not used at the moment)
This commit is contained in:
@@ -95,6 +95,7 @@ function getIcaoAircraftTypeData(aircraftData, defer) {
|
||||
}
|
||||
|
||||
function lookupIcaoAircraftType(aircraftData, defer) {
|
||||
aircraftData.vType = aircraftData.desc;
|
||||
if (_aircraft_type_cache !== null && "t" in aircraftData) {
|
||||
var typeDesignator = aircraftData.t.toUpperCase();
|
||||
if (typeDesignator in _aircraft_type_cache) {
|
||||
|
||||
@@ -122,6 +122,10 @@ function PlaneObject(icao) {
|
||||
this.typeDescription = data.desc;
|
||||
}
|
||||
|
||||
if (data.vType != null) {
|
||||
this.vType = data.vType;
|
||||
}
|
||||
|
||||
if ("wtc" in data) {
|
||||
this.wtc = data.wtc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user