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 current upstream and resolve PR 581 conflicts
Michael Johnstond866f9b01c48
diff --cc CHANGELOG.mdindex f5433b87f,58103d04d..d52bd0718--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,6 -1,80 +1,81 @@@# Changelog+- Bound the remaining upstream body reads (FIRMS, CelesTrak, adsb.lol, TomTom, OpenSky, adsbdb) with streaming size caps and shared deadlines; the adsb.lol military and OpenSky `states/all` polls gain deadlines of their own.+ - 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 7853d590e,22ce1eb3b..29ea05f23--- a/docs/CURRENT-STATE.md+++ b/docs/CURRENT-STATE.md@@@ -827,26 -895,6 +895,26 @@@ feed address is read from the path, anstreaming. The 12-second deadline includes reading the body, and rejected orstalled downloads are cancelled. Development and preview use the same handler.+## Upstream body bounds+- Every proxied fetch outside CCTV media now reads its body through the shared- streaming readers in `src/sources/httpBody.js`, so a declared or observed body++FIRMS CSV, CelesTrak TLE groups, adsb.lol military responses, TomTom flow++tiles, OpenSky states/all and adsbdb lookups now read their bodies through the++shared streaming readers in `src/sources/httpBody.js`, so a declared or observed body+over the cap is refused with `RESPONSE_TOO_LARGE` and cancelled rather than+buffered. `readResponseBytesCapped` accepts the same optional abort signal as+the text reader and cancels a body still streaming when it fires; TomTom flow+tiles use it alongside GTFS-Realtime. Caps are bounds, not budgets, sized well+above measured payloads: FIRMS 64 MiB per satellite source, CelesTrak 16 MiB+per group, OpenSky `states/all` 8 MiB, adsb.lol `/v2/mil` 8 MiB, TomTom tiles+8 MiB and adsbdb lookups 1 MiB. Where a route already had a deadline (FIRMS+60 s, CelesTrak 20 s, TomTom 15 s, adsbdb 8 s) that deadline now covers the+body read as well as the headers. Two polls that had no deadline gain one: the+adsb.lol military poll waits at most 12 seconds, and the OpenSky `states/all`+exchange, including its Basic-auth retry, at most 20. A rejected or timed-out+body is an upstream miss and follows each route's existing error and+cached-data paths. FIRMS map-key status, the OpenSky token exchange and CCTV+media keep their current handling.+-## Remaining local service modulesOverpass query validation, geometry simplification, disk caching and upstream