mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 02:32:18 +00:00
Commit the shown CCTV camera with FOCUS, not a hidden picker option
The picker no longer keeps a hidden, disabled copy of the opening camera. That copy could be re-picked with ArrowDown on a closed list, could show twice in the iOS picker, and left Firefox without an accessible value. The list now selects the camera's own option, as before. A native list sends no change for the option it already shows, so FOCUS (or NEAREST, when that camera is the nearest) keeps the shown camera. Closing the list without a choice keeps automatic selection.
This commit is contained in:
1 parent
a6eecee157
commit
09588b98bf
13 files changed
+56
-105
No files matched your search
@@ -2003,14 +2003,15 @@ count of cameras outside the view.
|
||||
Turning CCTV on opens on the camera nearest the view. Until someone picks a
|
||||
camera, each settled move, such as a shared view's flight landing, moves it to
|
||||
the camera then nearest the view. Automatic selection ends at the first pick:
|
||||
NEAREST, PREV or NEXT, a camera chosen in the picker, a click on a camera, a
|
||||
click on empty ground that deselects, an auto-hop step, or a call to
|
||||
NEAREST, PREV or NEXT, FOCUS, a camera chosen in the picker, a click on a
|
||||
camera, a click on empty ground that deselects, an auto-hop step, or a call to
|
||||
`selectCamera`, `focusNearest`, `focusNearestToPoint` or
|
||||
`setParams({ selectedCameraId })`, which voice and scenes use. Picking the
|
||||
camera that is already active counts. While the camera is the automatic one,
|
||||
the picker shows it from a hidden first option, so choosing that camera from
|
||||
the list is a change and ends automatic selection; closing the list without a
|
||||
choice keeps it.
|
||||
camera that is already active counts. The picker shows the automatic camera
|
||||
as its own option, and a native list sends no change for the option it
|
||||
already shows, so the list cannot pick that camera: FOCUS does, and so does
|
||||
NEAREST when that camera is the nearest. Closing the list without a choice
|
||||
keeps automatic selection.
|
||||
|
||||
Traffic owns its rendered-surface observer only while enabled, removes it on disable/destroy, and rebuilds no cached heights on frames where the surface identity is unchanged. Its dots and heat-lines are two renderer draw sets, it animates on the frame port's preRender, and it follows the camera through the camera port at its own 5% threshold rather than the shared `percentageChanged` ledger. The surface identity is the globe port's `surfaceVersion()` and tile readiness its `isSettled('surface')`, so the layer no longer reaches Cesium. Heat-lines are always asked for draped: where the Cesium renderer cannot drape (no depth textures) its draw port draws them (and every other draped line) over the surface, in their colour where the surface hides them and hidden past the horizon, recolouring a line in place when only its colour changes, rather than the layer dropping them.
|
||||
|
||||
|
||||
Reference in new issue
Block a user