mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Move the installations layer's camera, geometry and colours onto renderer ports
The layer's view rectangle, wide-view pose, flights and camera events now go through the camera port, and its distance and position maths through the geo helpers: getNearby confirms candidates with the ported ellipsoidal geodesic, as before, and returns plain ECEF positions. Class colours are renderer colours; the entities convert them. The layer's camera `changed` listener has its own 0.01 threshold on the port, the sensitivity it already claimed while on; the claim stays for other raw camera listeners. Controls, lifecycle, model, state and viewport no longer import Cesium and leave the allow-list. Rendering and the named markers stay on Cesium: the site markers are entities because the camera follows them on double-click and the tracked card reads its title and position from them, and the entity data source moves from lifecycle into rendering. Rendering loads the unbound camera factory for the parts that reach the port. The test camera bound over a Cesium-shaped fake now answers its view rectangle from the fake's computeViewRectangle when it has one.
This commit is contained in:
1 parent
e74c7c1f44
commit
1d2b853576
18 files changed
+126
-90
No files matched your search
@@ -2260,7 +2260,7 @@ test('installation titles share persistent card arbitration and retain a bounded
|
||||
const state = { enabled: true, viewer: env.viewer, contextAnchor: {} };
|
||||
const markers = createNamedMarkers({ state,
|
||||
services: { render: { governorRequestRender() {} } },
|
||||
parts: { model: { colorFor: () => Cesium.Color.ORANGE }, rendering: { installationSurfaceHeightM: () => 0 } },
|
||||
parts: { model: { colorFor: () => [1, 165 / 255, 0, 1] }, rendering: { installationSurfaceHeightM: () => 0 } },
|
||||
overlayHost: { setEntries: setOverlayEntries, clearSource: clearOverlaySource,
|
||||
setVisible: setOverlaySourceVisible, getDiagnostics: getWorldOverlayDiagnostics },
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user