Keep your target in view: smooth camera controls and organized data layers (#583)

## Explore the map without losing your target
Tilt and north-up used to stop tracking an aircraft or satellite. Both controls now keep the selected target centered while easing into the new angle over 650 ms, preserving camera range. Tilt switches between top-down and oblique views; north-up takes the shortest rotation. Rapid presses reverse a pending tilt, and pressing north-up during a tilt completes both changes.

New navigation, target selection, map gestures, and teardown cancel the transition. Cockpit keeps its existing camera guard.

## A data panel that follows how you explore
The panel now has five clearly labeled sections:

| Section | Layer order |
| --- | --- |
| Movement | Satellites → Live Flights → Military Flights → Live Vessels → Street Traffic → Bike Share |
| Cameras | Cameras → Mapped ALPR Cameras |
| Infrastructure | Mapped Installations → Data Centers → Submarine Cables → Dams |
| Events | Space Missions → Earthquakes → Active Fires |
| Utilities | Directions → Radio |

Readable panel labels replace CCTV, Bikeshare, Datacenters, and provider-heavy names. Source attribution remains in the subtitles, and toggle accessibility labels match the visible names. Presentation order is independent of layer registration; hidden layers stay hidden and unlisted layers remain available under Other layers.

## Validation
- Camera changes: full Node 24 suite, including allocation gates — 3,699 passing and one skipped.
- Final panel changes: 42 focused tests passed; browser inspection confirmed all sections, ordering, and labels.
- Real Cesium Camera/EntityView tests cover moving aircraft, low/high satellites, cancellation, navigation ownership, and rapid button presses.
- Live browser: UITMSAT-2 remained centered and selected through tilt and north-up, including combined commands.
- Final formatting, package-boundary checks, and production build pass.
- GitHub CI verifies the final head on Node 24, Node 26, and Windows onboarding before merge.
This commit is contained in:
Bilawal Sidhu authored and GitHub committed 2026-09-15 02:24:54 -05:00
1 parent c9f9896b48
commit 1ad565c8af
6 files changed
+402 -8

No files matched your search

+2 -1
View File
@@ -171,6 +171,7 @@ export class StyleManager {
cancelShareSelection: () => this._shareRestoration.cancelSelection(),
getDataManager: () => this._dataManager,
stopOrbit: () => this._stopOrbit(),
cancelOrientation: () => this._cameraOrientationControls?.cancel(),
showToast: (text) => this._showToast(text),
});
this._shareRestoration = new ShareRestoration({
@@ -3281,7 +3282,7 @@ export class StyleManager {
northButton: this._northUpBtn,
},
runNavigation: (noun, navigate) =>
this._runExplicitNavigation(noun, navigate),
this._navigation.runOrientation(noun, navigate),
showToast: (message) => this._showToast(message),
});
}