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 Turksever9ba6f96d87a1
diff --cc CHANGELOG.md
index 1dd8134f7,29dbedfaa..9a05fcf16
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,6 -1,83 +1,85 @@@
# 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.
++
+ - 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 build/vite.js
index 5f0163d3c,cdff4a27c..912d32b23
--- a/build/vite.js
+++ b/build/vite.js
@@@ -7,13 -7,27 +7,31 @@@ export function createBrowserViteConfig
publicDir,
googleApiKey,
cesiumToken,
+ mapillaryToken,
host = 'localhost',
port = 4173,
+ command,
} = {}) {
return {
plugins: [cesium(), applicationHtmlPlugin(), ...plugins],
...(publicDir === undefined ? {} : { publicDir }),
+ // A production build must not clean the dependency cache a running dev
+ // server is still serving optimized module URLs from.
+ ...(command === 'build' ? { cacheDir: 'node_modules/.vite-build' } : {}),
+ optimizeDeps: {
+ // First reached through the SDR worker or a dynamic import. Pre-bundle
+ // them at startup so first use cannot invalidate already-transformed
+ // URLs with Vite's "Outdated Optimize Dep" 504 response.
+ include: [
+ '@jtarrio/signals/demod/demodulator.js',
+ '@jtarrio/signals/demod/modes.js',
+ '@jtarrio/webrtlsdr/rtlsdr.js',
+ 'egm96-universal',
++ // MapillaryJS is loaded on demand the first time a street-level
++ // image is opened.
++ 'mapillary-js',
+ ],
+ },
server: {
host: host || 'localhost',
port: parseInt(port, 10) || 4173,
@@@ -33,15 -47,7 +51,11 @@@
define: {
'import.meta.env.GOOGLE_MAPS_API_KEY': JSON.stringify(googleApiKey),
'import.meta.env.CESIUM_ION_TOKEN': JSON.stringify(cesiumToken),
+ // Mapillary client tokens are public by design (see SECURITY.md).
+ 'import.meta.env.MAPILLARY_CLIENT_TOKEN': JSON.stringify(
+ mapillaryToken ?? '',
+ ),
},
- // MapillaryJS is loaded on demand the first time a street-level image is
- // opened. Pre-bundle it so that first dynamic import never triggers a
- // dev-server re-optimization (which answers in-flight requests with 504).
- optimizeDeps: { include: ['mapillary-js'] },
build: { chunkSizeWarningLimit: 1500 },
};
}
diff --cc docs/CURRENT-STATE.md
index ba056bbc1,fdb42fc0c..0bf229095
--- a/docs/CURRENT-STATE.md
+++ b/docs/CURRENT-STATE.md
@@@ -2673,41 -2747,30 +2747,44 @@@ 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) |
+ | 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 + MODIS 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) |
+ | Wind 🌬 | NOAA GFS 10 m wind (keyless, 0.25°→1° grid; animated particles) | `src/data/wind.js` | `/api/wind` | 1 h (forecast cycle) |
+ | Fire Perimeters 🔥 | NIFC WFIGS current interagency perimeters (keyless, paged past the 2000-record cap); InciWeb catalog + incident page origin and update time checks for verified incident-page links | `src/layers/perimeters/` via `src/app/layers/perimeters.js` | `/api/fire-perimeters` + `/api/fire-perimeters/inciweb/*` | 5 min (server caches: catalog 1 h; publication 30 min) |
+
+ Fire Perimeters uses capped, timed server reads with stale-on-error caching and a per-client limit. Unchanged snapshots retain geometry; link checks cancel on disable or selection change, and the row legend shows reported containment.
+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 header status reads KEY REQUIRED and the controls stay disabled (key setup
+is documented in the README's Street Level section); 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-lock.json
index a8b0e047d,17bb0691e..199429d93
--- a/package-lock.json
+++ b/package-lock.json
@@@ -9,7 -9,8 +9,9 @@@
"version": "0.1.1",
"license": "MIT",
"dependencies": {
+ "@anthropic-ai/sdk": "^0.126.0",
+ "@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",
@@@ -1613,12 -1556,12 +1631,18 @@@
"license": "MIT",
"optional": true
},
+ "node_modules/@types/virtual-dom": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@types/virtual-dom/-/virtual-dom-2.1.4.tgz",
+ "integrity": "sha512-Y7L/frVydXRd16MevczslJZQu+QWsrqZlj6ytk7mST3xen0fkx7Ollw31By/89A8Wq+nfNWm/IoTR1ac/0fRhA==",
+ "license": "MIT"
+ },
+ "node_modules/@types/w3c-web-usb": {
+ "version": "1.0.14",
+ "resolved": "https://registry.npmjs.org/@types/w3c-web-usb/-/w3c-web-usb-1.0.14.tgz",
+ "integrity": "sha512-Qu3Nn6JFuF4+sHKYl+IcX9vYiI40ogleXzFFSxoE1W94rG98o/kXs8uJ0QSfFzuwBCZWlGfUGpPkgwuuX4PchA==",
+ "license": "MIT"
+ },
"node_modules/@zip.js/zip.js": {
"version": "2.8.18",
"resolved": "https://registry.npmjs.org/@zip.js/zip.js/-/zip.js-2.8.18.tgz",
diff --cc package.json
index 6bec5ea4a,3e80dc55e..3e9f916cb
--- a/package.json
+++ b/package.json
@@@ -39,16 -35,20 +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:transit": "node scripts/qa-transit.mjs"
+ "qa:mapillary": "node scripts/qa-mapillary.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",
+ "@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 scripts/package-boundaries.json
index 0c8905683,189192f10..ccee551f0
--- a/scripts/package-boundaries.json
+++ b/scripts/package-boundaries.json
@@@ -625,8 -612,9 +634,11 @@@
"src/ui/layerBindings.js",
"src/ui/displayBindings.js",
"src/ui/shellFacade.js",
+ "src/ui/mapillaryControls.js",
- "src/ui/mapillaryPresentation.js"
++ "src/ui/mapillaryPresentation.js",
+ "src/ui/localSdrControls.js",
+ "src/layers/localAdsb/feedNames.js",
+ "src/ui/localSdrPresentation.js"
],
"external": ["cesium"]
},
@@@ -1974,7 -1965,7 +2031,8 @@@
"mgrs",
"pbf",
"satellite.js",
- "mapillary-js"
++ "mapillary-js",
+ "@jtarrio/webrtlsdr"
]
},
"application-catalog": {
@@@ -2422,7 -2425,7 +2509,8 @@@
"@mapbox/vector-tile",
"pbf",
"mgrs",
- "mapillary-js"
++ "mapillary-js",
+ "@jtarrio/webrtlsdr"
]
},
"application-operations": {
diff --cc server/providers/local.js
index 1ed352a65,398519d92..8b9be4f9e
--- a/server/providers/local.js
+++ b/server/providers/local.js
@@@ -19,9 -20,9 +20,10 @@@ 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 { firePerimetersProxy } from './firePerimeters.js';
import { cycloneProxy } from './cyclones.js';
import { windProxy } from './wind.js';
@@@ -52,7 -54,7 +55,8 @@@ function localProviderPlugins()
windProxy(),
weatherProxy(),
cycloneProxy(),
+ mapillaryProxy(),
+ firePerimetersProxy(),
keySetupEndpoint(),
];
}
diff --cc server/standalone/vite.config.js
index 8766d6bab,ffa5a1e27..6991fff0f
--- a/server/standalone/vite.config.js
+++ b/server/standalone/vite.config.js
@@@ -16,8 -16,8 +16,9 @@@ export default defineConfig(({ command
plugins: [...localProviderPlugins(), apiNotFoundPlugin()],
googleApiKey: process.env.GOOGLE_MAPS_API_KEY,
cesiumToken: process.env.CESIUM_ION_TOKEN,
+ mapillaryToken: process.env.MAPILLARY_CLIENT_TOKEN,
host: process.env.HOST,
port: process.env.PORT,
+ command,
});
});
diff --cc src/app/catalog.test.mjs
index 2260eef0a,71f87d50a..446b92257
--- a/src/app/catalog.test.mjs
+++ b/src/app/catalog.test.mjs
@@@ -93,7 -93,7 +93,8 @@@ test('controls bind catalog instances r
'military-awareness',
'military-installations',
'rocket-launches',
+ 'mapillary',
+ 'local-adsb',
];
const layers = ids.map((id) => ({ id }));
const catalog = createLayerCatalog(layers, metadata(layers));
@@@ -101,6 -101,7 +102,7 @@@
assert.equal(services.flightsLayer, layers[1]);
assert.equal(services.transitLayer, layers[7]);
assert.equal(services.aisLiveVesselsLayer, layers[8]);
- assert.equal(services.localAdsbLayer, layers[12]);
++ assert.equal(services.localAdsbLayer, layers[13]);
assert.equal(new Set(Object.values(services)).size, layers.length);
assert.throws(
() => catalogControlServices(createLayerCatalog([], [])),
diff --cc src/app/constructCatalog.js
index a65200cf7,40ea46596..a76fc3cbf
--- a/src/app/constructCatalog.js
+++ b/src/app/constructCatalog.js
@@@ -22,8 -23,8 +23,9 @@@ import { createApplicationLocalAdsb } f
import { createApplicationAwareness } from './layers/militaryAwareness.js';
import { createApplicationFirms } from './layers/firms.js';
import { createApplicationEarthquakes } from './layers/earthquakes.js';
+ import { createApplicationFirePerimeters } from './layers/perimeters.js';
import { createApplicationCables } from './layers/submarineCables.js';
+import { createApplicationMapillary } from './layers/mapillary.js';
import { createInfrastructureLayers } from '../data/infrastructure.js';
import { localGeoJsonServices } from './localGeojsonServices.js';
import { createBhoteKoshiEventLayer } from '../data/bhoteKoshiEvent.js';
@@@ -52,21 -53,24 +54,36 @@@ const SOURCE_METHODS = Object.freeze(
weather: ['getSnapshot'],
cyclones: ['getSnapshot'],
earthquakes: ['getSnapshot'],
+ 'fire-perimeters': ['getSnapshot'],
cables: ['fetch'],
+ mapillary: [
+ 'getStatus',
+ 'getTile',
+ 'queryFeatures',
+ 'plan',
+ 'geocode',
+ 'getImage',
+ 'getSequenceImages',
+ 'nearestImages',
+ 'getMapFeature',
+ 'spriteUrl',
+ ],
});
+ /**
+ * Hardware-local layers are registered like any other but never enter share
+ * links or stored layer state: another browser cannot have this receiver.
+ */
+ export const LOCAL_ONLY_LAYER_METADATA = Object.freeze([
+ Object.freeze({ id: 'local-adsb', disposition: 'local-only' }),
+ ]);
+
+ /** Serialization metadata for every layer the application catalog constructs. */
+ export const APPLICATION_LAYER_METADATA = Object.freeze([
+ ...LAYER_STATE_REGISTRY,
+ ...LOCAL_ONLY_LAYER_METADATA,
+ ]);
+
/** Construct the current catalog without choosing any source provider.
* Scene engines remain page-owned; layers and classification have this app's lifetime.
* The manager owns layer destruction, while abort releases classification even if startup fails.
@@@ -133,9 -137,17 +150,18 @@@ export function createApplicationCatalo
}),
flights,
military,
+ createApplicationLocalAdsb({
+ surface,
+ enrichment: sources.flights,
+ displayParams: () => flights.getParams(),
+ ...(resolveAsset ? { resolveAsset } : {}),
+ }),
createApplicationEarthquakes({ source: sources.earthquakes }),
+ createApplicationFirePerimeters({
+ source: sources['fire-perimeters'],
+ }),
createApplicationAlpr({ surface, source: sources.alpr }),
+ createApplicationMapillary({ surface, source: sources.mapillary }),
satellites,
createApplicationLaunches({ source: sources.launches, satellites }),
createApplicationTraffic({ source: sources.traffic }),
diff --cc src/app/constructCatalog.test.mjs
index deaee83c6,6043b1262..3a802edbe
--- a/src/app/constructCatalog.test.mjs
+++ b/src/app/constructCatalog.test.mjs
@@@ -39,7 -39,13 +39,13 @@@ test('catalogs construct distinct layer
signal: b.signal,
surface: fixtureSurface(b.signal),
});
- assert.equal(first.layers.length, 28);
- assert.equal(first.layers.length, 29);
++ assert.equal(first.layers.length, 30);
+ assert.ok(first.get('local-adsb'), 'Local ADS-B is registered');
+ assert.deepEqual(
+ first.metadata.find(({ id }) => id === 'local-adsb'),
+ { id: 'local-adsb', disposition: 'local-only' },
+ 'the hardware-local layer is never serialized into links',
+ );
assert.notEqual(first.weatherClock, second.weatherClock);
await first.weatherClock.setTarget('2026-09-21T12:00:00.000Z');
assert.match(
diff --cc src/data/layerState.js
index eb84df44e,e559a4c40..a81aba243
--- a/src/data/layerState.js
+++ b/src/data/layerState.js
@@@ -493,7 -498,6 +498,7 @@@ export const LAYER_STATE_REGISTRY = Obj
disposition: 'enabled-only',
}),
Object.freeze({ id: 'local-firms', token: 'w', disposition: 'enabled-only' }),
- Object.freeze({ id: 'mapillary', token: '2', disposition: 'enabled-only' }),
++ Object.freeze({ id: 'mapillary', token: '3', disposition: 'enabled-only' }),
Object.freeze({
id: 'military',
token: 'm',
diff --cc src/data/layerState.test.mjs
index bd57f7f2f,fb6d04a5d..dd1d6999d
--- a/src/data/layerState.test.mjs
+++ b/src/data/layerState.test.mjs
@@@ -194,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, 28);
-- assert.equal(new Set(REGISTERED_LAYER_IDS).size, 28);
++ assert.equal(REGISTERED_LAYER_IDS.length, 29);
++ assert.equal(new Set(REGISTERED_LAYER_IDS).size, 29);
assert.ok(REGISTERED_LAYER_IDS.includes('transit'));
assert.deepEqual(REGISTERED_LAYER_IDS, [...REGISTERED_LAYER_IDS].sort());
assert.throws(
diff --cc src/ui/applicationShell.js
index 155ac0e1c,ec51ac1ab..15702dcc3
--- a/src/ui/applicationShell.js
+++ b/src/ui/applicationShell.js
@@@ -15,8 -15,8 +15,9 @@@ import { readShellElements } from './sh
import { CockpitCoordinator } from './cockpitCoordinator.js';
import { ContextControls } from './context.js';
import { CctvControls } from './cctv.js';
+import { MapillaryControls } from './mapillaryControls.js';
import { RadioControls } from './radio.js';
+ import { LocalSdrControls } from './localSdrControls.js';
import { LocationNavigation } from './locationNavigation.js';
import { bindClearLayersControl } from './layers.js';
import { bindCameraOrientationControls } from './cameraOrientationControls.js';
@@@ -1502,8 -1533,8 +1557,9 @@@ export class StyleManager extends Shell
this._cameraOrientationControls?.destroy();
this._clearLayersControl?.destroy();
this._cctvControls?.destroy();
+ this._mapillaryControls?.destroy();
this._radioControls?.destroy();
+ this._localSdrControls?.destroy();
this._cockpitCoordinator.stop();
this._visualSettings.stop();
this.shareLinkManager?.destroy();
diff --cc src/ui/panelLayoutController.js
index ebe724192,4667b60b2..876810d6a
--- a/src/ui/panelLayoutController.js
+++ b/src/ui/panelLayoutController.js
@@@ -230,8 -229,8 +231,9 @@@ export class PanelLayoutController
this._cctvPanel,
this._weatherPanel,
this._recentImageryPanel,
+ this._mapillaryPanel,
globalContextPanel,
+ document.getElementById('radio-panel'),
]) {
if (panel) this._rightStackResizeObserver.observe(panel);
}