feat(core): persist viewer state and integrate Cesium services and profiles
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Observation view persistence
|
||||
|
||||
The operator's map camera/layer choices and selected rover model belong to Core presentation, not the vehicle's control authority. They use the existing scene profile store (`scene-profiles/<kind>/<owner hash>/meta.json`) with the vehicle ID as owner:
|
||||
|
||||
- `observation-map`: camera longitude/latitude/height/heading/pitch/roll and five layer visibility flags.
|
||||
- `rover-view`: chosen model ID only.
|
||||
|
||||
The browser record is only a one-time migration input after an acknowledged empty profile read. Reopening waits for writes queued by the previous view. Atomic revisioned writes retain meta.previous.json; read errors cannot publish defaults. Browser cache clearing does not erase these profiles.
|
||||
|
||||
Tracker centering is automatic only when no camera has been saved or chosen. “Показать аппарат на карте” deliberately recenters. Renderer recovery uses the latest camera, not the mount-time value.
|
||||
|
||||
PlayCanvas scene materials, layout and its own camera remain in the separate existing `rover` profile. Arming and input ownership are never restored by either presentation profile.
|
||||
Reference in New Issue
Block a user