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

@ -170,3 +170,18 @@ function format_distance_long(dist) {
function format_latlng(p) {
return p[1].toFixed(3) + DEGREES + "," + NBSP + p[0].toFixed(3) + DEGREES;
}
function format_data_source(source) {
switch (source) {
case 'mlat':
return "MLAT";
case 'adsb':
return "ADSB";
case 'mode_s':
return "Mode S";
case 'mode_ac':
return "Mode A/C";
}
return "";
}