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

Said Turkseverc4514784fcb2
diff --cc CHANGELOG.md
index 27978784d,58103d04d..8d5627c69
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -1,16 -1,80 +1,91 @@@
# Changelog
+- Rail panels can opt into a portable mode: dragging the CCTV or Street Level
+ panel by its header lifts it out of the right rail into a floating window
+ that resizes from any edge or corner, remembers its position and size across
+ reloads, and snaps back on a header double-click. A panel can also ask to
+ dock when it is collapsed while floating (Street Level does).
+
+- Street Level: a provider-neutral street-level imagery layer modelled on the iD editor's photo overlay. One panel in the right rail carries a chip per imagery provider, shared 360°/flat and captured-since filters, coverage drawn on the globe from orbit down to a single street, image cones per sequence, and one embedded viewer whose adapter follows the provider of the open image; each active provider credits its imagery on the globe, and share links carry the provider switches and the filter. Mapillary is the first provider (free client token; CC BY-SA 4.0 imagery); Google Street View, KartaView and Panoramax are next. The panel is kept simple: the viewer opens at the top so the photo needs no scrolling, the header pill and the provider chips switch the layer, and SINCE is a slider. FOLLOW (the globe camera following the street-level view) is available on the Google 3D map only.
+
+- Street Level draws each imagery source in one colour, everywhere it appears: its PROVIDERS chip, coverage lines, overview points, image cones and a single legend swatch. Mapillary is green (no more age dimming or magenta panoramas; 360° cones are rings, and the 360°/FLAT filter still separates them); Panoramax will be purple and Google Street View blue.
+
+- Street Level coverage no longer floats over trees and bridges on the Google 3D map. At street zoom, sequence lines, image cones and the position marker are placed on the bare earth from the terrain service (with a 2 m lift) instead of being draped on the top of the photoreal mesh, so buildings and tree canopies hide what is behind them; other maps and higher views keep draped lines. Opening a photo no longer flies the camera underground when the Google tiles under it have not loaded yet.
+ - 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 derived
from a hash of the camera id as `headingConfidence: 'low'`, but nothing read the
diff --cc DATA_SOURCES.md
index dae310cb3,ab059cebb..d61bfa09e
--- a/DATA_SOURCES.md
+++ b/DATA_SOURCES.md
@@@ -20,8 -20,7 +20,9 @@@ How to read this
| **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, Mapillary provider: coverage lines, image cones and the embedded viewer | 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; coverage tiles are cached locally for 24 h | "Street Level: imagery © Mapillary contributors, CC BY-SA 4.0" — shown on the globe while the provider is on, and by the embedded viewer's attribution component |
+ | **OpenStreetMap** | Map and place data (roads, military areas and names, ALPR, place search, outlines); via vector tiles, hourly ALPR extract, bundled data, Nominatim and optional self-configured Overpass | [ODbL 1.0](https://opendatacommons.org/licenses/odbl/1-0/) | © OpenStreetMap contributors |
| **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 scripts/format-scope.json
index c43c32577,cd836a5cb..8e8455d95
--- a/scripts/format-scope.json
+++ b/scripts/format-scope.json
@@@ -31,8 -36,7 +36,9 @@@
"src/main.js",
"docs/APPLICATION.md",
"scripts/qa-application.mjs",
+ "scripts/qa-panel-resize.mjs",
+ "src/tooling/panelResizeQa.test.mjs",
+ "scripts/qa-terrain-429.mjs",
"src/app/application.js",
"src/app/application.test.mjs",
"src/app/mapLifecycle.test.mjs",
@@@ -848,54 -853,16 +856,66 @@@
"src/ui/recentImagery.test.mjs",
"src/layers/recentImagery/testDoubles.mjs",
"scripts/qa-recent-imagery.mjs",
+ "src/ui/streetLevelControls.js",
+ "src/ui/streetLevelPresentation.js",
+ "src/ui/streetLevelPresentation.test.mjs",
+ "src/app/layers/streetLevel.js",
+ "src/tooling/mapillaryProvider.test.mjs",
+ "src/layers/streetLevel/providers/mapillary/source.test.mjs",
+ "src/streetLevelMarkup.test.mjs",
+ "src/layers/streetLevel/index.js",
+ "src/layers/streetLevel/policy.js",
+ "src/layers/streetLevel/filter.js",
+ "src/layers/streetLevel/registry.js",
+ "src/layers/streetLevel/params.js",
+ "src/layers/streetLevel/pickRouter.js",
+ "src/layers/streetLevel/uiState.js",
+ "src/layers/streetLevel/groundCast.js",
+ "src/layers/streetLevel/view.js",
+ "src/layers/streetLevel/marker.js",
+ "src/layers/streetLevel/cameraFollow.js",
+ "src/layers/streetLevel/credits.js",
+ "src/layers/streetLevel/viewerHost.js",
+ "src/layers/streetLevel/providers/mapillary/index.js",
+ "src/layers/streetLevel/state.js",
+ "src/layers/streetLevel/providers/mapillary/policy.js",
+ "src/layers/streetLevel/providers/mapillary/coverage.js",
+ "src/layers/streetLevel/providers/mapillary/sequences.js",
+ "src/layers/streetLevel/glyphs.js",
+ "src/layers/streetLevel/providers/mapillary/decode.js",
+ "src/layers/streetLevel/tileMath.js",
+ "src/layers/streetLevel/selection.js",
+ "src/layers/streetLevel/providers/mapillary/viewer.js",
+ "src/layers/streetLevel/providers/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",
+ "src/layers/streetLevel/tileMath.test.mjs",
+ "scripts/qa-street-level.mjs",
+ "src/tooling/streetLevelQa.test.mjs",
+ "src/layers/streetLevel/filter.test.mjs",
+ "src/layers/streetLevel/registry.test.mjs",
+ "src/layers/streetLevel/params.test.mjs",
+ "src/layers/streetLevel/pickRouter.test.mjs",
+ "src/layers/streetLevel/uiState.test.mjs",
+ "src/layers/streetLevel/groundCast.test.mjs",
+ "src/layers/streetLevel/providers/mapillary/provider.test.mjs",
+ "src/layers/streetLevel/providers/mapillary/decode.test.mjs",
+ "src/ui/panelDock.test.mjs",
+ "src/layers/streetLevel/viewerHost.test.mjs",
+ "src/layers/streetLevel/index.test.mjs"
+ "scripts/qa-overpass-offload.mjs",
+ "src/overpassOffload.test.mjs",
+ "src/sources/openFreeMap.test.mjs",
+ "src/sources/vectorTiles.test.mjs",
+ "src/sources/militaryTileGeometry.test.mjs",
+ "src/layers/traffic/surface.test.mjs",
+ "src/layers/traffic/roadModes.test.mjs",
+ "scripts/qa-traffic-motion.mjs",
+ "src/layers/traffic/motion.test.mjs",
+ "scripts/qa-journey-recorder.mjs",
+ "scripts/qa-alpr-journey.mjs",
+ "scripts/qa-context-arrivals.mjs"
]
diff --cc scripts/package-boundaries.json
index 8bb96bea2,276b9e0db..e2a167c9e
--- a/scripts/package-boundaries.json
+++ b/scripts/package-boundaries.json
@@@ -630,11 -619,10 +636,12 @@@
"src/ui/layerBindings.js",
"src/ui/displayBindings.js",
"src/ui/shellFacade.js",
+ "src/ui/streetLevelControls.js",
+ "src/ui/streetLevelPresentation.js",
"src/ui/localSdrControls.js",
"src/layers/localAdsb/feedNames.js",
- "src/ui/localSdrPresentation.js"
+ "src/ui/localSdrPresentation.js",
+ "src/data/cameraArrival.js"
],
"external": ["cesium"]
},
@@@ -2017,33 -2014,20 +2069,47 @@@
"src/maps/imageryHost.js",
"src/ui/recentImagery.js",
"src/ui/imageryBoxTool.js",
+ "src/ui/streetLevelControls.js",
+ "src/ui/streetLevelPresentation.js",
+ "src/layers/streetLevel/index.js",
+ "src/layers/streetLevel/providers/mapillary/index.js",
+ "src/layers/streetLevel/viewerHost.js",
+ "src/layers/streetLevel/credits.js",
+ "src/layers/streetLevel/cameraFollow.js",
+ "src/layers/streetLevel/marker.js",
+ "src/layers/streetLevel/view.js",
+ "src/layers/streetLevel/uiState.js",
+ "src/layers/streetLevel/groundCast.js",
+ "src/layers/streetLevel/pickRouter.js",
+ "src/layers/streetLevel/params.js",
+ "src/layers/streetLevel/registry.js",
+ "src/layers/streetLevel/filter.js",
+ "src/layers/streetLevel/policy.js",
+ "src/layers/streetLevel/state.js",
+ "src/layers/streetLevel/providers/mapillary/policy.js",
+ "src/layers/streetLevel/providers/mapillary/coverage.js",
+ "src/layers/streetLevel/providers/mapillary/sequences.js",
+ "src/layers/streetLevel/glyphs.js",
+ "src/layers/streetLevel/providers/mapillary/decode.js",
+ "src/layers/streetLevel/tileMath.js",
+ "src/layers/streetLevel/selection.js",
+ "src/layers/streetLevel/providers/mapillary/viewer.js",
+ "src/layers/streetLevel/providers/mapillary/source.js",
+ "src/app/layers/streetLevel.js"
+ "src/layers/alpr/tileRecords.js",
+ "src/sources/capability.js",
+ "src/sources/openFreeMap.js",
+ "src/sources/militaryTileGeometry.js",
+ "src/sources/vectorTiles.js",
+ "src/sources/phaseTiming.js",
+ "src/layers/traffic/roadModes.js",
+ "src/data/cameraArrival.js",
+ "src/layers/alpr/floors.js",
+ "src/data/militaryNames.js",
+ "src/sources/requestDeadline.js",
+ "src/data/local_data/osm_military_names/names.json",
+ "src/layers/installations/namedMarkers.js",
+ "src/data/infrastructureOverlayEntry.js"
],
"external": [
"hls.js",
@@@ -2506,31 -2498,20 +2581,45 @@@
"src/layers/recentImagery/rendering.js",
"src/layers/recentImagery/thumbnails.js",
"src/maps/imageryHost.js",
+ "src/layers/streetLevel/index.js",
+ "src/layers/streetLevel/providers/mapillary/index.js",
+ "src/layers/streetLevel/viewerHost.js",
+ "src/layers/streetLevel/credits.js",
+ "src/layers/streetLevel/cameraFollow.js",
+ "src/layers/streetLevel/marker.js",
+ "src/layers/streetLevel/view.js",
+ "src/layers/streetLevel/uiState.js",
+ "src/layers/streetLevel/groundCast.js",
+ "src/layers/streetLevel/pickRouter.js",
+ "src/layers/streetLevel/params.js",
+ "src/layers/streetLevel/registry.js",
+ "src/layers/streetLevel/filter.js",
+ "src/layers/streetLevel/policy.js",
+ "src/layers/streetLevel/state.js",
+ "src/layers/streetLevel/providers/mapillary/policy.js",
+ "src/layers/streetLevel/providers/mapillary/coverage.js",
+ "src/layers/streetLevel/providers/mapillary/sequences.js",
+ "src/layers/streetLevel/glyphs.js",
+ "src/layers/streetLevel/providers/mapillary/decode.js",
+ "src/layers/streetLevel/tileMath.js",
+ "src/layers/streetLevel/selection.js",
+ "src/layers/streetLevel/providers/mapillary/viewer.js",
+ "src/layers/streetLevel/providers/mapillary/source.js",
+ "src/app/layers/streetLevel.js"
+ "src/layers/alpr/tileRecords.js",
+ "src/sources/capability.js",
+ "src/sources/openFreeMap.js",
+ "src/sources/militaryTileGeometry.js",
+ "src/sources/vectorTiles.js",
+ "src/sources/phaseTiming.js",
+ "src/layers/traffic/roadModes.js",
+ "src/data/cameraArrival.js",
+ "src/layers/alpr/floors.js",
+ "src/data/militaryNames.js",
+ "src/sources/requestDeadline.js",
+ "src/data/local_data/osm_military_names/names.json",
+ "src/layers/installations/namedMarkers.js",
+ "src/data/infrastructureOverlayEntry.js"
],
"external": [
"hls.js",
diff --cc src/app/constructCatalog.js
index 250afd0f2,7ed03d0d2..dbbd98fd5
--- a/src/app/constructCatalog.js
+++ b/src/app/constructCatalog.js
@@@ -156,13 -148,9 +156,13 @@@ export function createApplicationCatalo
source: sources['fire-perimeters'],
}),
createApplicationAlpr({ surface, source: sources.alpr }),
+ createApplicationStreetLevel({
+ surface,
+ sources: { mapillary: sources.mapillary },
+ }),
satellites,
createApplicationLaunches({ source: sources.launches, satellites }),
- createApplicationTraffic({ source: sources.traffic }),
+ createApplicationTraffic({ source: sources.traffic, surface }),
createApplicationCctv({ surface, source: sources.cctv }),
createApplicationRadio({ surface, source: sources.radio }),
createApplicationTransit({ surface, source: sources.transit }),