Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

Merge pr/panel-resize into pr/mapillary-layer

Said Turksever768f25672050
diff --cc CHANGELOG.md
index d2d462031,2f1e224e2..9dae7d8af
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,85 -1,9 +1,90 @@@
# Changelog
+ - Rail panels can opt into a portable mode: dragging the CCTV panel by its
+ header lifts it out of the right rail into a floating window that resizes
+ from any edge or corner, remembers its position and size, and snaps back on
+ a header double-click.
++
+- Street Level: a provider-neutral street-level imagery layer modelled on the iD editor's photo overlay. One panel in the right rail carries a chip per imagery provider, shared 360°/flat and captured-since filters, coverage drawn on the globe from orbit down to a single street, image cones per sequence, and one embedded viewer whose adapter follows the provider of the open image; each active provider credits its imagery on the globe, and share links carry the provider switches and the filter. Mapillary is the first provider (free client token; CC BY-SA 4.0 imagery); Google Street View, KartaView and Panoramax are next.
+
+- CCTV cameras whose bearing is a guess now say so. Packs mark bearings derived
+ from a hash of the camera id as `headingConfidence: 'low'`, but nothing read the
+ flag, so roughly 70% of a default catalog rendered like surveyed facings. The HUD
+ now reads `HDG n° (ESTIMATED)` and the coverage wireframe draws dashed; manual
+ calibrations and curated poses are never marked estimated (bassem chagra, #643).
+
+- Report which upstream declined a Street Traffic road load. The layer row now
+ reads `Overpass rate-limited`, `Overpass timed out`, or
+ `Overpass refused the road query (HTTP 406)` instead of a general
+ "Road data temporarily unavailable", so a reader is not sent to check a
+ TomTom key when the public OpenStreetMap mirrors are the side that failed.
+ The proxy's own 502 (every mirror unreachable) and 503 (local limiter busy)
+ read `Overpass mirrors unreachable` and `Overpass temporarily unavailable`.
+ Failures the layer cannot classify keep the general line (daikaginza, #665).
+
+- Bound the client terrain-height cache at 20 000 entries with least-recently-used eviction, so a long session no longer retains every coordinate it ever resolved. Consumer reads promote their entry and a batch still reports every point it resolved (Pedro Lobato, #594).
+
+- Release CCTV media streams whose upstream falls silent after answering. The
+ 15-second media deadline covered only the wait for response headers, so a
+ camera that replied and then stopped sending held both the proxy connection
+ and its upstream socket open for as long as the camera host allowed; the
+ declared `Content-Length` ceiling was the only body bound, and a chunked or
+ length-less body had none. A 30-second idle deadline now bounds the gap
+ between upstream chunks and releases a body that has gone silent. It is
+ rescheduled while the response is still waiting to drain, so a viewer on a
+ slow link is not mistaken for a dead camera; live feeds are unaffected
+ (Ethan Stoner, #688).
+
+- Aircraft track backfill (`/api/opensky-track`, `/api/adsblol/trace`) now
+ answers 502 when the upstream body exceeds the 5 MB cap, instead of a 200
+ whose error body the client read as an empty track. The failure is cached
+ like other upstream errors, so retries inside the 60 s window do not spend
+ OpenSky credits (Raushankumar0720, #720, #722).
+
+- Saving a key from Provider Settings works again on Macs where Nix or
+ Homebrew coreutils sit ahead of `/bin` on `PATH`. The credential hardener
+ now spawns Apple's `/bin/chmod -N` by absolute path; GNU `chmod` has no `-N`,
+ so the ACL strip failed closed and every save was refused (Arthur Bogaart, #694).
+
+- Render on iPad and iPhone instead of stopping with "An error occurred while
+ rendering." Cesium's per-vertex model atmosphere binds shader `out`
+ parameters directly to varyings, which Apple's Metal/ANGLE backend cannot
+ link, so the program failed and the render loop was torn down. The stage is
+ now kept out of the pipeline on affected devices by clearing
+ `scene.fog.renderable`, which leaves `fog.enabled` — and the fog density that
+ drives 3D Tiles refinement — untouched. Detection is a WebGL2 link probe of
+ the same pattern, so a future driver fix restores the effect with no code
+ change, with iOS/iPadOS detection as a backstop. Sky atmosphere and the
+ ground-atmosphere fragment path route through locals and are unaffected;
+ affected devices lose distance fog on 3D tiles and on the globe basemaps.
+ `src/app/atmosphereCompat.test.mjs` pins the probe, the platform matrix and
+ the `renderable`-not-`enabled` choice (KnottyDyes, #705).
+
+- Region scopes in voice analyst queries ("in the Gulf of Mexico", "over
+ the Alps") work again in the dev server: the bundled Natural Earth and
+ neighborhood packs are fetched as JSON in the browser
+ (`src/data/bundledJson.js`). When a region is not in the bundled packs, the
+ geocode and admin-boundary fallback answers `region-timeout` after 3 s
+ instead of holding the reply.
+
+- Transit and Directions rows repaint as soon as their data lands again:
+ `refreshLayerStats()` now lives on the layer lifecycle, not only on the
+ compatibility facade. `scripts/qa-radio.mjs` uses it instead of a private
+ panel method.
+- On phones the title bar sits 16 px from the top so both Radio broadcast
+ waves stay on-screen.
+- Keep Cyber right-rail panels mutually exclusive and Display, CCTV and Context
+ headers and frames fixed during content scrolling. Restore Radio's nested Context placement and compact
+ player. Add Cyber Sonar voice controls with settings and effect-state readback.
+ Keep keyboard-focus outlines visible inside Cyber's clipped map and cockpit
+ expand/collapse buttons, with a matching red hover border.
+
+- Add the opt-in Cyber HUD layout with coordinated map and cockpit panel
+ styling. Display exposes Sonar on/off, rings, range, power, opacity and sector.
+ Native point, billboard and label highlighting uses GPU draw commands; there
+ is no scene-dimming effect selector. Unsupported shaders retain native contact
+ rendering, and leaving Cyber restores the standard shell and contact treatment.
+
- Add a **Recent Imagery** data layer (NASA GIBS · HLS + VIIRS, keyless).
Select a box (drag, the current view, or around a pin; up to 1,000 km a
side) and the right-rail panel lists the last 30 days of Sentinel-2 /
diff --cc package.json
index a342e10bf,ea32619e9..d742c777e
--- a/package.json
+++ b/package.json
@@@ -39,17 -35,19 +39,18 @@@
"doctor": "node scripts/setup-doctor.mjs",
"format": "node scripts/format.mjs --write",
"format:check": "node scripts/format.mjs --check",
- "dev": "vite",
- "dev:secure": "./scripts/dev-secure.sh",
"opensky:import": "./scripts/opensky-import-client.sh",
- "build": "vite build",
"preview": "vite preview",
- "test": "node scripts/run-unit-tests.mjs",
- "test:track": "node scripts/track-regression.mjs",
"qa:map-source-tray": "node scripts/qa-map-source-tray.mjs",
- "check:boundaries": "node scripts/check-import-directions.mjs && node scripts/check-package-boundaries.mjs",
++ "qa:panel-resize": "node scripts/qa-panel-resize.mjs",
+ "qa:street-level": "node scripts/qa-street-level.mjs",
"qa:transit": "node scripts/qa-transit.mjs",
- "qa:panel-resize": "node scripts/qa-panel-resize.mjs"
+ "test": "node scripts/run-unit-tests.mjs",
+ "test:track": "node scripts/track-regression.mjs"
},
"dependencies": {
+ "@jtarrio/signals": "^0.10.0",
+ "@jtarrio/webrtlsdr": "^3.0.6",
"@mapbox/vector-tile": "^3.0.0",
"@meri-imperiumi/eccodes-wasm": "^2.48.2",
"cesium": "^1.124.0",
diff --cc src/ui/styles/layers.css
index ba9bfbc68,3b6f4fd79..9b2534054
--- a/src/ui/styles/layers.css
+++ b/src/ui/styles/layers.css
@@@ -161,8 -161,7 +161,8 @@@
max-height var(--transition-fast);
}
#right-context-rail > #pp-toggles,
- #right-context-rail > #cctv-panel,
- #right-context-rail > #street-level-panel,
+ #right-context-rail > #cctv-panel:not(.panel-floating),
++#right-context-rail > #street-level-panel:not(.panel-floating),
#right-context-rail > #weather-panel,
#right-context-rail > #recent-imagery-panel,
#right-context-rail > #global-context-panel {
@@@ -176,8 -175,7 +176,8 @@@
max-height: 100%;
pointer-events: auto;
}
- #right-context-rail #cctv-panel,
- #right-context-rail #street-level-panel,
+ #right-context-rail #cctv-panel:not(.panel-floating),
++#right-context-rail #street-level-panel:not(.panel-floating),
#right-context-rail #weather-panel,
#right-context-rail #recent-imagery-panel {
width: 100%;
@@@ -192,8 -190,7 +192,8 @@@
flex-shrink: 1;
min-height: 0;
}
- #right-context-rail #cctv-panel.collapsed,
- #right-context-rail #street-level-panel.collapsed,
+ #right-context-rail #cctv-panel.collapsed:not(.panel-floating),
++#right-context-rail #street-level-panel.collapsed:not(.panel-floating),
#right-context-rail #weather-panel.collapsed,
#right-context-rail #recent-imagery-panel.collapsed {
width: var(--right-display-collapsed-width);
@@@ -268,8 -264,8 +271,10 @@@
display: none;
}
#right-context-rail.layout-focus > #pp-toggles:not(.collapsed),
- #right-context-rail.layout-focus > #cctv-panel:not(.collapsed),
- #right-context-rail.layout-focus > #street-level-panel:not(.collapsed),
+ #right-context-rail.layout-focus
+ > #cctv-panel:not(.collapsed):not(.panel-floating),
++#right-context-rail.layout-focus
++ > #street-level-panel:not(.collapsed):not(.panel-floating),
#right-context-rail.layout-focus > #weather-panel:not(.collapsed),
#right-context-rail.layout-focus > #recent-imagery-panel:not(.collapsed),
#right-context-rail.layout-focus > #global-context-panel:not(.collapsed) {
@@@ -288,11 -284,8 +293,11 @@@
> #weather-panel:not(.collapsed)
.weather-panel-inner,
#right-context-rail.layout-focus
- > #cctv-panel:not(.collapsed)
+ > #cctv-panel:not(.collapsed):not(.panel-floating)
.cctv-panel-inner,
+#right-context-rail.layout-focus
- > #street-level-panel:not(.collapsed)
++ > #street-level-panel:not(.collapsed):not(.panel-floating)
+ .street-level-panel-inner,
#right-context-rail.layout-focus
> #recent-imagery-panel:not(.collapsed)
.recent-imagery-panel-inner,
diff --cc src/ui/styles/responsive.css
index ab84bbff4,197fac801..4faccd150
--- a/src/ui/styles/responsive.css
+++ b/src/ui/styles/responsive.css
@@@ -216,10 -216,8 +216,10 @@@
}
#right-context-rail #pp-toggles.collapsed .pp-header-row,
- #right-context-rail #cctv-panel,
- #right-context-rail #street-level-panel,
- #right-context-rail #cctv-panel.collapsed,
- #right-context-rail #street-level-panel.collapsed,
+ #right-context-rail #cctv-panel:not(.panel-floating),
+ #right-context-rail #cctv-panel.collapsed:not(.panel-floating),
++ #right-context-rail #street-level-panel:not(.panel-floating),
++ #right-context-rail #street-level-panel.collapsed:not(.panel-floating),
#right-context-rail #recent-imagery-panel,
#right-context-rail #recent-imagery-panel.collapsed,
#right-context-rail #radio-panel,