Show additional columns when table is fully expanded

This commit is contained in:
Carlos Salaverria 2016-08-19 17:37:43 -05:00
parent 876e6874b4
commit 1c2bea38df
4 changed files with 87 additions and 16 deletions

View file

@ -178,6 +178,27 @@ PlaneObject.prototype.clearLines = function() {
}
};
PlaneObject.prototype.getDataSource = function() {
// MLAT
if (this.position_from_mlat) {
return 'mlat';
}
// Not MLAT, but position reported - ADSB
if (this.position !== null) {
return 'adsb';
}
var emptyHexRegex = /^0*$/;
// No position and no ICAO hex code - Mode A/C
if (this.hex === null || emptyHexRegex.test(this.hex)) {
return 'mode_ac';
}
// No position and ICAO hex code present - Mode S
return 'mode_s';
};
PlaneObject.prototype.getMarkerIconType = function() {
var lookup = {
'A1' : 'light',