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 upstream/main into pr/mapillary-layer

Said Turksever817716f0c129
diff --cc CHANGELOG.md
index 58342354a,0bcdebf70..1dd8134f7
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,6 -1,150 +1,151 @@@
# Changelog
+- Street Level (Mapillary): a new layer draws Mapillary coverage on the globe from orbit down to a single street, opens photos and 360° panoramas in an embedded MapillaryJS viewer beside the CCTV panel, and answers plain-English questions ("show me all fire hydrants in Sacramento") with Mapillary's detected objects and traffic signs when an Anthropic key is present; the layer needs a free Mapillary client token and credits CC BY-SA 4.0 imagery on the globe.
+ - 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 — 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).
+
+ - 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
+ behavior; the listener is removed with the application scene.
+
+ - Report AIS speed and course that carry the standard "not available" code as
+ unknown instead of 102.3 knots and 360 degrees. Genuine readings, including a
+ stopped vessel's zero and the highest encodable values, are unchanged.
+
+ - Render native `<select>` option lists in the dark UI palette. The closed
+ controls were already skinned, but the browser-painted popups fell back to the
+ platform light palette, leaving near-white option text on a white surface in
+ the HUD layout, Scenes, CCTV camera, Radio filter and Draw colour menus.
+
+ - Credit adsbdb, which supplies the aircraft type, model name and registration
+ on enriched flights and the airline and origin/destination pair behind the
+ tracked contact's route strip. `DATA_SOURCES.md` now records adsbdb's
+ published credits and route-data restriction, along with the request bounds
+ and gitignored 24-hour local cache. A matching `DATA_CREDITS` entry surfaces
+ the credit in the in-app Data attribution popover, and a test protects it
+ against accidental removal.
+
+ - Size the TomTom daily tile budget to the provider's real free allowance.
+ `TOMTOM_DAILY_TILE_BUDGET` defaulted to 40,000/day against an allowance
+ granted monthly (200,000 tile requests/month), exhausting a month in five
+ days and leaving the traffic layer dead for the rest of the period. The
+ default is now 6,000/day (186,000 over a 31-day month). Corrects the stale
+ "~50k/day" free-tier figure in the proxy, `.env.example` and
+ `DATA_SOURCES.md`. Still an application-side ceiling, not a billing cap.
+
- Distinguish PARTIAL vessel snapshots from STALE data in the layer panel, with
accepted-record counts and unchanged retention, freshness and outage safeguards.
diff --cc DATA_SOURCES.md
index 5a86b0ad3,a9cf38145..bc79bfd1c
--- a/DATA_SOURCES.md
+++ b/DATA_SOURCES.md
@@@ -15,9 -15,12 +15,14 @@@ How to read this
| Source | Used for | License / terms | Attribution |
| --------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
+ | **NOAA GFS (wind)** (`noaa-gfs-bdp-pds.s3.amazonaws.com`) | Global 10 m wind, optional 2 m temperature and mean sea-level pressure for Wind. Keyless; latest 6-hourly 0.25° cycle, byte-range GRIB2 reads, cached for an hour | U.S. public domain (NOAA); keyless via NOAA Open Data on AWS | "NOAA Global Forecast System (GFS)" (courtesy; not an endorsement) |
+ | **ECMWF IFS (wind)** (`data.ecmwf.int/forecasts`, ECMWF Open Data) | The alternative Wind model: 10 m wind, optional 2 m temperature and mean sea-level pressure. Keyless; latest 6-hourly 0.25° run, byte-range GRIB2 reads, cached for an hour | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) plus the [ECMWF Terms of Use](https://apps.ecmwf.int/datasets/licences/general/) | "This service is based on data and products of the European Centre for Medium-Range Weather Forecasts (ECMWF)", with the CC BY 4.0 link, the modification notice and ECMWF's liability disclaimer — shown in-app |
+ | **NOAA nowCOAST observed weather** (`nowcoast.noaa.gov/geoserver/observations/{weather_radar,satellite}/ows`, WMS 1.1.1) | Rain radar (MRMS base reflectivity, contiguous US, about 4-minute updates) and Satellite clouds (GOES-19/18 Band 14 regional infrared, about 5-minute updates; global infrared mosaic, hourly). Keyless; layer metadata refreshed every 2 minutes, exact-time images cached for up to 24 hours | [NOAA disclaimer](https://oceanservice.noaa.gov/disclaimer.html) | "NOAA nowCOAST · NWS/OAR MRMS radar; NESDIS GOES and global satellite partners" |
+ | **NOAA nowCOAST lightning density** (`nowcoast.noaa.gov/geoserver/observations/lightning_detection/ows`) | Lightning density: 15-minute accumulated strike density on an approximately 8 km grid, Americas and Pacific. Keyless; layer metadata refreshed every 10 minutes, exact-time images cached for up to 24 hours | NOAA Level-5 derived product from Vaisala NLDN/GLD360; the [product description](https://ocean.weather.gov/lightning/lightning_pdd.php) permits public distribution of this density product, not of raw Vaisala detections | "NOAA/NWS nowCOAST; derived from Vaisala NLDN/GLD360" |
+ | **NOAA NHC / CPHC advisories** (`www.nhc.noaa.gov/CurrentStorms.json` + the `mapservices.weather.noaa.gov` tropical weather summary MapServer) | Cyclone advisories: storm positions, forecast tracks, points and cones for the Atlantic and eastern/central North Pacific. Keyless through `/api/cyclones`; cached for 5 minutes | [NWS public-data terms](https://www.weather.gov/disclaimer); no endorsement implied | "NOAA/NWS NHC / CPHC" |
| **OpenStreetMap ALPR camera locations** (including DeFlock community mapping) | Optional mapped automatic license-plate-reader camera layer | [ODbL 1.0](https://opendatacommons.org/licenses/odbl/1-0/); commercial use permitted with applicable attribution and database share-alike obligations | [© OpenStreetMap contributors](https://www.openstreetmap.org/copyright); [DeFlock](https://deflock.org) community mapping |
+| **Mapillary** (vector tiles, Graph API, MapillaryJS) | Street Level layer: coverage, image cones, embedded viewer, and the map features / traffic signs behind the plain-English query box | Imagery and derived data [CC BY-SA 4.0](https://www.mapillary.com/terms); API use under the Mapillary Platform Terms with a client token; tiles are cached locally for 24 h | "Imagery © Mapillary contributors, CC BY-SA 4.0" — shown on the globe while the layer is on, and by the embedded viewer's attribution component |
+| **mapillary_sprite_source** (icons) | Map-feature icons on the globe | [MIT](https://github.com/mapillary/mapillary_sprite_source/blob/master/LICENSE) | Copyright (c) 2015 mapillary |
| **Google Map Tiles API** (Photorealistic 3D Tiles) + Places/Geocoding | The 3D globe, voice scene context, and on-demand nearby installation search | Google Maps Platform ToS (proprietary, your own key + billing) | "Google" / "Google Maps" logo — **shown in-app**, required |
| **OpenSky Network** | Primary worldwide live-flight snapshot | Non-commercial research/education license | Schäfer et al., _"Bringing Up OpenSky"_, IPSN 2014 + opensky-network.org |
| **adsb.lol point API** | Bounded live-flight fallback when OpenSky has no usable snapshot | ODbL 1.0 | adsb.lol contributors; `api.adsb.lol/v2/lat/{lat}/lon/{lon}/dist/{radius}` |
diff --cc README.md
index a43609780,88690d52f..44859f908
--- a/README.md
+++ b/README.md
@@@ -278,26 -277,33 +277,34 @@@ _Ask for radio near anywhere and the gl
## 🛰️ What's on the Globe
- Sixteen layers and map sources. **Thirteen have a keyless path.** Some offer additional capabilities with a provider key. (🟢 no key · 🟡 free key · 🔴 metered.)
-Nineteen layers and map sources. **Seventeen have a keyless path.** Some offer additional capabilities with a provider key. (🟢 no key · 🟡 free key · 🔴 metered.)
--
- | Layer | What you get | Source | Auth |
- | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------- |
- | 🗺️ **Map Stack** | Esri satellite imagery, Google Photorealistic 3D, OSM, plus additional ion-hosted stacks | Esri / Google / Ion / OSM | 🟢 Esri satellite + OSM · 🟡 ion-hosted Google 3D + world terrain · 🔴 direct Google + place search |
- | ✈️ **Live Flights** | 11,000+ live aircraft + route history | OpenSky + adsb.lol | 🟢 (🟡 optional for more polling credits) |
- | 🎖️ **Military Flights** | ADS-B military traffic in amber | adsb.lol | 🟢 |
- | 🚢 **Live Vessels** | Thousands of ships worldwide | AISStream | 🟡 |
- | 🛰️ **Satellites** | 838-object catalog, color-coded by class with a live legend — the **DENSE** chip drops in the whole Starlink shell | CelesTrak | 🟢 |
- | 🌍 **Earthquakes** | Global seismic activity, last 24h | USGS | 🟢 |
- | 🚗 **Traffic** | Simulated vehicles on OSM roads. With TomTom, live flow speeds drive the simulation and congestion colors below ~8 km; individual vehicle positions are not live observations | TomTom + OSM | 🟢 simulation · 🟡 live flow speeds |
- | 📹 **CCTV Mesh** | ~3,600 public cameras projected _into_ the 3D space — Austin · Texas (TxDOT) · California (Caltrans) · London (TfL) · Ontario (511) · Finland (Fintraffic) · British Columbia (DriveBC) · Estonia (Tallinn, Tarktee) · New South Wales (Live Traffic NSW) · Calgary. Positions are published; poses are estimated priors **you calibrate by dragging a gizmo on the camera itself** | City APIs | 🟢 |
- | 📷 **Street Level** | Mapillary coverage drawn onto the streets, click a sequence for its image cones, open any image in the embedded MapillaryJS viewer, and **Street Cockpit** — the globe camera follows the street-level view. Ask **the plain-English query box** in plain English (_"show me all fire hydrants in Sacramento"_) and the detected objects and traffic signs stream onto the globe tile by tile with Mapillary's own icons | Mapillary + Anthropic | 🟡 Mapillary client token · 🔴 Anthropic key for the AI query |
- | 📻 **Radio** | Geolocated world radio with an **analog tuner** — drag the needle across up to 750 stations and the globe flies to each broadcaster | Radio Browser / broadcasters | 🟢 |
- | 🚌 **Transit** | Live buses, trams, metros, trains and ferries with delayed playback between reports, selected-vehicle trails, and mode-coloured DETECT labels — Boston, Austin, Minneapolis, Helsinki, the Netherlands, Norway, South East Queensland | Operator GTFS-Realtime feeds | 🟢 |
- | 🚲 **Bikeshare** | Live station availability | GBFS | 🟢 |
- | 🧭 **Directions** | Click A and B on the globe for a street-following drive, walk or cycle route draped on the terrain with turn-by-turn steps — then FLY the camera along it. No key, no geocoder, no mic | OSRM on FOSSGIS servers (OpenStreetMap) | 🟢 |
- | 🔥 **Active Fires** | Live NASA FIRMS detections, trailing 24h | NASA FIRMS | 🟡 |
- | 🚀 **Space Missions** | Rolling 30-day launches with payload, stage, and recovery detail | Launch Library 2 | 🟢 (🟡 optional token raises the allowance) |
- | 🎖️ **Mapped Installations** | Viewport-bounded military-site context from community mapping — incomplete by nature, and labeled that way | OpenStreetMap | 🟢 |
-| Layer | What you get | Source | Auth |
-| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | --------------------------------------------------------------------------------------------------- |
-| 🗺️ **Map Stack** | Esri satellite imagery, Google Photorealistic 3D, OSM, plus additional ion-hosted stacks | Esri / Google / Ion / OSM | 🟢 Esri satellite + OSM · 🟡 ion-hosted Google 3D + world terrain · 🔴 direct Google + place search |
-| ✈️ **Live Flights** | 11,000+ live aircraft + route history | OpenSky + adsb.lol | 🟢 (🟡 optional for more polling credits) |
-| 🎖️ **Military Flights** | ADS-B military traffic in amber | adsb.lol | 🟢 |
-| 🚢 **Live Vessels** | Thousands of ships worldwide | AISStream | 🟡 |
-| 🛰️ **Satellites** | 838-object catalog, color-coded by class with a live legend — the **DENSE** chip drops in the whole Starlink shell | CelesTrak | 🟢 |
-| 🌍 **Earthquakes** | Global seismic activity, last 24h | USGS | 🟢 |
-| 🚗 **Traffic** | Simulated vehicles on OSM roads. With TomTom, live flow speeds drive the simulation and congestion colors below ~8 km; individual vehicle positions are not live observations | TomTom + OSM | 🟢 simulation · 🟡 live flow speeds |
-| 📹 **CCTV Mesh** | ~3,600 public cameras projected _into_ the 3D space — Austin · Texas (TxDOT) · California (Caltrans) · London (TfL) · Ontario (511) · Finland (Fintraffic) · British Columbia (DriveBC) · Estonia (Tallinn, Tarktee) · Delaware (DelDOT live video) · New South Wales (Live Traffic NSW) · Calgary. Positions are published; poses are estimated priors **you calibrate by dragging a gizmo on the camera itself** | City APIs | 🟢 |
-| 📷 **Mapped ALPR Cameras** | License-plate-reader camera locations tagged by OpenStreetMap contributors, loaded one city-sized view at a time, with **SHOW NEAREST**. Locations and tags only: no plate data, no video | OpenStreetMap (incl. DeFlock mapping) | 🟢 |
-| 📻 **Radio** | Geolocated world radio with an **analog tuner** — drag the needle across up to 750 stations and the globe flies to each broadcaster | Radio Browser / broadcasters | 🟢 |
-| 🚌 **Transit** | Live buses, trams, metros, trains and ferries with delayed playback between reports, selected-vehicle trails, and mode-coloured DETECT labels — Boston, Austin, Minneapolis, Helsinki, the Netherlands, Norway, South East Queensland | Operator GTFS-Realtime feeds | 🟢 |
-| 🚲 **Bikeshare** | Live station availability | GBFS | 🟢 |
-| 🧭 **Directions** | Click A and B on the globe for a street-following drive, walk or cycle route draped on the terrain with turn-by-turn steps — then FLY the camera along it. No key, no geocoder, no mic | OSRM on FOSSGIS servers (OpenStreetMap) | 🟢 |
-| 🔥 **Active Fires** | Live NASA FIRMS detections, trailing 24h | NASA FIRMS | 🟡 |
-| 🚀 **Space Missions** | Rolling 30-day launches with payload, stage, and recovery detail | Launch Library 2 | 🟢 (🟡 optional token raises the allowance) |
-| 🎖️ **Mapped Installations** | Viewport-bounded military-site context from community mapping — incomplete by nature, and labeled that way | OpenStreetMap | 🟢 |
-| 🌬️ **Wind** | Animated 10 m forecast wind with an optional speed, temperature or pressure color field and a reading at map center | NOAA GFS / ECMWF IFS | 🟢 |
-| 🌦️ **Observed Weather** | Rain radar (contiguous US), Satellite clouds (GOES regional or global infrared, Clouds only or Full image) and Lightning density (Americas and Pacific) on one history timeline | NOAA nowCOAST | 🟢 |
-| 🌀 **Cyclones** | Advisory positions, forecast tracks and uncertainty cones for the Atlantic and eastern/central North Pacific | NOAA NHC / CPHC | 🟢 |
++Twenty layers and map sources. **Seventeen have a keyless path.** Some offer additional capabilities with a provider key. (🟢 no key · 🟡 free key · 🔴 metered.)
++
++| Layer | What you get | Source | Auth |
++| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------------- |
++| 🗺️ **Map Stack** | Esri satellite imagery, Google Photorealistic 3D, OSM, plus additional ion-hosted stacks | Esri / Google / Ion / OSM | 🟢 Esri satellite + OSM · 🟡 ion-hosted Google 3D + world terrain · 🔴 direct Google + place search |
++| ✈️ **Live Flights** | 11,000+ live aircraft + route history | OpenSky + adsb.lol | 🟢 (🟡 optional for more polling credits) |
++| 🎖️ **Military Flights** | ADS-B military traffic in amber | adsb.lol | 🟢 |
++| 🚢 **Live Vessels** | Thousands of ships worldwide | AISStream | 🟡 |
++| 🛰️ **Satellites** | 838-object catalog, color-coded by class with a live legend — the **DENSE** chip drops in the whole Starlink shell | CelesTrak | 🟢 |
++| 🌍 **Earthquakes** | Global seismic activity, last 24h | USGS | 🟢 |
++| 🚗 **Traffic** | Simulated vehicles on OSM roads. With TomTom, live flow speeds drive the simulation and congestion colors below ~8 km; individual vehicle positions are not live observations | TomTom + OSM | 🟢 simulation · 🟡 live flow speeds |
++| 📹 **CCTV Mesh** | ~3,600 public cameras projected _into_ the 3D space — Austin · Texas (TxDOT) · California (Caltrans) · London (TfL) · Ontario (511) · Finland (Fintraffic) · British Columbia (DriveBC) · Estonia (Tallinn, Tarktee) · Delaware (DelDOT live video) · New South Wales (Live Traffic NSW) · Calgary. Positions are published; poses are estimated priors **you calibrate by dragging a gizmo on the camera itself** | City APIs | 🟢 |
++| 📷 **Mapped ALPR Cameras** | License-plate-reader camera locations tagged by OpenStreetMap contributors, loaded one city-sized view at a time, with **SHOW NEAREST**. Locations and tags only: no plate data, no video | OpenStreetMap (incl. DeFlock mapping) | 🟢 |
++| 📷 **Street Level** | Mapillary coverage drawn onto the streets from orbit down to a single road, image cones per sequence, an embedded MapillaryJS viewer with a **CAMERA FOLLOWS VIEW** mode, and a plain-English query box (_"show me all fire hydrants in Sacramento"_) that streams Mapillary's detected objects and traffic signs onto the globe with Mapillary's own icons | Mapillary (+ Anthropic for the query box) | 🟡 Mapillary client token · 🔴 Anthropic key for plain-English queries only |
++| 📻 **Radio** | Geolocated world radio with an **analog tuner** — drag the needle across up to 750 stations and the globe flies to each broadcaster | Radio Browser / broadcasters | 🟢 |
++| 🚌 **Transit** | Live buses, trams, metros, trains and ferries with delayed playback between reports, selected-vehicle trails, and mode-coloured DETECT labels — Boston, Austin, Minneapolis, Helsinki, the Netherlands, Norway, South East Queensland | Operator GTFS-Realtime feeds | 🟢 |
++| 🚲 **Bikeshare** | Live station availability | GBFS | 🟢 |
++| 🧭 **Directions** | Click A and B on the globe for a street-following drive, walk or cycle route draped on the terrain with turn-by-turn steps — then FLY the camera along it. No key, no geocoder, no mic | OSRM on FOSSGIS servers (OpenStreetMap) | 🟢 |
++| 🔥 **Active Fires** | Live NASA FIRMS detections, trailing 24h | NASA FIRMS | 🟡 |
++| 🚀 **Space Missions** | Rolling 30-day launches with payload, stage, and recovery detail | Launch Library 2 | 🟢 (🟡 optional token raises the allowance) |
++| 🎖️ **Mapped Installations** | Viewport-bounded military-site context from community mapping — incomplete by nature, and labeled that way | OpenStreetMap | 🟢 |
++| 🌬️ **Wind** | Animated 10 m forecast wind with an optional speed, temperature or pressure color field and a reading at map center | NOAA GFS / ECMWF IFS | 🟢 |
++| 🌦️ **Observed Weather** | Rain radar (contiguous US), Satellite clouds (GOES regional or global infrared, Clouds only or Full image) and Lightning density (Americas and Pacific) on one history timeline | NOAA nowCOAST | 🟢 |
++| 🌀 **Cyclones** | Advisory positions, forecast tracks and uncertainty cones for the Atlantic and eastern/central North Pacific | NOAA NHC / CPHC | 🟢 |
+
+ **Weather, keyless.** **Wind** animates 10 m forecast flow from NOAA GFS or ECMWF IFS, with an optional color field and a reading at map center. **Rain radar**, **Satellite clouds** and **Lightning density** are observations on one history timeline in the **WEATHER** panel (step back, **Play**, **Latest**); **Cyclone advisories** draw NHC and CPHC positions, forecast tracks and cones. On Google 3D Tiles the observed layers float above the city as translucent shells, sharpened around your view.
+
+ In the app, **Data Layers** groups them as Movement, Cameras, Infrastructure, Events, Weather and Utilities.
**The basemap ladder — what each tier buys you:**
@@@ -319,6 -325,6 +326,12 @@@ _The Space Missions layer replaying a F
---
++## 📷 Street Level (Mapillary)
++
++> Needs a free **Mapillary client token**; the plain-English query box additionally needs an **Anthropic key**. Both go in POWER UP.
++
++Turn on **Street Level (Mapillary)** under DATA LAYERS → Cameras, or open the STREET LEVEL strip in the right rail. Mapillary's coverage draws as ground-hugging lines (recent captures bright green, older ones dim, 360° panoramas magenta); click a line for its image cones and a cone to open the photo in the embedded MapillaryJS viewer. **EXPAND** grows the viewer to most of the screen and **CAMERA FOLLOWS VIEW** drives the globe camera from the panorama. With an Anthropic key, type a request such as _"stop signs in downtown Detroit"_ and the matching detections stream onto the globe tile by tile with Mapillary's own icons; click one to see the photo with the detection outlined. Mapillary blurs faces and licence plates before publishing imagery, and the globe credits "© Mapillary contributors, CC BY-SA 4.0" while the layer is on.
++
## 🎖️ Field Missions
Once the basics click, run these:
@@@ -392,20 -399,23 +406,25 @@@ each provider enables; none is require
[setup instructions](#then-power-it-up--in-the-app-not-in-a-file) for storage
and configuration details.
+ No key needed for Wind, Rain radar, Satellite clouds, Lightning density,
+ Cyclone advisories, Mapped ALPR Cameras, Transit, Directions, Delaware live
+ video, and coordinate or bundled-place search. A layer row waiting on a key
+ names it.
+
### Choose the capabilities you want
--Six keys. Four have a free tier, and the two 🔴 ones are metered:
++Eight keys. Five have a free tier, and the three 🔴 ones are metered:
- | | Key | Why | Get it |
- | --- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
- | 🟡 | **Cesium ion** | 🗺️ Google Photorealistic 3D, world terrain, and additional ion-hosted imagery stacks. The free Community plan is for eligible individual, personal/non-commercial use and has quotas | [cesium.com/ion](https://cesium.com/ion) — use a public `assets:read` token and check current [pricing/eligibility](https://cesium.com/platform/cesium-ion/pricing/) |
- | 🔴 | **Google Maps** | Direct Google Photorealistic 3D + Google place search ([Map Tiles API](https://developers.google.com/maps/documentation/tile)) | [Google Cloud Console](https://console.cloud.google.com/) — URL-restrict it |
- | 🔴 | **OpenAI** | 🎙️ The voice experience + AI HUD summary. The mini model works; the standard model is noticeably smarter. Want Gemini or another provider behind the mic? PRs welcome | [platform.openai.com](https://platform.openai.com) — metered, see costs below |
- | 🟡 | **AISStream** | 🚢 Live global ships | [aisstream.io](https://aisstream.io) — free signup |
- | 🟡 | **NASA FIRMS** | 🔥 Live active fires | [firms.modaps.eosdis.nasa.gov](https://firms.modaps.eosdis.nasa.gov/api/map_key/) — free |
- | 🟡 | **TomTom** | 🚦 Live flow speeds and congestion colors for the simulated traffic layer | [developer.tomtom.com](https://developer.tomtom.com) — free tier available |
- | 🟡 | **Mapillary** | 📷 Street-level coverage, sequences and the embedded viewer, plus the detected objects + traffic signs behind the plain-English query box. A client token runs in the browser by design (MapillaryJS fetches imagery directly) | [mapillary.com/dashboard/developers](https://www.mapillary.com/dashboard/developers) — register an app, copy the client token |
- | 🔴 | **Anthropic** | 🧠 the plain-English query box — turns a sentence into a Mapillary query plan (Claude, low effort, prompt-cached; a few cents per hundred questions). Server-side only | [console.anthropic.com](https://console.anthropic.com/settings/keys) — metered |
+ | | Key | Why | Get it |
+ | --- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+ | 🟡 | **Cesium ion** | 🗺️ Google Photorealistic 3D, world terrain, and additional ion-hosted imagery stacks. The free Community plan is for eligible individual, personal/non-commercial use and has quotas | [cesium.com/ion](https://cesium.com/ion) — use a public `assets:read` token and check current [pricing/eligibility](https://cesium.com/platform/cesium-ion/pricing/) |
+ | 🔴 | **Google Maps** | Direct Google Photorealistic 3D + Google place search ([Map Tiles API](https://developers.google.com/maps/documentation/tile)) | [Google Cloud Console](https://console.cloud.google.com/) — URL-restrict it |
+ | 🔴 | **OpenAI** | 🎙️ The voice experience + AI HUD summary. The mini model works; the standard model is noticeably smarter. Want Gemini or another provider behind the mic? PRs welcome | [platform.openai.com](https://platform.openai.com) — metered, see costs below |
+ | 🟡 | **AISStream** | 🚢 Live global ships | [aisstream.io](https://aisstream.io) — free signup |
+ | 🟡 | **NASA FIRMS** | 🔥 Live active fires | [firms.modaps.eosdis.nasa.gov](https://firms.modaps.eosdis.nasa.gov/api/map_key/) — free |
+ | 🟡 | **TomTom** | 🚦 Live flow speeds and congestion colors for the simulated traffic layer | [developer.tomtom.com](https://developer.tomtom.com) — free tier available |
++| 🟡 | **Mapillary** | 📷 Street-level coverage, photos and detected objects on the globe. A public client token by design (see SECURITY.md) | [mapillary.com/dashboard/developers](https://www.mapillary.com/dashboard/developers) — register an app, copy its Client Token |
++| 🔴 | **Anthropic** | 💬 Plain-English questions in the Street Level panel, turned into Mapillary queries server-side. Coverage, photos and filters work without it | [console.anthropic.com](https://console.anthropic.com/settings/keys) — metered, roughly a cent per question |
![Diving from city-scale live congestion straight into an intersection's public camera](docs/media/05-traffic-to-cctv.gif)
diff --cc docs/CURRENT-STATE.md
index 90572e150,67acfffce..690d5ce51
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@@ -1060,11 -1239,10 +1239,10 @@@ This is the current runtime/source-of-t
> samples, `enabling` throughout, panel non-numeric) and across a failing
> one. Its `status: 'idle'` is not what saves it — the lifecycle is; the
> module has no `loading` status at all.
- >
--> Any new dependency that can be slow must report `loading` and `lastUpdate`
--> honestly for the contract to hold, and must be pinned against the shape its
--> own module really returns — a fixture that invents a status the module cannot
--> emit guards nothing (that is exactly how a hole here survived a green suite).
++> Any new dependency that can be slow must report `loading` and `lastUpdate`
++> honestly for the contract to hold, and must be pinned against the shape its
++> own module really returns — a fixture that invents a status the module cannot
++> emit guards nothing (that is exactly how a hole here survived a green suite).
> - **A held ground snap is dropped when measured ground contradicts it
> (2026-08-23):** the WARM hold described below answers on DISTANCE travelled,
> which is only a proxy for whether the value still describes the ground. A
@@@ -2496,40 -2673,27 +2673,40 @@@ nearby place—always use station selec
requests use Play; a qualified Play-shaped tool call is normalized to Select so
its criteria cannot be silently ignored.
- | Layer | Source | File | Proxy | Update Interval |
- |-------|--------|------|-------|-----------------|
- | Live Flights ✈️ | OpenSky Network; bounded adsb.lol regional fallback | `src/data/flights.js` | `/api/opensky` (OAuth + fallback) | 30s |
- | Military Flights 🎖️ | adsb.lol /v2/mil | `src/data/militaryFlights.js` | `/api/adsblol/mil` | 15s |
- | Live AIS Vessels 🚢 | AISStream websocket | `src/data/aisLiveVessels.js` | `/api/ais-live` | 60s (+800ms visibility pass) |
- | Mapped Installations ⌖ | OpenStreetMap mapped context; on-demand Google Maps Places supplement | `src/data/militaryInstallations.js` | `/api/military-installations`, `/api/google/text-search` | viewport-driven + user search; while unavailable, auto-retry 30 s → 240 s backoff |
- | Earthquakes | USGS | `src/data/earthquakes.js` | — | 60s |
- | Satellites | CelesTrak | `src/data/satellites.js` | `/api/celestrak` | 120s |
- | Space Missions (30d) | Launch Library 2 + CelesTrak | `src/data/rocketLaunches.js` | `/api/launches` + `/api/celestrak/active` | 5 min |
- | Traffic | OSM Overpass (+ optional TomTom live flow) | `src/data/traffic.js` | `/api/overpass` + `/api/tomtom` | viewport-driven |
- | CCTV | Austin + Caltrans (CA) + TfL London + Ontario 511 + Fintraffic (FI) + DriveBC (BC) + TxDOT (TX) + Estonia (Tallinn, Tarktee) + Live Traffic NSW + Open Calgary Open Data + Street View fallback | `src/data/cctv.js` | `/api/cctv` | 10s (active) |
- | Radio | Radio Browser (public-domain station directory) | `src/data/radio.js` | `/api/radio/stations`, `/api/radio/click/:uuid` | 45 min directory refresh |
- | Transit 🚌 | Operator GTFS-Realtime VehiclePositions (7 keyless regions, `src/data/transitFeeds.js`) | `src/layers/transit/` via `src/app/layers/transit.js` | `/api/transit` | 15s (poll + delayed playback) |
- | Bikeshare 🚲 | GBFS (Lyft + BCycle) | `src/data/bikeshare.js` | `/api/gbfs` | 60s |
- | Directions 🧭 | OSRM on FOSSGIS servers (OpenStreetMap) | `src/data/directions.js` | `/api/route` (`steps=1`) | on placement / mode change |
- | Datacenters ▣ | OSM extract (bundled) | `src/data/localLayers.js` | — | static |
- | Dams ▰ | OpenInfraMap/OSM extract (bundled) | `src/data/localLayers.js` | — | static |
- | Submarine Cables ◠ | TeleGeography public map (bundled) | `src/data/telegeographySubmarineCables.js` | — | static |
- | FIRMS Active Fires ▲ | NASA FIRMS live (VIIRS ×3 NRT, trailing 24h) | `src/data/firmsHeatmap.js` | `/api/firms` (`FIRMS_MAP_KEY`) | 10 min (proxy TTL 30 min) |
- | Street Level 📷 | Mapillary vector tiles + Graph API + MapillaryJS (optional Claude planner, server-side key) | `src/layers/mapillary/` via `src/app/layers/mapillary.js` | `/api/mapillary/status`, `/tiles`, `/features` (NDJSON), `/plan`, `/sprite` (`MAPILLARY_CLIENT_TOKEN`; `ANTHROPIC_API_KEY` optional) | camera-driven (320 ms debounce, ≤9 coverage tiles); queries on demand (≤600 tiles, cached 24 h) |
-| Layer | Source | File | Proxy | Update Interval |
-| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | -------------------------------------------------------- | --------------------------------------------------------------------------------- |
-| Live Flights ✈️ | OpenSky Network; bounded adsb.lol regional fallback | `src/data/flights.js` | `/api/opensky` (OAuth + fallback) | 30s |
-| Military Flights 🎖️ | adsb.lol /v2/mil | `src/data/militaryFlights.js` | `/api/adsblol/mil` | 15s |
-| Live AIS Vessels 🚢 | AISStream websocket | `src/data/aisLiveVessels.js` | `/api/ais-live` | 60s (+800ms visibility pass) |
-| Mapped Installations ⌖ | OpenStreetMap mapped context; on-demand Google Maps Places supplement | `src/data/militaryInstallations.js` | `/api/military-installations`, `/api/google/text-search` | viewport-driven + user search; while unavailable, auto-retry 30 s → 240 s backoff |
-| Earthquakes | USGS | `src/data/earthquakes.js` | — | 60s |
-| Satellites | CelesTrak | `src/data/satellites.js` | `/api/celestrak` | 120s |
-| Space Missions (30d) | Launch Library 2 + CelesTrak | `src/data/rocketLaunches.js` | `/api/launches` + `/api/celestrak/active` | 5 min |
-| Traffic | OSM Overpass (+ optional TomTom live flow) | `src/data/traffic.js` | `/api/overpass` + `/api/tomtom` | viewport-driven |
-| CCTV | Austin + Caltrans (CA) + TfL London + Ontario 511 + Fintraffic (FI) + DriveBC (BC) + TxDOT (TX) + Estonia (Tallinn, Tarktee) + Live Traffic NSW + Open Calgary Open Data + Street View fallback | `src/data/cctv.js` | `/api/cctv` | 10s (active) |
-| Radio | Radio Browser (public-domain station directory) | `src/data/radio.js` | `/api/radio/stations`, `/api/radio/click/:uuid` | 45 min directory refresh |
-| Transit 🚌 | Operator GTFS-Realtime VehiclePositions (7 keyless regions, `src/data/transitFeeds.js`) | `src/layers/transit/` via `src/app/layers/transit.js` | `/api/transit` | 15s (poll + delayed playback) |
-| Bikeshare 🚲 | GBFS (Lyft + BCycle) | `src/data/bikeshare.js` | `/api/gbfs` | 60s |
-| Directions 🧭 | OSRM on FOSSGIS servers (OpenStreetMap) | `src/data/directions.js` | `/api/route` (`steps=1`) | on placement / mode change |
-| Datacenters ▣ | OSM extract (bundled) | `src/data/localLayers.js` | — | static |
-| Dams ▰ | OpenInfraMap/OSM extract (bundled) | `src/data/localLayers.js` | — | static |
-| Submarine Cables ◠ | TeleGeography public map (bundled) | `src/data/telegeographySubmarineCables.js` | — | static |
-| FIRMS Active Fires ▲ | NASA FIRMS live (VIIRS ×3 NRT, trailing 24h) | `src/data/firmsHeatmap.js` | `/api/firms` (`FIRMS_MAP_KEY`) | 10 min (proxy TTL 30 min) |
-| Wind 🌬 | NOAA GFS 10 m wind (keyless, 0.25°→1° grid; animated particles) | `src/data/wind.js` | `/api/wind` | 1 h (forecast cycle) |
++| Layer | Source | File | Proxy | Update Interval |
++| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------- |
++| Live Flights ✈️ | OpenSky Network; bounded adsb.lol regional fallback | `src/data/flights.js` | `/api/opensky` (OAuth + fallback) | 30s |
++| Military Flights 🎖️ | adsb.lol /v2/mil | `src/data/militaryFlights.js` | `/api/adsblol/mil` | 15s |
++| Live AIS Vessels 🚢 | AISStream websocket | `src/data/aisLiveVessels.js` | `/api/ais-live` | 60s (+800ms visibility pass) |
++| Mapped Installations ⌖ | OpenStreetMap mapped context; on-demand Google Maps Places supplement | `src/data/militaryInstallations.js` | `/api/military-installations`, `/api/google/text-search` | viewport-driven + user search; while unavailable, auto-retry 30 s → 240 s backoff |
++| Earthquakes | USGS | `src/data/earthquakes.js` | — | 60s |
++| Satellites | CelesTrak | `src/data/satellites.js` | `/api/celestrak` | 120s |
++| Space Missions (30d) | Launch Library 2 + CelesTrak | `src/data/rocketLaunches.js` | `/api/launches` + `/api/celestrak/active` | 5 min |
++| Traffic | OSM Overpass (+ optional TomTom live flow) | `src/data/traffic.js` | `/api/overpass` + `/api/tomtom` | viewport-driven |
++| CCTV | Austin + Caltrans (CA) + TfL London + Ontario 511 + Fintraffic (FI) + DriveBC (BC) + TxDOT (TX) + Estonia (Tallinn, Tarktee) + Live Traffic NSW + Open Calgary Open Data + Street View fallback | `src/data/cctv.js` | `/api/cctv` | 10s (active) |
++| Radio | Radio Browser (public-domain station directory) | `src/data/radio.js` | `/api/radio/stations`, `/api/radio/click/:uuid` | 45 min directory refresh |
++| Transit 🚌 | Operator GTFS-Realtime VehiclePositions (7 keyless regions, `src/data/transitFeeds.js`) | `src/layers/transit/` via `src/app/layers/transit.js` | `/api/transit` | 15s (poll + delayed playback) |
++| Bikeshare 🚲 | GBFS (Lyft + BCycle) | `src/data/bikeshare.js` | `/api/gbfs` | 60s |
++| Directions 🧭 | OSRM on FOSSGIS servers (OpenStreetMap) | `src/data/directions.js` | `/api/route` (`steps=1`) | on placement / mode change |
++| Datacenters ▣ | OSM extract (bundled) | `src/data/localLayers.js` | — | static |
++| Dams ▰ | OpenInfraMap/OSM extract (bundled) | `src/data/localLayers.js` | — | static |
++| Submarine Cables ◠ | TeleGeography public map (bundled) | `src/data/telegeographySubmarineCables.js` | — | static |
++| FIRMS Active Fires ▲ | NASA FIRMS live (VIIRS ×3 NRT, trailing 24h) | `src/data/firmsHeatmap.js` | `/api/firms` (`FIRMS_MAP_KEY`) | 10 min (proxy TTL 30 min) |
++| Street Level 📷 | Mapillary vector tiles + Graph API + MapillaryJS (optional Claude planner, server-side key) | `src/layers/mapillary/` via `src/app/layers/mapillary.js` | `/api/mapillary/status`, `/tiles`, `/features` (NDJSON), `/plan`, `/sprite` (`MAPILLARY_CLIENT_TOKEN`; `ANTHROPIC_API_KEY` optional) | camera-driven (320 ms debounce, ≤9 coverage tiles); queries on demand (≤600 tiles, cached 24 h) |
++| Wind 🌬 | NOAA GFS 10 m wind (keyless, 0.25°→1° grid; animated particles) | `src/data/wind.js` | `/api/wind` | 1 h (forecast cycle) |
+
+Street Level (Mapillary) lives in the right context rail next to CCTV as an
+ordinary collapsible panel and starts collapsed. Without `MAPILLARY_CLIENT_TOKEN`
+the panel shows a gated empty state naming the variable; with it, coverage
+draws as ground-clamped sequence lines (z0–5 overview points from orbit,
+z11–14 sequences below 60 km) and the proxy strips the unused `image` point
+layer from z14 tiles in transit (12 MB → ~80 KB). The plain-English query box
+is only live with `ANTHROPIC_API_KEY` (server-side; the browser posts the
+sentence to `/api/mapillary/plan`). While enabled the layer adds an on-globe
+Cesium credit ("Imagery © Mapillary contributors, CC BY-SA 4.0"). Follow-ups
+kept out of the first landing: procedural 3D objects for results, a Google 3D
+map-stack shortcut, and portable/resizable rail panels.
-
Directions is a keyless front end to the routing the voice agent already
uses. Its row chips are the whole interface: DRIVE / WALK / BIKE pick the
profile; SET A and SET B arm the next globe click (Escape or a second press
diff --cc package.json
index 8f8b9c0bb,429c13aa7..6bec5ea4a
--- a/package.json
+++ b/package.json
@@@ -32,31 -32,29 +32,33 @@@
"visualization"
],
"scripts": {
++ "build": "vite build",
++ "check:boundaries": "node scripts/check-import-directions.mjs && node scripts/check-package-boundaries.mjs",
++ "dev": "vite",
++ "dev:secure": "./scripts/dev-secure.sh",
"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:transit": "node scripts/qa-transit.mjs"
+ "qa:mapillary": "node scripts/qa-mapillary.mjs",
- "check:boundaries": "node scripts/check-import-directions.mjs && node scripts/check-package-boundaries.mjs",
- "qa:transit": "node scripts/qa-transit.mjs"
++ "qa:transit": "node scripts/qa-transit.mjs",
++ "test": "node scripts/run-unit-tests.mjs",
++ "test:track": "node scripts/track-regression.mjs"
},
"dependencies": {
+ "@anthropic-ai/sdk": "^0.126.0",
"@mapbox/vector-tile": "^3.0.0",
+ "@meri-imperiumi/eccodes-wasm": "^2.48.2",
"cesium": "^1.124.0",
"egm96-universal": "^1.1.1",
+ "hls.js": "^1.7.3",
+ "mapillary-js": "^4.1.2",
"mgrs": "^2.1.0",
"pbf": "^5.1.2",
- "satellite.js": "^6.0.2"
+ "satellite.js": "^6.0.2",
+ "zod": "^4.6.5"
},
"devDependencies": {
"prettier": "3.9.6",
@@@ -250,6 -244,6 +248,11 @@@
"./layers/transit/standalone": "./src/data/transit.js",
"./layers/transit/source": "./src/layers/transit/source.js",
"./sources/transit-service": "./src/sources/transitService.js",
-- "./sources/map-features": "./src/sources/overpassFeatures.js"
++ "./sources/map-features": "./src/sources/overpassFeatures.js",
++ "./server/providers/mapillary": {
++ "node": "./server/providers/mapillary.js"
++ },
++ "./layers/mapillary": "./src/layers/mapillary/index.js",
++ "./layers/mapillary/source": "./src/layers/mapillary/source.js"
}
}
diff --cc scripts/format-scope.json
index eb79d8bfe,97bb0b8f2..9f537b03f
--- a/scripts/format-scope.json
+++ b/scripts/format-scope.json
@@@ -744,43 -775,38 +775,77 @@@
"scripts/qa-director-interactions.mjs",
"src/director/sharing/sharing.test.mjs",
"scripts/qa-director-sharing.mjs",
+ "src/ui/weatherPanel.js",
+ "src/ui/weatherPanel.test.mjs",
+ "src/ui/railCards.js",
+ "src/ui/railCards.test.mjs",
+ "src/ui/railTimeline.js",
+ "src/ui/railTimeline.test.mjs",
+ "src/layers/weather/imageryOrder.js",
+ "src/layers/weather/imageryOrder.test.mjs",
+ "server/providers/cyclones.js",
+ "src/data/cyclonesProxy.test.mjs",
+ "src/layers/cyclones/index.js",
+ "src/layers/cyclones/rendering.js",
+ "src/layers/cyclones/labels.js",
+ "src/layers/cyclones/source.js",
+ "src/layers/cyclones/rendering.test.mjs",
+ "src/layers/cyclones/labels.test.mjs",
+ "src/layers/cyclones/index.test.mjs",
+ "src/layers/cyclones/source.test.mjs",
+ "src/data/aisStreamSentinels.test.mjs",
+ "scripts/qa-weather-perf.mjs",
+ "scripts/qa-weather-journey.mjs",
+ "scripts/qa-weather-swap.mjs",
+ "scripts/qa-weather-teardown.mjs",
+ "src/layers/weather/imageryHost.test.mjs",
+ "src/layers/recentImagery/model.test.mjs",
+ "src/layers/recentImagery/catalog.test.mjs",
+ "src/maps/imageryHost.test.mjs",
+ "src/layers/recentImagery/rendering.test.mjs",
+ "src/layers/recentImagery/thumbnails.test.mjs",
+ "src/layers/recentImagery/index.test.mjs",
+ "src/ui/imageryBoxTool.test.mjs",
+ "src/ui/recentImagery.test.mjs",
+ "src/layers/recentImagery/testDoubles.mjs",
- "scripts/qa-recent-imagery.mjs"
++ "scripts/qa-recent-imagery.mjs",
+ "src/ui/mapillaryControls.js",
+ "src/ui/mapillaryPresentation.js",
+ "src/ui/mapillaryPresentation.test.mjs",
+ "src/app/layers/mapillary.js",
+ "src/tooling/mapillaryProvider.test.mjs",
+ "src/layers/mapillary/source.test.mjs",
+ "src/mapillaryMarkup.test.mjs",
+ "src/layers/mapillary/index.js",
+ "src/layers/mapillary/state.js",
+ "src/layers/mapillary/policy.js",
+ "src/layers/mapillary/coverage.js",
+ "src/layers/mapillary/sequences.js",
+ "src/layers/mapillary/features.js",
+ "src/layers/mapillary/glyphs.js",
+ "src/layers/mapillary/decode.js",
+ "src/layers/mapillary/tileMath.js",
+ "src/layers/mapillary/values.js",
+ "src/layers/mapillary/taxonomy.js",
+ "src/layers/mapillary/ndjson.js",
+ "src/layers/mapillary/query.js",
+ "src/layers/mapillary/selection.js",
+ "src/layers/mapillary/viewerBridge.js",
+ "src/layers/mapillary/source.js",
+ "server/providers/mapillary.js",
+ "server/providers/mapillary/routes.js",
+ "server/providers/mapillary/constants.js",
+ "server/providers/mapillary/tiles.js",
+ "server/providers/mapillary/trim.js",
+ "server/providers/mapillary/decode.js",
+ "server/providers/mapillary/features.js",
+ "server/providers/mapillary/planner.js",
+ "server/providers/mapillary/sprites.js",
+ "src/layers/mapillary/decode.test.mjs",
+ "src/layers/mapillary/ndjson.test.mjs",
+ "src/layers/mapillary/query.test.mjs",
+ "src/layers/mapillary/tileMath.test.mjs",
+ "src/layers/mapillary/values.test.mjs",
+ "scripts/qa-mapillary.mjs",
+ "src/tooling/mapillaryQa.test.mjs"
]
diff --cc scripts/package-boundaries.json
index dc79c4a24,5273abbf8..0c8905683
--- a/scripts/package-boundaries.json
+++ b/scripts/package-boundaries.json
@@@ -599,12 -597,12 +619,14 @@@
"src/ui/visualSettings.js",
"src/worldFocus.js",
"src/data/feedState.js",
+ "src/data/layerSnapshot.js",
"src/ui/aircraftDisplay.js",
+ "src/layers/weather/imageryHost.js",
"src/ui/layerBindings.js",
"src/ui/displayBindings.js",
- "src/ui/shellFacade.js"
+ "src/ui/shellFacade.js",
+ "src/ui/mapillaryControls.js",
+ "src/ui/mapillaryPresentation.js"
],
"external": ["cesium"]
},
@@@ -1059,31 -1074,8 +1098,31 @@@
"src/data/inputOwnership.js",
"src/layers/cctv/sourcePolicy.js"
],
- "external": ["cesium"]
+ "external": ["hls.js", "cesium"]
},
+ "mapillary-layer": {
+ "exports": ["./layers/mapillary", "./layers/mapillary/source"],
+ "modules": [
+ "src/layers/mapillary/index.js",
+ "src/layers/mapillary/state.js",
+ "src/layers/mapillary/policy.js",
+ "src/layers/mapillary/coverage.js",
+ "src/layers/mapillary/sequences.js",
+ "src/layers/mapillary/features.js",
+ "src/layers/mapillary/glyphs.js",
+ "src/layers/mapillary/decode.js",
+ "src/layers/mapillary/tileMath.js",
+ "src/layers/mapillary/values.js",
+ "src/layers/mapillary/taxonomy.js",
+ "src/layers/mapillary/ndjson.js",
+ "src/layers/mapillary/query.js",
+ "src/layers/mapillary/selection.js",
+ "src/layers/mapillary/viewerBridge.js",
+ "src/layers/mapillary/source.js",
+ "scripts/qa-mapillary.mjs"
+ ],
+ "external": ["cesium", "pbf", "@mapbox/vector-tile", "mapillary-js"]
+ },
"alpr-cameras": {
"exports": ["./layers/alpr"],
"modules": [
@@@ -1857,27 -1884,24 +1931,43 @@@
"src/director/authoring.js",
"src/scenes/sharing.js",
"src/ui/sceneSharing.js",
+ "src/layers/weather/imageryOrder.js",
+ "src/layers/weather/imageryHost.js",
+ "src/layers/cyclones/index.js",
+ "src/layers/cyclones/rendering.js",
+ "src/layers/cyclones/labels.js",
+ "src/layers/cyclones/source.js",
+ "src/app/layers/recentImagery.js",
+ "src/layers/recentImagery/index.js",
+ "src/layers/recentImagery/model.js",
+ "src/layers/recentImagery/catalog.js",
+ "src/layers/recentImagery/rendering.js",
+ "src/layers/recentImagery/thumbnails.js",
+ "src/maps/imageryHost.js",
+ "src/ui/recentImagery.js",
- "src/ui/imageryBoxTool.js"
++ "src/ui/imageryBoxTool.js",
+ "src/ui/mapillaryControls.js",
+ "src/ui/mapillaryPresentation.js",
+ "src/layers/mapillary/index.js",
+ "src/layers/mapillary/state.js",
+ "src/layers/mapillary/policy.js",
+ "src/layers/mapillary/coverage.js",
+ "src/layers/mapillary/sequences.js",
+ "src/layers/mapillary/features.js",
+ "src/layers/mapillary/glyphs.js",
+ "src/layers/mapillary/decode.js",
+ "src/layers/mapillary/tileMath.js",
+ "src/layers/mapillary/values.js",
+ "src/layers/mapillary/taxonomy.js",
+ "src/layers/mapillary/ndjson.js",
+ "src/layers/mapillary/query.js",
+ "src/layers/mapillary/selection.js",
+ "src/layers/mapillary/viewerBridge.js",
+ "src/layers/mapillary/source.js",
+ "src/app/layers/mapillary.js"
],
"external": [
+ "hls.js",
"@mapbox/vector-tile",
"cesium",
"egm96-universal",
@@@ -2271,25 -2309,29 +2376,46 @@@
"src/sources/overpassFeatures.js",
"src/sources/featureSource.js",
"src/sources/overpassRoads.js",
+ "src/layers/weather/index.js",
+ "src/layers/weather/clock.js",
+ "src/layers/weather/rendering.js",
+ "src/layers/weather/shellRendering.js",
+ "src/layers/weather/infraredAlpha.js",
+ "src/layers/weather/infraredImage.js",
+ "src/layers/weather/source.js",
+ "src/layers/weather/imageryOrder.js",
+ "src/layers/weather/imageryHost.js",
+ "src/layers/cyclones/index.js",
+ "src/layers/cyclones/rendering.js",
+ "src/layers/cyclones/labels.js",
+ "src/layers/cyclones/source.js",
+ "src/app/layers/recentImagery.js",
+ "src/layers/recentImagery/index.js",
+ "src/layers/recentImagery/model.js",
+ "src/layers/recentImagery/catalog.js",
+ "src/layers/recentImagery/rendering.js",
+ "src/layers/recentImagery/thumbnails.js",
- "src/maps/imageryHost.js"
++ "src/maps/imageryHost.js",
+ "src/layers/mapillary/index.js",
+ "src/layers/mapillary/state.js",
+ "src/layers/mapillary/policy.js",
+ "src/layers/mapillary/coverage.js",
+ "src/layers/mapillary/sequences.js",
+ "src/layers/mapillary/features.js",
+ "src/layers/mapillary/glyphs.js",
+ "src/layers/mapillary/decode.js",
+ "src/layers/mapillary/tileMath.js",
+ "src/layers/mapillary/values.js",
+ "src/layers/mapillary/taxonomy.js",
+ "src/layers/mapillary/ndjson.js",
+ "src/layers/mapillary/query.js",
+ "src/layers/mapillary/selection.js",
+ "src/layers/mapillary/viewerBridge.js",
+ "src/layers/mapillary/source.js",
+ "src/app/layers/mapillary.js"
],
"external": [
+ "hls.js",
"cesium",
"egm96-universal",
"satellite.js",
diff --cc server/providers/local.js
index 273358f93,36eb6b22b..1ed352a65
--- a/server/providers/local.js
+++ b/server/providers/local.js
@@@ -19,8 -19,10 +19,11 @@@ import { aisLiveProxy } from './vessels
import { trackBackfillProxies } from './aircraft/tracks.js';
import { openAiRealtimeProxy } from './openai.js';
import { googlePlacesContextProxy } from './places.js';
+import { mapillaryProxy } from './mapillary.js';
import { keySetupEndpoint } from '../standalone/key-setup.js';
+ import { weatherProxy } from './weather.js';
+ import { cycloneProxy } from './cyclones.js';
+ import { windProxy } from './wind.js';
/** Construct the local provider plugins in their established order. */
function localProviderPlugins() {
@@@ -46,7 -48,9 +49,10 @@@
trackBackfillProxies(),
openAiRealtimeProxy(),
googlePlacesContextProxy(),
+ windProxy(),
+ weatherProxy(),
+ cycloneProxy(),
+ mapillaryProxy(),
keySetupEndpoint(),
];
}
diff --cc src/app/constructCatalog.js
index fad78c9df,26222c6cb..a65200cf7
--- a/src/app/constructCatalog.js
+++ b/src/app/constructCatalog.js
@@@ -43,20 -47,11 +48,23 @@@ const SOURCE_METHODS = Object.freeze(
launches: ['getLaunches', 'getActiveTle'],
alpr: ['fetch'],
firms: ['getSnapshot'],
+ wind: ['getSnapshot'],
+ weather: ['getSnapshot'],
+ cyclones: ['getSnapshot'],
earthquakes: ['getSnapshot'],
cables: ['fetch'],
+ mapillary: [
+ 'getStatus',
+ 'getTile',
+ 'queryFeatures',
+ 'plan',
+ 'geocode',
+ 'getImage',
+ 'getSequenceImages',
+ 'nearestImages',
+ 'getMapFeature',
+ 'spriteUrl',
+ ],
});
/** Construct the current catalog without choosing any source provider.
diff --cc src/app/constructCatalog.test.mjs
index 6095ddd4b,1d8d33f80..deaee83c6
--- a/src/app/constructCatalog.test.mjs
+++ b/src/app/constructCatalog.test.mjs
@@@ -39,7 -39,19 +39,19 @@@ test('catalogs construct distinct layer
signal: b.signal,
surface: fixtureSurface(b.signal),
});
- assert.equal(first.layers.length, 22);
- assert.equal(first.layers.length, 27);
++ assert.equal(first.layers.length, 28);
+ assert.notEqual(first.weatherClock, second.weatherClock);
+ await first.weatherClock.setTarget('2026-09-21T12:00:00.000Z');
+ assert.match(
+ first.get('wind').getRowControls().info,
+ /Forecast · does not follow history/,
+ );
+ assert.equal(second.get('wind').getRowControls().summary.status, null);
+ for (const id of ['weather-radar', 'weather-satellite', 'weather-lightning'])
+ assert.equal(
+ first.get(id).getDiagnostics().clock.target,
+ '2026-09-21T12:00:00.000Z',
+ );
assert.ok(first.get('transit'));
const order = first.layers.map(({ id }) => id);
assert.deepEqual(
diff --cc src/data/layerState.test.mjs
index 1a3c62e82,51d39bc61..bd57f7f2f
--- a/src/data/layerState.test.mjs
+++ b/src/data/layerState.test.mjs
@@@ -158,8 -194,8 +194,8 @@@ function encode(state)
test('production registry is exact, canonical, and rejects incomplete contracts', async () => {
assert.equal(validateLayerStateRegistry(), true);
- assert.equal(REGISTERED_LAYER_IDS.length, 22);
- assert.equal(new Set(REGISTERED_LAYER_IDS).size, 22);
- assert.equal(REGISTERED_LAYER_IDS.length, 27);
- assert.equal(new Set(REGISTERED_LAYER_IDS).size, 27);
++ assert.equal(REGISTERED_LAYER_IDS.length, 28);
++ assert.equal(new Set(REGISTERED_LAYER_IDS).size, 28);
assert.ok(REGISTERED_LAYER_IDS.includes('transit'));
assert.deepEqual(REGISTERED_LAYER_IDS, [...REGISTERED_LAYER_IDS].sort());
assert.throws(
diff --cc src/setupDoctor.test.mjs
index 590d1d201,c66d9e686..f2ad817a3
--- a/src/setupDoctor.test.mjs
+++ b/src/setupDoctor.test.mjs
@@@ -170,6 -146,67 +171,88 @@@ test('doctor reads the dotenv ladder wi
}
});
+ test('doctor resolves OpenSky auth mode with launcher-compatible precedence', () => {
+ const root = mkdtempSync(path.join(tmpdir(), 'gev-doctor-opensky-mode-'));
+ try {
+ writeFileSync(path.join(root, '.env'), 'OPENSKY_AUTH_MODE=anon\n');
- assert.equal(resolveOpenSkyAuthMode({ environment: {}, rootDir: root }), 'anon');
- assert.equal(resolveOpenSkyAuthMode({ environment: { OPENSKY_AUTH_MODE: 'oauth' }, rootDir: root }), 'oauth');
- assert.equal(resolveOpenSkyAuthMode({ environment: { OPENSKY_AUTH_MODE: '' }, rootDir: root }), 'anon');
- assert.equal(resolveOpenSkyAuthMode({ environment: { OPENSKY_AUTH_MODE: 'invalid' }, rootDir: root }), 'oauth');
++ assert.equal(
++ resolveOpenSkyAuthMode({ environment: {}, rootDir: root }),
++ 'anon',
++ );
++ assert.equal(
++ resolveOpenSkyAuthMode({
++ environment: { OPENSKY_AUTH_MODE: 'oauth' },
++ rootDir: root,
++ }),
++ 'oauth',
++ );
++ assert.equal(
++ resolveOpenSkyAuthMode({
++ environment: { OPENSKY_AUTH_MODE: '' },
++ rootDir: root,
++ }),
++ 'anon',
++ );
++ assert.equal(
++ resolveOpenSkyAuthMode({
++ environment: { OPENSKY_AUTH_MODE: 'invalid' },
++ rootDir: root,
++ }),
++ 'oauth',
++ );
+ } finally {
+ rmSync(root, { recursive: true, force: true });
+ }
+ });
+
+ test('doctor reports keyless anonymous OpenSky access for explicit anon mode', () => {
+ const credentials = {
+ OPENSKY_CLIENT_ID: { configured: true },
+ OPENSKY_CLIENT_SECRET: { configured: true },
+ };
+ assert.equal(
+ buildCapabilitySummary(credentials, { openSkyAuthMode: 'anon' }).flights,
+ 'OpenSky keyless anonymous access (rate-limited)',
+ );
+ });
+
+ test('doctor retains OAuth capability wording for a complete client pair', () => {
+ const credentials = {
+ OPENSKY_CLIENT_ID: { configured: true },
+ OPENSKY_CLIENT_SECRET: { configured: true },
+ };
+ assert.equal(
+ buildCapabilitySummary(credentials, { openSkyAuthMode: 'oauth' }).flights,
+ 'OpenSky OAuth credentials present (runtime mode and validity not verified)',
+ );
+ });
+
+ test('doctor reports Basic mode without inferring runtime auth from OAuth credentials', () => {
+ const oauthCredentials = {
+ OPENSKY_CLIENT_ID: { configured: true },
+ OPENSKY_CLIENT_SECRET: { configured: true },
+ };
+ for (const credentials of [{}, oauthCredentials]) {
+ assert.equal(
+ buildCapabilitySummary(credentials, { openSkyAuthMode: 'basic' }).flights,
+ 'OpenSky Basic mode selected (credential presence and validity not verified)',
+ );
+ }
+ });
+
+ test('doctor reports auto mode without assuming its eventual credential choice', () => {
+ const oauthCredentials = {
+ OPENSKY_CLIENT_ID: { configured: true },
+ OPENSKY_CLIENT_SECRET: { configured: true },
+ };
+ for (const credentials of [{}, oauthCredentials]) {
+ assert.equal(
+ buildCapabilitySummary(credentials, { openSkyAuthMode: 'auto' }).flights,
+ 'OpenSky auto mode selected (runtime credential choice and validity not verified)',
+ );
+ }
+ });
+
test('doctor describes the credential ladder without exposing values', () => {
const credentials = {
GOOGLE_MAPS_API_KEY: { configured: false },
@@@ -193,10 -225,7 +276,10 @@@
assert.match(capabilities.map, /Bing and world-terrain stacks/);
assert.equal(capabilities.voice, 'available');
assert.match(capabilities.missions, /token allowance/);
- assert.equal(capabilities.flights, 'OpenSky keyless anonymous access (rate-limited)');
+ assert.equal(
+ capabilities.flights,
- 'OpenSky OAuth credentials not configured',
++ 'OpenSky keyless anonymous access (rate-limited)',
+ );
const report = formatSetupReport({
ready: true,
diff --cc src/standalone/layerSources.js
index 2a4cc63f6,5d8f932a6..ea16c25d1
--- a/src/standalone/layerSources.js
+++ b/src/standalone/layerSources.js
@@@ -12,8 -12,10 +12,11 @@@ import { createInstallationSource } fro
import { createSatelliteSource } from '../layers/satellites/source.js';
import { createLaunchSource } from '../layers/launches/source.js';
import { createOverpassAlprSource } from '../layers/alpr/source.js';
+ import { createWeatherSource } from '../layers/weather/source.js';
+ import { createCycloneSource } from '../layers/cyclones/source.js';
+ import { createWindSource } from '../layers/wind/source.js';
import { createFirmsSource } from '../layers/firms/source.js';
+import { createMapillarySource } from '../layers/mapillary/source.js';
import { createReferenceSources } from '../sources/reference.js';
export { createReferenceSources as createStandaloneReferenceSources } from '../sources/reference.js';
@@@ -36,8 -38,8 +39,11 @@@ export function createStandaloneLayerSo
launches: createLaunchSource(),
alpr: createOverpassAlprSource(),
firms: createFirmsSource(),
+ wind: createWindSource(),
+ weather: createWeatherSource(),
+ cyclones: createCycloneSource(),
+ mapillary: createMapillarySource({
+ token: import.meta.env?.MAPILLARY_CLIENT_TOKEN || '',
+ }),
};
}
diff --cc src/tooling/transitQa.test.mjs
index d0daa374c,44da48386..2ec277748
--- a/src/tooling/transitQa.test.mjs
+++ b/src/tooling/transitQa.test.mjs
@@@ -675,7 -675,7 +675,7 @@@ test('public transit documentation use
);
assert.ok(
readme.includes(
- 'Sixteen layers and map sources. **Thirteen have a keyless path.**',
- 'Nineteen layers and map sources. **Seventeen have a keyless path.**',
++ 'Twenty layers and map sources. **Seventeen have a keyless path.**',
),
);
assert.ok(
diff --cc src/ui/layerPanel.js
index 8408b2137,c06f27dea..2aeab66c3
--- a/src/ui/layerPanel.js
+++ b/src/ui/layerPanel.js
@@@ -28,7 -31,7 +31,7 @@@ const PANEL_GROUPS =
},
{
label: 'Cameras',
- ids: ['cctv', 'mapillary', 'alpr-cameras'],
- ids: ['cctv', 'recent-imagery'],
++ ids: ['cctv', 'recent-imagery', 'mapillary'],
},
{
label: 'Infrastructure',
diff --cc src/ui/panelChrome.js
index 66652c306,15cd45358..3b7452786
--- a/src/ui/panelChrome.js
+++ b/src/ui/panelChrome.js
@@@ -11,7 -11,8 +11,9 @@@ const SHARE_PANEL_STATE_SPECS = Object.
{ id: 'location-bar', pinnable: true },
{ id: 'data-panel' },
{ id: 'cctv-panel' },
+ { id: 'weather-panel' },
+ { id: 'recent-imagery-panel' },
+ { id: 'mapillary-panel' },
{ id: 'radio-panel' },
{ id: 'scene-panel' },
{ id: 'global-context-panel' },
@@@ -22,7 -23,8 +24,9 @@@
const COCKPIT_ENTRY_COLLAPSE_PANEL_IDS = Object.freeze([
'data-panel',
'cctv-panel',
+ 'weather-panel',
+ 'recent-imagery-panel',
+ 'mapillary-panel',
'scene-panel',
'pp-toggles',
'global-context-panel',
@@@ -283,7 -285,8 +287,9 @@@ export class PanelChrome
const isRightRail = [
'pp-toggles',
'cctv-panel',
+ 'weather-panel',
+ 'recent-imagery-panel',
+ 'mapillary-panel',
'global-context-panel',
].includes(panelEl?.id);
const collapsed = panelEl.classList.contains('collapsed');
diff --cc src/ui/panelLayoutController.js
index 5b2567898,4847b8cb8..ebe724192
--- a/src/ui/panelLayoutController.js
+++ b/src/ui/panelLayoutController.js
@@@ -94,7 -94,8 +94,9 @@@ export class PanelLayoutController
this._rightPanelStack = document.getElementById('right-context-rail');
this._ppToggles = document.getElementById('pp-toggles');
this._cctvPanel = document.getElementById('cctv-panel');
+ this._weatherPanel = document.getElementById('weather-panel');
+ this._recentImageryPanel = document.getElementById('recent-imagery-panel');
+ this._mapillaryPanel = document.getElementById('mapillary-panel');
this._sliderPanel = document.getElementById('param-slider-panel');
this._detectionBtn = document.getElementById('detection-toggle');
}
@@@ -195,28 -196,17 +197,18 @@@
this._ppToggles.querySelector('.pp-header-row')?.removeAttribute('title');
stack.prepend(this._ppToggles);
const globalContextPanel = document.getElementById('global-context-panel');
- if (this._cctvPanel) {
- this._cctvPanel.style.removeProperty('top');
- this._cctvPanel.style.removeProperty('right');
- this._cctvPanel.style.removeProperty('bottom');
- this._cctvPanel.style.removeProperty('left');
- this._cctvPanel.style.removeProperty('z-index');
- this._cctvPanel.classList.remove('panel-draggable', 'panel-dragging');
- stack.insertBefore(this._cctvPanel, globalContextPanel);
- this._syncPanelCollapseButton(this._cctvPanel);
- }
- if (this._mapillaryPanel) {
- this._mapillaryPanel.style.removeProperty('top');
- this._mapillaryPanel.style.removeProperty('right');
- this._mapillaryPanel.style.removeProperty('bottom');
- this._mapillaryPanel.style.removeProperty('left');
- this._mapillaryPanel.style.removeProperty('z-index');
- this._mapillaryPanel.classList.remove(
- 'panel-draggable',
- 'panel-dragging',
- );
- stack.insertBefore(this._mapillaryPanel, globalContextPanel);
- this._syncPanelCollapseButton(this._mapillaryPanel);
+ for (const panel of [
+ this._cctvPanel,
+ this._weatherPanel,
+ this._recentImageryPanel,
++ this._mapillaryPanel,
+ ]) {
+ if (!panel) continue;
+ for (const property of ['top', 'right', 'bottom', 'left', 'z-index'])
+ panel.style.removeProperty(property);
+ panel.classList.remove('panel-draggable', 'panel-dragging');
+ stack.insertBefore(panel, globalContextPanel);
+ this._syncPanelCollapseButton(panel);
}
if (this._sliderPanel) {
this._sliderPanel.style.removeProperty('top');
@@@ -236,7 -226,8 +228,9 @@@
for (const panel of [
this._ppToggles,
this._cctvPanel,
+ this._weatherPanel,
+ this._recentImageryPanel,
+ this._mapillaryPanel,
globalContextPanel,
]) {
if (panel) this._rightStackResizeObserver.observe(panel);
diff --cc src/ui/styles/layers.css
index 5dc48030a,2f53ae33d..53711ab6f
--- a/src/ui/styles/layers.css
+++ b/src/ui/styles/layers.css
@@@ -162,7 -162,8 +162,9 @@@
}
#right-context-rail > #pp-toggles,
#right-context-rail > #cctv-panel,
+#right-context-rail > #mapillary-panel,
+ #right-context-rail > #weather-panel,
+ #right-context-rail > #recent-imagery-panel,
#right-context-rail > #global-context-panel {
position: relative;
inset: auto;
@@@ -175,13 -176,23 +177,25 @@@
pointer-events: auto;
}
#right-context-rail #cctv-panel,
- #right-context-rail #mapillary-panel {
++#right-context-rail #mapillary-panel,
+ #right-context-rail #weather-panel,
+ #right-context-rail #recent-imagery-panel {
width: 100%;
max-height: 100%;
pointer-events: auto;
}
+ #right-context-rail > #weather-panel,
+ /* Collapsed, it must stay hideable by the rail's exclusive layout. */
+ #right-context-rail > #recent-imagery-panel:not(.collapsed) {
+ display: flex;
+ flex-direction: column;
+ flex-shrink: 1;
+ min-height: 0;
+ }
#right-context-rail #cctv-panel.collapsed,
- #right-context-rail #mapillary-panel.collapsed {
++#right-context-rail #mapillary-panel.collapsed,
+ #right-context-rail #weather-panel.collapsed,
+ #right-context-rail #recent-imagery-panel.collapsed {
width: var(--right-display-collapsed-width);
margin-left: auto;
}
@@@ -194,7 -205,8 +208,9 @@@
}
#right-context-rail > #pp-toggles.collapsed .pp-header-row,
#right-context-rail #cctv-panel.collapsed .cctv-panel-inner,
+#right-context-rail #mapillary-panel.collapsed .mapillary-panel-inner,
+ #right-context-rail #weather-panel.collapsed .weather-panel-inner,
+ #right-context-rail #recent-imagery-panel.collapsed .recent-imagery-panel-inner,
#right-context-rail
#global-context-panel.collapsed
.global-context-panel-inner {
@@@ -251,7 -262,8 +267,9 @@@
}
#right-context-rail.layout-focus > #pp-toggles:not(.collapsed),
#right-context-rail.layout-focus > #cctv-panel:not(.collapsed),
+#right-context-rail.layout-focus > #mapillary-panel:not(.collapsed),
+ #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) {
flex: 0 1 var(--right-panel-allocated-height);
height: var(--right-panel-allocated-height);
@@@ -267,9 -282,9 +288,12 @@@
#right-context-rail.layout-focus
> #cctv-panel:not(.collapsed)
.cctv-panel-inner,
+#right-context-rail.layout-focus
+ > #mapillary-panel:not(.collapsed)
+ .mapillary-panel-inner,
+ #right-context-rail.layout-focus
+ > #recent-imagery-panel:not(.collapsed)
+ .recent-imagery-panel-inner,
#right-context-rail.layout-focus
> #global-context-panel:not(.collapsed)
.global-context-panel-inner {
diff --cc src/ui/styles/responsive.css
index 910877f88,16817ac10..8890c872e
--- a/src/ui/styles/responsive.css
+++ b/src/ui/styles/responsive.css
@@@ -203,9 -217,9 +217,11 @@@
#right-context-rail #pp-toggles.collapsed .pp-header-row,
#right-context-rail #cctv-panel,
- #right-context-rail #cctv-panel.collapsed,
+ #right-context-rail #mapillary-panel,
+ #right-context-rail #cctv-panel.collapsed,
+ #right-context-rail #mapillary-panel.collapsed,
+ #right-context-rail #recent-imagery-panel,
+ #right-context-rail #recent-imagery-panel.collapsed,
#right-context-rail #radio-panel,
#right-context-rail #radio-panel.collapsed,
#right-context-rail #global-context-panel,
@@@ -219,10 -233,10 +235,12 @@@
#left-panel-stack > #data-panel,
#left-panel-stack > #cctv-panel,
++ #left-panel-stack > #mapillary-panel,
#left-panel-stack > #global-context-panel,
#left-panel-stack > #scene-panel,
#left-panel-stack > #data-panel.collapsed,
#left-panel-stack > #cctv-panel.collapsed,
++ #left-panel-stack > #mapillary-panel.collapsed,
#left-panel-stack > #global-context-panel.collapsed,
#left-panel-stack > #scene-panel.collapsed {
position: relative;
diff --cc style.css
index 8ef3ff377,95cdd1d89..4021bb809
--- a/style.css
+++ b/style.css
@@@ -8,13 -8,9 +8,14 @@@
@import './src/ui/styles/layers.css';
@import './src/ui/styles/radio.css';
@import './src/ui/styles/cctv.css';
+/* MapillaryJS's stylesheet is vendored (see its header) because the JS is
+ loaded lazily on first image open while its controls need styling as soon
+ as that first image lands; ~9 KB gzipped. */
+@import './src/ui/styles/mapillary-js.css';
+@import './src/ui/styles/mapillary.css';
@import './src/ui/styles/scenes.css';
@import './src/ui/styles/bhote-koshi.css';
+ @import './src/ui/styles/recent-imagery.css';
@import './src/ui/styles/recording.css';
@import './src/ui/styles/responsive.css';
@import './src/ui/styles/command-dock.css';