File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -848,13 +848,12 @@ $(window).ready(function() {
848848 break ;
849849 case "opt_hide_horizon" :
850850 if ( on ) {
851- // TODO: Remove horizon and labels from map
852- console . log ( "Remove horizons." ) ;
851+ hideHorizonRings ( ) ;
853852 }
854853 else {
855- // TODO: Add horizon to map.
856- console . log ( "Add horizons." ) ;
854+ showHorizonRings ( ) ;
857855 }
856+ break ;
858857 case "opt_layers_aprs" :
859858 if ( on ) map . overlayMapTypes . setAt ( "1" , overlayAPRS ) ;
860859 else map . overlayMapTypes . setAt ( "1" , null ) ;
Original file line number Diff line number Diff line change @@ -1549,6 +1549,7 @@ function addPosition(position) {
15491549 if ( ! vehicles . hasOwnProperty ( vcallsign ) ) {
15501550 var marker = null ;
15511551 var marker_shadow = null ;
1552+ var landing_marker = null ;
15521553 var vehicle_type = "" ;
15531554 var horizon_circle = null ;
15541555 var subhorizon_circle = null ;
@@ -1710,7 +1711,6 @@ function addPosition(position) {
17101711 } ;
17111712
17121713 // Add landing marker if the payload provides a predicted landing position.
1713- // TODO: Only create this if the lat/lon are not zero.
17141714 if ( position . data . hasOwnProperty ( 'pred_lat' ) && position . data . hasOwnProperty ( 'pred_lon' ) ) {
17151715 // Only create the marker if the pred lat/lon are not zero (as will be the case during ascent).
17161716 if ( ( position . data . pred_lat !== 0.0 ) && ( position . data . pred_lon !== 0.0 ) ) {
@@ -1732,6 +1732,8 @@ function addPosition(position) {
17321732 title : vcallsign + " Onboard Landing Prediction"
17331733 } ) ;
17341734 gmaps_elements . push ( landing_marker ) ;
1735+ } else {
1736+ landing_marker = null ;
17351737 }
17361738 } else {
17371739 landing_marker = null ;
You can’t perform that action at this time.
0 commit comments