Read transit's viewport from the camera port

Feed activation and the view bounds read the camera port's pose and view
rectangle instead of the Cesium camera; the look-at centre comes from
geo/rectangle, which crosses the antimeridian as Cesium's does. The layer's
lifecycle loads the Cesium camera factory, so a viewer of a caller's own
still has a camera to read. viewport leaves the Cesium allow-list.
This commit is contained in:
Sameh Khamis committed 2026-11-06 21:23:57 -08:00
1 parent 56d56a4d6d
commit af449184ca
5 files changed
+64 -31

No files matched your search

+3
View File
@@ -1,5 +1,8 @@
import { destroyTrack } from '../../data/contactPlayback.js';
import * as Cesium from 'cesium';
// The Cesium camera factory: given a viewer of a caller's own, with no
// renderer bound, the layer's camera reads find a camera port.
import '../../render/cesium/camera.js';
import {
claimCameraSensitivity,
releaseCameraSensitivity,