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 main into pr-665

Sameh Khamis5472e54f73b5
diff --cc CHANGELOG.md
index 33174d45b,335977abb..05f9936a7
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,12 -1,250 +1,257 @@@
# Changelog
+- 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.
+ Failures the layer cannot classify keep the general line.
+
+ - 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 /
+ Landsat (30 m) and, when switched on, VIIRS daily overview imagery over it,
+ with thumbnails and scene cloud. Three modes: IMAGE shows one day, VS
+ BASEMAP swipes it against the map, A / B swipes two days; a SHOW or A / B
+ chip on each day card pins it, arrow keys preview the focused day while a
+ slot is empty, and no control moves when anything changes. While imagery is
+ shown on Google 3D the map switches to Esri and comes back when it is
+ cleared. Either image exports as a PNG; box, pins, mode and split travel in
+ share links; the NASA acknowledgement is in the credits and
+ `DATA_SOURCES.md`. The swipe is now shared with the Nepal scene
+ (`src/ui/imagerySplit.js`, `src/maps/imageryComparison.js`), and
+ `MapSourceController.subscribe()` reports every settled map switch.
+
+ ## Unreleased — local receiver feeds
+
+ - The Local ADS-B layer also reads local 1090 MHz and 978 MHz UAT decoder
+ feeds: the `aircraft.json` that dump1090-fa, readsb, tar1090 or skyaware978
+ serves. Configure them server-side with `LOCAL_RECEIVER_FEEDS`
+ (`band=url`, comma-separated); there is no feed editing in the browser.
+ Hosts must be loopback, RFC1918, `localhost` or `*.local`, the scheme http or
+ https and the path must end in `aircraft.json`; any other entry is logged at
+ startup, reported `invalid` and never fetched.
+ - Add `GET /api/local-receivers/aircraft`. It reads every configured feed in
+ parallel (2 s timeout, redirects refused, 2 MB body cap, about 1 s of shared
+ cache) and reports each feed `live`, `stale` (its own `now` is over 10 s old),
+ `unreachable` or `invalid`. Unconfigured, it answers
+ `{ configured: false }` and fetches nothing. Upstream error text is never
+ returned.
+ - The layer merges browser-SDR and feed aircraft by ICAO, keeping the newest
+ position, polls the route every second only while it is enabled, and remembers
+ which bands and sources heard each aircraft in the last 60 s. The click card
+ names them (for example "Heard by your receiver · 978 MHz UAT · decoder
+ feed"); aircraft heard only on 978 MHz carry a thin ring. The row status
+ covers both inputs ("2 feeds live · 14 heard", "feed 978 unreachable"), and
+ the Local RTL-SDR card shows a read-only decoder-feed line.
+ - While any input is producing aircraft (the browser receiver streaming, or a
+ feed live), the Local ADS-B row stays ON and lists feeds that are not live as
+ a trailing note ("3 heard · USB 5.8 msg/s · feed 1090 stale") instead of
+ showing DEGRADED.
+ - Records carry `band` (`1090`/`978`) and `source` (`webusb`/`feed`).
+ - See `docs/LOCAL-RECEIVERS.md`.
+
+ ## Unreleased — local RTL-SDR and Local ADS-B
+
+ - Add a Local RTL-SDR card to the Radio panel. It connects a USB RTL-SDR in
+ desktop Chrome or Edge through WebUSB and receives broadcast FM (tune, seek,
+ volume) or 1090 MHz ADS-B. Local FM and internet-radio playback never play
+ together: starting one stops the other.
+ - Add a gain control: AUTO or a manual R820T step, remembered per mode. ADS-B
+ defaults to 28.0 dB (the earlier 20.7 dB gave about 1 msg/s against about 9
+ at 28.0 dB on the same antenna; a stored choice still wins), FM to AUTO;
+ changes apply without reconnecting. In
+ ADS-B mode the card shows CRC-valid messages per second, aircraft heard,
+ aircraft positioned and the IQ level.
+ - Prefer the ADS-B/1090 MHz channel of a dual-channel receiver, remember an
+ explicitly chosen device per mode, and add CHANGE DEVICE to reopen the
+ WebUSB picker.
+ - Add the Local ADS-B layer (`local-adsb`, off by default, not part of share
+ links). Aircraft heard by the receiver draw in magenta beside public Flights;
+ a marker drops when its position is 60 s old and the aircraft is forgotten
+ after 60 s without a message. Clicking one opens a card; markers are not
+ camera-followed. Voice `set_layer_visibility` accepts `local-adsb`.
+ - Normalize local ADS-B into one record shape, with a pure adapter for
+ dump1090/readsb `aircraft.json` documents.
+ - Add `@jtarrio/webrtlsdr` and `@jtarrio/signals` (Apache-2.0); see
+ `THIRD_PARTY_NOTICES.md`.
+
+ ## Unreleased — weather review
+
+ - On 3D Tiles, draw a 4096×2048 detail window around the view on each
+ observed-weather shell except global infrared, sampled by the shell's own
+ surface. It follows the view on camera move end, keeps its place while the
+ view stays near its centre, and hides until its image is ready after a move;
+ an older frame's detail stays over at most one newer frame. The image proxy
+ accepts a 2:1 `bbox` inside the product bounds, rounded to 0.25°.
+ Lightning's whole-extent image is now 4096×2048; each shell caches up to
+ 128 MiB of decoded images.
+
+ - On 3D Tiles, show observed weather and the wind color field as raised,
+ translucent shells (5.0–6.6 km, lightning highest) with one full-extent image
+ per frame instead of draping onto tiles; they show at any camera height.
+ Globe hosts are unchanged. The weather image proxy serves every product
+ (radar and regional infrared up to 4096×2048, lightning and global infrared
+ up to 2048×1024) with a size parameter and a 16 MiB cap. Accept bounded tile
+ sizes in the proxy with separate immutable cache entries.
+
+ - Cache exact-time weather images and tiles for 24 hours. Retain up to 6 decoded
+ global mosaics per renderer and warm the next observation during playback;
+ tile prefetch is bounded to eight requests and cancels when suspended.
+
+ - Move weather times, coverage, legends and cyclone advisory details into keyed
+ right-rail cards; left rows keep status and configuration. Use one native
+ observed-history timeline with local preview and coalesced drag commits.
+ - Add reusable rail card and timeline components. Keep panel collapse, count,
+ hidden-empty behavior and first-appearance expansion.
+ - Show wind unit controls beside speed legends and inside inspection readings;
+ changing units preserves the sampled location and open reading.
+ - Name satellite imagery Satellite clouds, with Clouds only / Full image modes
+ and explicit regional coverage. Existing share parameters are unchanged.
+
+ - Share one observed history clock across radar, infrared and lightning. Step
+ through their union timeline with bounded nearest-at-or-before selection;
+ hide products without an eligible frame. Latest uses each product's newest
+ observation; playback waits for all frame loads to settle before advancing.
+ - Label wind as a forecast that does not follow observed history. Keep history
+ transient and product readouts synchronized.
+
+ - Keep Google 3D Tiles drawing while draped weather imagery loads and retain the
+ old observation until the replacement has rendered.
+ - Decode one bounded global infrared mosaic per frame on both map hosts, then
+ crop local tiles to avoid request-dependent brightness seams.
+ - Add Clouds only / Full image controls and share-link state. Filtered mode uses
+ a soft linear-brightness alpha ramp from 0.40 to 0.70 around the old 0.55 cut.
+
+ - Dock the weather summary in the right rail with standard panel collapse and drag chrome.
+
+ - Filter infrared brightness so cold cloud tops stand out; this is a display
+ filter, not a cloud mask.
+ - Retry throttled weather tiles up to three times per tile.
+
+ - Cull regional wind batches per frame, fade curves below 60 km, and stop idle
+ rendering when no curve is visible.
+ - Fade the wind color field below ~1,200 km camera height and hide it at 200 km.
+ On 3D Tiles, update alpha in 0.1 steps only at camera move end or installation;
+ globe imagery keeps its smooth per-frame fade.
+
+ - Hide cyclone markers, labels, tracks and cones beyond the horizon on every map source.
+ - Reserve stable weather status space and coalesce panel refreshes per frame.
+
+ - Add keyless NOAA/NHC cyclone advisory positions, coherent forecast tracks and
+ uncertainty cones, plus NOAA's observed 15-minute lightning density imagery.
+ Preserve source clocks, basin coverage and explicit pending/stale states.
+ - Make wind default to trails, preserve earlier share-link appearance, retain
+ geometry across scalar changes, and show a compact weather summary with a
+ location marker and selected-field emphasis for forecast inspection.
+
+ - Add keyless NOAA observed rain radar and infrared satellite layers to Weather,
+ with explicit coverage/freshness, recent observation playback and native Cesium tiles.
+ - Increase desktop wind density to 7,200 paths and improve temperature contrast
+ while retaining the 1,200-path narrow-screen budget and unchanged forecast values.
+
+ - Expand Wind into a surface-weather prototype: globe-draped speed shading,
+ optional same-run 2 m temperature and mean sea-level pressure, GFS/ECMWF model
+ selection, a numeric legend, wind units, Pause, and a dismissible map-center
+ reading. Keep wind visible when an optional field is unavailable; respect
+ reduced motion and stop animation while hidden or disabled. Bake bounded
+ forecast-following curves once per field and animate their phase on the GPU,
+ with a canvas fallback and globe view lighting owned only while Wind is enabled.
+ Display lift does not
+ change the 10 m forecast level; this adds no cloud volume, radar or forecast-time
+ playback. Native hardware GPU behavior remains unverified.
+
+ Add feed provenance to analyst/view answers and HUD context while retaining existing response fields and runner ownership (Matt Van Horn, #347).
+
+ Analyst records for loaded satellites, datacenters and dams, with explicit bounded count/rank coverage (Matt Van Horn, #351).
+ - New Fire Perimeters layer (Events group): live NIFC WFIGS interagency
+ wildfire incident perimeters as ground-clamped polygons with a
+ containment-colored fire line, refreshed every 5 minutes from the public
+ keyless feature service with truncation paging. Clicking a perimeter shows
+ an incident card (acreage, containment, cause, behavior, personnel, county,
+ cost, complex membership) and, when the incident has a state- and
+ recency-verified InciWeb page, a click-through link to it. Recency uses
+ incident page origin and update times because the publication API was retired.
+ The layer is reachable from the panel, voice control, share links (token `2`), and the
+ analyst query engine. WFIGS and InciWeb requests use a capped, cached
+ same-origin proxy with timeouts and a per-client limit. Unchanged refreshes
+ retain geometry; incident-link checks abort on disable or selection change,
+ and the row includes a containment legend.
+
+ - Remove the spurious scrollbars that appeared on both panel stacks at narrow
+ widths (720px and below) as soon as a panel was expanded. The stacks scroll
+ vertically there, and each panel's decorative glow, absolutely positioned
+ with a negative inset, became 18–20px of scrollable overflow on both axes: a
+ horizontal scrollbar band under the expanded CCTV, Context, Data Layers or
+ Scenes panel plus a vertical scrollbar that scrolled nothing but glow. The
+ narrow-screen rules now pin the glow to its panel box; the stacks still
+ scroll for genuinely tall content such as an expanded DISPLAY panel, and the
+ Context radio popover is not clipped. `src/ui/panelRails.test.mjs` pins the
+ rule against every 720px media block.
+
- Enable responsive trackpad pinch zoom on the globe. Browser pixel-mode
`Ctrl+wheel` pinch gestures now reach Cesium with bounded amplification,
while ordinary wheel, line-mode and touch-pinch inputs retain their existing