mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 00:32:21 +00:00
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:
1 parent
56d56a4d6d
commit
af449184ca
5 files changed
+64
-31
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user