add option to relabel data input into readsb jaero port
This commit is contained in:
@@ -366,6 +366,7 @@ HideCols = [
|
||||
//
|
||||
//
|
||||
//jaeroTimeout = 35 * 60; // in seconds
|
||||
//jaeroLabel = "ADS-C"; // relabel the ADS-C data if used for other purposes (i.e. HFDL / acars2pos)
|
||||
|
||||
//seenTimeout = 58; // in seconds
|
||||
//seenTimeoutMlat = 58; // in seconds
|
||||
|
||||
@@ -372,6 +372,7 @@ let askLocation = false; // requires https for geolocation
|
||||
let filterMaxRange = 1e8; // 100 000 km should include all planes on earth ;)
|
||||
|
||||
let jaeroTimeout = 35 * 60; // in seconds
|
||||
let jaeroLabel = "ADS-C"; // relabel the ADS-C data if used for other purposes (i.e. HFDL / acars2pos)
|
||||
|
||||
let seenTimeout = 58; // in seconds
|
||||
let seenTimeoutMlat = 58; // in seconds
|
||||
@@ -405,7 +406,7 @@ let tableColors = {
|
||||
mlat: "#FDF7DD",
|
||||
uat: "#C4FFDC",
|
||||
adsr: "#C4FFDC",
|
||||
adsc: "#C4FFDC",
|
||||
adsc: "#9efa9e",
|
||||
modeS: "#d8d8ff",
|
||||
tisb: "#ffd8e6",
|
||||
unknown: "#dcdcdc",
|
||||
@@ -417,7 +418,7 @@ let tableColors = {
|
||||
mlat: "#F1DD83",
|
||||
uat: "#66FFA6",
|
||||
adsr: "#66FFA6",
|
||||
adsc: "#66FFA6",
|
||||
adsc: "#75f075",
|
||||
modeS: "#BEBEFF",
|
||||
tisb: "#FFC1D8",
|
||||
unknown: "#bcbcbc",
|
||||
|
||||
@@ -324,7 +324,7 @@ function format_data_source(source) {
|
||||
case 'mode_ac':
|
||||
return "Mode A/C";
|
||||
case 'adsc':
|
||||
return "Sat. ADS-C";
|
||||
return jaeroLabel;
|
||||
case 'other':
|
||||
return "Other";
|
||||
}
|
||||
|
||||
@@ -1758,10 +1758,7 @@ jQuery('#selected_altitude_geom1')
|
||||
function initLegend(colors) {
|
||||
let html = '';
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['adsb'] + ';">ADS-B</div>';
|
||||
if (!globeIndex)
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['uat'] + ';">UAT / ADS-R</div>';
|
||||
if (globeIndex)
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['uat'] + ';">ADS-C/R / UAT</div>';
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['uat'] + ';">UAT / ADS-R</div>';
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['mlat'] + ';">MLAT</div>';
|
||||
html += '<br>';
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['tisb'] + ';">TIS-B</div>';
|
||||
@@ -1771,6 +1768,7 @@ function initLegend(colors) {
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['other'] + ';">Other</div>';
|
||||
if (aiscatcher_server)
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['ais'] + ';">AIS</div>';
|
||||
html += '<div class="legendTitle" style="background-color:' + colors['adsc'] + `;">${jaeroLabel}</div>`;
|
||||
|
||||
document.getElementById('legend').innerHTML = html;
|
||||
}
|
||||
@@ -1788,7 +1786,7 @@ function initSourceFilter(colors) {
|
||||
html += createFilter(colors['tisb'], 'TIS-B', sources[3]);
|
||||
html += createFilter(colors['modeS'], 'Mode-S', sources[4]);
|
||||
html += createFilter(colors['other'], 'Other', sources[5]);
|
||||
html += createFilter(colors['uat'], 'ADS-C', sources[6]);
|
||||
html += createFilter(colors['adsc'], jaeroLabel, sources[6]);
|
||||
|
||||
if (aiscatcher_server) {
|
||||
html += createFilter(colors['ais'], 'AIS', sources[7]);
|
||||
|
||||
Reference in New Issue
Block a user