File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,13 @@ <h4>Visibility</h4>
170
170
< input type ="checkbox " id ="opt_selective_sidebar ">
171
171
</ div >
172
172
</ div >
173
+ < div class ="row option ">
174
+ < span > < b > Show Low Altitude APRS</ b > </ span >
175
+ < div class ="switch off " id ="sw_hide_aprs ">
176
+ < span class ="thumb "> </ span >
177
+ < input type ="checkbox " id ="opt_hide_aprs ">
178
+ </ div >
179
+ </ div >
173
180
< h4 > Other</ h4 >
174
181
< hr />
175
182
< div class ="row option ">
Original file line number Diff line number Diff line change @@ -724,6 +724,7 @@ $(window).ready(function() {
724
724
'#sw_hide_horizon' ,
725
725
'#sw_hide_titles' ,
726
726
'#sw_selective_sidebar' ,
727
+ '#sw_hide_aprs' ,
727
728
"#sw_nowelcome" ,
728
729
"#sw_interpolate" ,
729
730
] ;
@@ -816,6 +817,9 @@ $(window).ready(function() {
816
817
case "opt_selective_sidebar" :
817
818
sidebar_update ( ) ;
818
819
break ;
820
+ case "opt_hide_aprs" :
821
+ clean_refresh ( wvar . mode , true , false ) ;
822
+ break ;
819
823
case "opt_interpolate" :
820
824
if ( on ) { graph_gap_size = graph_gap_size_max ; }
821
825
else { graph_gap_size = graph_gap_size_default ; }
Original file line number Diff line number Diff line change 4
4
*/
5
5
6
6
function formatData ( data ) {
7
+ var hideAprs = offline . get ( 'opt_hide_aprs' ) ;
7
8
var response = { } ;
8
9
response . positions = { } ;
9
10
var dataTemp = [ ] ;
@@ -57,7 +58,7 @@ function formatData(data) {
57
58
}
58
59
}
59
60
dataTempEntry . gps_alt = parseFloat ( ( data [ key ] [ i ] . alt ) . toPrecision ( 8 ) ) ;
60
- if ( dataTempEntry . gps_alt < 1500 && aprsflag ) {
61
+ if ( dataTempEntry . gps_alt < 1500 && aprsflag && ! hideAprs ) {
61
62
continue ;
62
63
}
63
64
dataTempEntry . gps_lat = parseFloat ( ( data [ key ] [ i ] . lat ) . toPrecision ( 8 ) ) ;
You can’t perform that action at this time.
0 commit comments