feat(globe): bring the Navara engine up to the shell contract

- camera.livePosition: one engine-owned Cartesian3, refreshed on read
  (the model replaces its state on every move); camera.height()
- render.request(reason) takes the diagnostic reason and ignores it
- maps.current() returns the sources as passed: the base imagery on the
  globe (none while tiles replace it) and the tiles shown
- maps.releasePhotorealTiles forgets a source and takes its tiles away
  if they show
- base imagery and photoreal share one switch order; tiles off brings
  back the last base imagery with its credit; imagery chosen while
  tiles show waits hidden, credit included
- Navara QA runs the contract's maps checks with a Google 3D tiles
  source on the dev server's browser key: 58/58
This commit is contained in:
German Khokhlov committed 2026-10-15 19:08:47 +04:00
1 parent a4ac0b9b0d
commit 840e34a881
5 files changed
+130 -10

No files matched your search

+8
View File
@@ -266,7 +266,15 @@ export function createCameraModel({
}
}
// camera.livePosition: one owned object, refreshed on read (place() and
// sync() replace `state`, so it is copied rather than aliased).
const livePosition = cartesian3.create();
const camera = {
get livePosition() {
return cartesian3.clone(state.position, livePosition);
},
height: () => cartographic.fromCartesian(state.position, WGS84).height,
pose() {
const current = view();
const angles = headingPitchRoll(