A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
Merge remote-tracking branch 'origin/main' into feat/wsdot-camera-pack
bassem chagra0cfb795845ea
diff --cc .env.exampleindex 5f153ca40,67a1e74a7..f2c2e3564--- a/.env.example+++ b/.env.example@@@ -180,8 -180,9 +180,11 @@@ AISSTREAM_API_KEY# CCTV_CALGARY_ENABLED=1 # set 0 to disable the Open Calgary (Alberta) cameras# CCTV_CALGARY_MAX_SOURCES=220 # cap cameras loaded from the Open Calgary catalog# CCTV_CALGARY_ROWS_URL= # override the Open Calgary catalog URL-# CCTV_MAX_SOURCES=4000 # catalog-wide ceiling, shared round-robin across packs+# CCTV_WSDOT_ENABLED=1 # set 0 to disable the WSDOT (Washington State) highway cameras+# CCTV_WSDOT_MAX_SOURCES=250 # cap cameras loaded from the WSDOT catalog, nearest Seattle/Spokane first+# CCTV_MAX_SOURCES=4500 # catalog-wide ceiling, shared round-robin across packs# CCTV_PREFER_AUSTIN=1 # prioritize Austin cameras in the registry# CCTV_FORCE_AUSTIN= # force live default sources when a source-pack JSON is configured++ # Optional: comma-separated Overpass URLs; use only instances you run or pay for.+ OVERPASS_UPSTREAMS=diff --cc CHANGELOG.mdindex 3ad1a3df7,58103d04d..d3b735bf7--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,17 -1,80 +1,92 @@@# Changelog+- 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 `CompassDirection`, cardinal or+ diagonal, get a high-confidence heading; `BW` (Bothways) cameras 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 and+ `CCTV_WSDOT_ENABLED=0` turns the pack off. The default catalog cap+ (`CCTV_MAX_SOURCES`) rises from 4,000 to 4,500: the per-pack defaults already+ summed to 4,054 before WSDOT, so a default install was being trimmed. A test+ now sums every pack's default and fails if they exceed the cap+ (bassem chagra, #644).+ - Public Overpass instances are no longer used by default. Street Traffic+ roads come from TomTom flow tiles, OpenFreeMap vector tiles, or both, chosen+ on the layer row (TomTom / OSM / Hybrid) or with `?trafficRoads=`. With a+ TomTom key the default is Hybrid: TomTom roads with live flow, plus+ OpenFreeMap roads TomTom does not cover, simulated. Without a key every+ choice draws OpenFreeMap roads. TomTom mode shows only roads with flow; OSM+ mode matches TomTom flow onto OpenFreeMap roads for congestion colors,+ speeds and closures, and unmatched roads stay simulated. Road failures name+ OpenFreeMap and retain HTTP status or timeout reasons separately from TomTom.+ Flow coverage counts+ rendered dots on roads with flow; mapped military areas come from OpenFreeMap and+ follow settled camera changes with cached tiles and retained site entities.+ Superseded requests preserve the next view’s pending load.+ Tile and API transports can be injected independently; the optional Overpass+ ALPR adapter remains available.+ OSM-derived layers share one attribution entry and a persistent inline map credit,+ including routing, Warendorf cameras, datacenters, dams and the Nepal locator.+ Military areas use bundled Overture/OSM names; wide views show bounded,+ decluttered named points that follow camera motion while Contacts holds a subject,+ using the shared world-overlay host for wide-point and polygon titles. Polygons appear while names load; cancelled views+ cannot publish late names, and stalled name downloads can retry. Merged groups+ keep their identity and parent name when a pan hides the largest member. Late+ names reconcile ids across zooms while retaining selection and marker ownership. Wide+ named points remain visible until matching close polygons take over. Installation+ titles share datacenter/dam card arbitration and keep incumbents while panning.+ Selecting an installation replaces its label with one card; deselection restores it.+ Selected footprints receive a translucent fill draped on the active map surface.+ ALPR cameras come from an hourly OpenStreetMap extract (US and Canada). Features+ without a replacement say they are unavailable; area and footprint+ annotations check once whether an Overpass instance is configured and skip+ the query when none is. Area annotations outline countries, states and provinces+ (Natural Earth, including UK constituent countries) and US counties (US Census Bureau) from bundled data, with no+ lookup. County names are disambiguated across countries by aliases, qualifiers+ and geography. `OVERPASS_UPSTREAMS` sets an+ Overpass instance you run or pay for. The cockpit regional brief resolves+ regions from bundled Natural Earth data instead of Nominatim. Traffic starts on enable and paints+ locally grounded roads incrementally, shares concurrent tile requests and+ reuses validated heights across pans. Camera moves and arriving tiles retain+ existing traffic dots on their roads; budget changes fade in/out incrementally,+ height refinements ease vertically, and live flow changes color and speed in+ place. The traffic footprint follows the reticle square at oblique angles, with+ cached detailed near tiles and coarse distant roads. Failed detail tiles retain+ coarse roads and retry at most three times. Road-pass deadlines also cancel+ queued tile paints and terrain callbacks;+ off-screen height corrections cannot hold loading open, and visible corrections+ stay pixel-limited at canvas and camera-plane boundaries. Completed road snapshots replace+ streamed previews without duplicating roads. Unresolved previews no longer delay or suppress detailed street roads.+ Road admission excludes private, parking, walking and unknown traffic categories;+ OpenStreetMap service ways and tunnels no longer receive surface vehicles.+ Detail tiles load alongside previews, arrival bypasses the movement debounce,+ and geographically validated rendered depth avoids repeated mesh redraws.+ Traffic releases surface-frame listeners on disable/destroy and reuses unchanged+ surface identities without frame-by-frame allocations.+ Grounded dots respect building occlusion instead of drawing through roofs,+ and the traffic status chip reports completion without a delayed text animation.+ Short road chunks and local surface elevation keep the budget on visible+ streets in elevated cities. Congestion and closures respect travel+ direction. ALPR distinguishes unsupported coverage from empty results and+ asks for zoom-in before exceeding its tile budget. Installation footprints+ retain visible fragments without joining separate parcels across zooms or+ across quantization gaps between different mapped identities. Keyless+ terrain tiles retry HTTP 429 and transient gateway failures with bounded,+ shared backoff. Operator-configured Overpass area and footprint queries+ retain relation member geometry so their outlines remain available.+ Contacts filters mapped installations to a true 100 km surface radius around+ the current tracked subject,+ including in Cockpit, instead of "?" or nothing. Search arrivals frame against the resolved+ ground and lift the eye above the rendered surface, so Camp Mabry and Denver+ no longer land underground (Milan Khanal, #118). Arrival corrections yield to+ new camera owners and are cancelled on layer/app teardown. ALPR floor preparation+ and marker placement share terrain requests, cancelled when the layer is disabled.+ Map-source changes reposition every ALPR marker without replacing entities. ALPR loads+ whole-city views from z9-z12 tiles, drops native ground wedges and clamping,+ keeps frame time with ALPR on within a few percent of ALPR off, seats nearby+ badges on the rendered surface and says when no loaded camera is on screen.- CCTV cameras whose bearing is a guess now say so. Packs mark bearings derivedfrom a hash of the camera id as `headingConfidence: 'low'`, but nothing read thediff --cc docs/CURRENT-STATE.mdindex c6ae4117a,22ce1eb3b..93344268c--- a/docs/CURRENT-STATE.md+++ b/docs/CURRENT-STATE.md@@@ -2747,27 -2841,27 +2841,27 @@@ nearby place—always use station selecrequests use Play; a qualified Play-shaped tool call is normalized to Select soits 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 + WSDOT (WA) 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) |- | 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) |+ | 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 ⌖ | OpenFreeMap military areas; optional configured Overpass names and Google Places search | `src/data/militaryInstallations.js` | OpenFreeMap tiles, `/api/military-installations`, `/api/google/text-search` | viewport-driven; transient errors back off, missing capability switches to tiles |+ | 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 | Selectable TomTom / OpenStreetMap / Hybrid roads; optional TomTom flow (BYOK) | `src/data/traffic.js` | browser-direct OpenFreeMap tiles; `/api/tomtom` for flow | viewport-driven; capped tile cache |-| 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) |++| CCTV | Austin + Caltrans (CA) + TfL London + Ontario 511 + Fintraffic (FI) + DriveBC (BC) + TxDOT (TX) + Estonia (Tallinn, Tarktee) + Live Traffic NSW + Open Calgary Open Data + WSDOT (WA) 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) |+ | 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.