diff --git a/docs/CURRENT-STATE.md b/docs/CURRENT-STATE.md index ee87f3abc..a5940a95f 100644 --- a/docs/CURRENT-STATE.md +++ b/docs/CURRENT-STATE.md @@ -1635,7 +1635,8 @@ the map switches to Esri imagery, and exit puts it back unless the operator picked another map meanwhile; another owner already holding the map (an imagery comparison) keeps it as it is. While orbit holds the lease, Recent Imagery cannot take it: turned on in orbit, the layer reports the comparison -in use and needs turning off and on again after exit. The Cockpit cloud pass is off in orbit +in use until, after exit, it is turned off and on again or its shown days +are cleared and picked again. The Cockpit cloud pass is off in orbit (it fades out above 24 km); cloud cover from orbit is the Weather layer's, and the saved cloud preference stands for the next aircraft or bridge. The layer hides the satellite's dot, docked companions, its own orbit ring and its detection bracket, and draws every diff --git a/src/ui/cockpitOrbitalView.js b/src/ui/cockpitOrbitalView.js index e549f406f..7d49fb95d 100644 --- a/src/ui/cockpitOrbitalView.js +++ b/src/ui/cockpitOrbitalView.js @@ -22,6 +22,7 @@ import { zoomTransitionState, } from '../cockpitOrbital.js'; import { + clampOrbitalLook, easeLook, lookIsOffset, orbitalLookReadoutParts, @@ -418,9 +419,14 @@ export function publishOrbitalView(info, transition = IDLE_TRANSITION) { // Tilted past the limb, the view's centre looks into space: no swath. The // camera eases toward the target, so both must meet the Earth; the HUD // republishes on its cadence, so the swath appears once the view arrives. + // Exact angles here, not the whole degrees the readout rounds to. + const target = clampOrbitalLook(state.lookTarget); const seesEarth = !offset || - (offNadirCentreMeetsEarth(info.altitudeM, tilt) && + (offNadirCentreMeetsEarth(info.altitudeM, { + northDeg: target.pitchDeg, + eastDeg: target.yawDeg, + }) && offNadirCentreMeetsEarth(info.altitudeM, { northDeg: state.lookView?.pitchDeg ?? 0, eastDeg: state.lookView?.yawDeg ?? 0,