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 branch 'main' into feat/cctv-model-spec-enrichment

Sameh Khamis59d375cc8bb3
diff --cc CHANGELOG.md
index e3f5619c1,58589e626..834650d63
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,13 -1,165 +1,173 @@@
# Changelog
+- CCTV cameras with identified hardware show the model's datasheet specs. When a
+ source names a camera model found in the vendored CCTV Camera Database records
+ (CC0), the HUD meta line adds its resolution, night vision and PTZ capability.
+ A fixed single-lens model's horizontal FOV replaces the estimate
+ (`FOV n° (DATASHEET)`); a PTZ or varifocal range is what the lens can do, not
+ its current zoom, so those cameras keep the estimate and show
+ `SPEC FOV min–max° (CAPABILITY)` beside it (bassem chagra, #452).
+
+ - Add WSDOT highway cameras (Washington State) as a keyless CCTV source pack:
+ WSDOT's official Travel Center camera layer, with frames registered only on
+ WSDOT's own image host (partner-hosted cameras such as Oregon DOT and City of
+ Seattle are skipped). Cameras with a single cardinal `CompassDirection` get
+ a high-confidence heading; `B` (both directions), `O`, and unset directions
+ use the shared id-hash fallback at low confidence. By default the 250
+ cameras nearest Seattle and Spokane load; `CCTV_WSDOT_MAX_SOURCES` sets the
+ cap (8–1,200) and `CCTV_WSDOT_ENABLED=0` turns the pack off (bassem chagra,
+ #644).
+
+ - Refuse still-image cameras on the CCTV media relay. `/api/cctv/media` is the
+ live-feed route, but it also relayed any registered still camera through an
+ ordinary fetch that followed redirects to any host, passed through whatever
+ content type came back and had no cap on the body, bypassing every protection
+ `/api/cctv/frame` applies to the same URL. Only HLS, MP4, WebM and MJPEG
+ feeds are relayed now; a still camera, or an unknown id, gets a JSON 404
+ without an upstream request and is served only through `/api/cctv/frame`.
+ The client already loaded stills through `/frame`, so nothing it requests
+ changes.
+
+ - Add Lithuania's public Via Lietuva / Eismoinfo road cameras to CCTV, with published coordinates, on-demand snapshots, attribution and bounded catalog requests. No API key is required. The pack is opt-in (`CCTV_LITHUANIA_ENABLED=1`) because its camera endpoints are the eismoinfo.lt website backend, not a service listed in Via Lietuva's open-data statement, so the licence for the photos is unconfirmed.
+
+ - Add King County road cameras (Washington State) as a keyless CCTV source
+ pack: one public King County DOT ArcGIS layer, fetched with an explicit field
+ list so its staff-name columns are never requested, and frames pinned to the
+ county's own image host and upgraded to HTTPS. WSDOT-owned rows are skipped,
+ and city-owned cameras the county hosts credit their owner. The layer
+ publishes no facing, so headings use the shared id-hash fallback at low
+ confidence. It does publish each camera's hardware, which is served on
+ `/api/cctv/sources` as `model` and `manufacturer`. `CCTV_KINGCOUNTY_MAX_SOURCES`
+ sets the cap and `CCTV_KINGCOUNTY_ENABLED=0` turns the pack off
+ (bassem chagra, #645).
+
+ - Add City of Toronto RESCU traffic cameras as a keyless CCTV source pack: the
+ ~336 municipal cameras the Ontario 511 pack does not carry — downtown
+ arterials plus the Gardiner, DVP, Allen and Lake Shore. The list is the
+ City's own open data feed; frames are built from the documented
+ `loc####.jpg` convention and a digits-only camera number, so the frame proxy
+ is pinned to the portal origin by construction. The dataset publishes no
+ camera facing — its `D1`-`D4` fields describe static 2016 comparison images,
+ not the live pan-tilt-zoom frame — so headings use the shared id-hash
+ fallback at low confidence and are corrected with the calibration gizmo.
+ Carries the required Open Government Licence – Toronto attribution. Disable
+ with `CCTV_TORONTO_ENABLED=0`.
+
+ - Stop one retired bikeshare feed from reporting the whole layer as failed.
+ City feeds are fetched independently, but failure was recorded in a single
+ flag that only a successful *activation* cleared — and an already-loaded city
+ never activates again. A dead feed re-entering camera range therefore latched
+ LOAD FAILED permanently over a map still drawing every other city's stations.
+ Failure is now tracked per city: a city that fails beside others still
+ drawing marks the layer DEGRADED, polls that all fail over previously drawn
+ points read STALE without advancing freshness, and LOAD FAILED is reported
+ only when nothing is left to draw. A city that recovers clears its own
+ failure, a failure is dropped once its city leaves range or the camera rises
+ above the activation altitude, and late results from superseded requests are
+ ignored.
+
+ Repointed the three feeds whose operators had moved: Reddy Bikeshare (Buffalo)
+ to Social Bicycles, Tugo (Tucson) and Trinity Metro (Fort Worth) to PBSC.
+ Dropped CoGo (Columbus) and Broward B-cycle (Fort Lauderdale), whose systems
+ have wound down — CoGo's feed reports no stations and last moved a bike in
+ March 2025. The three repointed feeds were verified live.
+
+ - Add Bike Share Toronto (1,069 stations) to the bikeshare registry. The system
+ publishes the same PBSC GBFS v2 feeds as the Austin, Honolulu and Chattanooga
+ entries, so it needs no new plumbing; a registry test now holds every city's
+ feed URLs against the proxy host and path allowlists, so a city the proxy
+ would refuse fails the suite instead of rendering an empty layer.
+
+ - GBFS v3 station names use English translations when available, then the first
+ usable translation or short name. Empty or malformed names no longer appear as
+ `[object Object]` or interrupt station loading; legacy string names remain
+ supported in the globe and bike-share tools. Thanks to
+ [Kristóf Kékesi](https://github.com/KristofKekesi) (#61).
+
+ - Overpass and military-installation disk caches no longer serve answers from a
+ previously configured `OVERPASS_UPSTREAMS` instance after it is repointed.
+
+ - A Radio Browser mirror answering 204, 205 or 304, or a status outside
+ 200–599, no longer crashes the local dev/preview server. Null-body statuses
+ get an empty body; anything else that cannot become a response fails that
+ mirror so the next one is tried.
+
+ - Snow flakes sway within a fixed range instead of drifting sideways faster the
+ longer the app runs; the Wind setting still scales the sway.
+
+ - The right rail ignores panels that other CSS hides, such as during an event
+ view, so they no longer force one-panel-at-a-time layout or collapse visible
+ panels. Panels the rail collapses itself are still restored.
+
+ - Coordinate searches refuse empty latitude or longitude components instead of navigating to an unintended location.
+
+ - Bing Aerial and Bing Labels request HTTPS tiles on HTTP localhost through
+ their ion-backed providers, retaining ion and per-tile attribution without
+ widening the Content Security Policy.
+
+ - Add New York City traffic cameras from the NYC DOT Traffic Management Center
+ as an opt-in CCTV pack. NYC DOT requires a data-sharing agreement for the
+ camera feed, so the pack is off unless `CCTV_NYC_ENABLED=1` is set by an
+ operator who holds one; otherwise no request reaches NYC DOT. NYC DOT's
+ requested disclaimer is in the Data attribution popover. The camera list is one keyless JSON request to
+ `webcams.nyctmc.org/api/cameras`; frames are stills synthesized from each
+ camera UUID on that same host, so a catalog field cannot steer the proxy
+ off-host. Offline cameras are dropped. Once enabled, the 250 cameras nearest
+ the five borough cores load and `CCTV_NYC_MAX_SOURCES` changes the cap. The catalog-wide ceiling is
+ unchanged; extra cameras share it round-robin with the other packs.
+
+ - Street Level counts unique tiles before ranking so overlapping dateline halves
+ in polar views do not waste slots in the 16-tile overview budget.
+
+ - Directions no longer shows a truncation notice for a route with exactly 200
+ turns, and a roundabout at the 200th turn keeps its exit distance.
+
+ - Weather records keep missing conditions unknown and refuse summaries without a measured temperature.
+
+ - Tool string length validation counts Unicode characters correctly, including characters outside the basic multilingual plane.
+
+ - Director timeline seeks cross the dateline along the short longitude arc.
+
+ - Recent Imagery continues past malformed records in full catalog pages, respects the requested record limit, and reports results as truncated when that limit drops valid records.
+
+ - Regional articles retain unknown publication times when compact source dates do not identify a real calendar instant.
+
+ - Add Detroit (MoGo), Pittsburgh (POGOH), Aspen (WE-cycle) and Kona & Hilo
+ (HIBike) to the GBFS bikeshare registry, the layer's first stations in
+ Michigan.
+
+ - Treat explicitly current, complete empty vessel coverage as a successful update,
+ clearing obsolete contacts while retaining stale or incomplete snapshots.
+
+ - Custom Street Level provider switches survive share links and stored state
+ using URL-safe stable provider IDs and a shared boolean-switch codec; existing
+ Mapillary links keep their meaning. Explicit provider toggles reach durable
+ state without adopting unrelated live switch changes.
+
+ - Directions and Recent Imagery accept replaceable acquisition sources, including
+ route transport, imagery catalog, thumbnails, tile templates and attribution.
+ Explicitly removing either source leaves its layer unavailable; standalone
+ defaults preserve the existing providers.
+
+ - Catalog source availability no longer modifies layer objects; unavailable
+ tooltips use layer display names.
+
+ - Street Level with no providers uses the shared unavailable state and refuses
+ activation before initialization, while keeping its layer identity visible.
+
+ - Application source configuration accepts replacements and explicit removal.
+ Missing catalog feeds leave their layers unavailable without blocking startup
+ or making fallback requests; malformed supplied feeds remain configuration errors.
+
+ - Street Level providers are optional in application composition. Omitting a
+ Mapillary source no longer prevents startup; callers can inject a different
+ provider list or an empty list without changing layer identities or share links.
+
+ - Vector tile sources take their allowed tile origin from the configured
+ `tileJsonUrl`, so repointing only that URL at a mirror loads tiles from the
+ mirror or fails visibly instead of silently using OpenFreeMap. Thanks to
+ [daikaginza](https://github.com/daikaginza) (#935).
+
- MCP setup examples use the app's default port, `4173`. Thanks to
[Huanyi Xie](https://github.com/xiehuanyi) (#934) and
[shirunjies8-png](https://github.com/shirunjies8-png) (#959) for the same fix.
diff --cc src/layers/cctv/catalog.js
index 499e715a0,76d530b11..7804327d6
--- a/src/layers/cctv/catalog.js
+++ b/src/layers/cctv/catalog.js
@@@ -237,12 -204,9 +237,14 @@@ export function createCatalog({ state:
? source.groundHeights
: null,
poseSource,
+ model: String(source.model || ''),
+ manufacturer: String(source.manufacturer || ''),
};
+ applyModelEnrichment(
+ camera,
+ source.model || seed?.model,
+ parts.model.clamp,
+ );
parts.model.ensureCameraPose(camera);
catalog.push(camera);
}