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 upstream/main into pr/panel-resize
Said Turksever11603729dcd6
diff --cc CHANGELOG.mdindex f037c3e23,0bcdebf70..2f1e224e2--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -1,9 -1,149 +1,153 @@@# Changelog+- Rail panels can opt into a portable mode: dragging the CCTV 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, and snaps back on+ a header double-click.+ - 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 /+ Landsat (30 m) and, when switched on, VIIRS daily overview imagery over it,+ with thumbnails and scene cloud. Three modes: IMAGE shows one day, VS+ BASEMAP swipes it against the map, A / B swipes two days; a SHOW or A / B+ chip on each day card pins it, arrow keys preview the focused day while a+ slot is empty, and no control moves when anything changes. While imagery is+ shown on Google 3D the map switches to Esri and comes back when it is+ cleared. Either image exports as a PNG; box, pins, mode and split travel in+ share links; the NASA acknowledgement is in the credits and+ `DATA_SOURCES.md`. The swipe is now shared with the Nepal scene+ (`src/ui/imagerySplit.js`, `src/maps/imageryComparison.js`), and+ `MapSourceController.subscribe()` reports every settled map switch.++ ## Unreleased — weather review++ - On 3D Tiles, draw a 4096×2048 detail window around the view on each+ observed-weather shell except global infrared, sampled by the shell's own+ surface. It follows the view on camera move end, keeps its place while the+ view stays near its centre, and hides until its image is ready after a move;+ an older frame's detail stays over at most one newer frame. The image proxy+ accepts a 2:1 `bbox` inside the product bounds, rounded to 0.25°.+ Lightning's whole-extent image is now 4096×2048; each shell caches up to+ 128 MiB of decoded images.++ - On 3D Tiles, show observed weather and the wind color field as raised,+ translucent shells (5.0–6.6 km, lightning highest) with one full-extent image+ per frame instead of draping onto tiles; they show at any camera height.+ Globe hosts are unchanged. The weather image proxy serves every product+ (radar and regional infrared up to 4096×2048, lightning and global infrared+ up to 2048×1024) with a size parameter and a 16 MiB cap. Accept bounded tile+ sizes in the proxy with separate immutable cache entries.++ - Cache exact-time weather images and tiles for 24 hours. Retain up to 6 decoded+ global mosaics per renderer and warm the next observation during playback;+ tile prefetch is bounded to eight requests and cancels when suspended.++ - Move weather times, coverage, legends and cyclone advisory details into keyed+ right-rail cards; left rows keep status and configuration. Use one native+ observed-history timeline with local preview and coalesced drag commits.+ - Add reusable rail card and timeline components. Keep panel collapse, count,+ hidden-empty behavior and first-appearance expansion.+ - Show wind unit controls beside speed legends and inside inspection readings;+ changing units preserves the sampled location and open reading.+ - Name satellite imagery Satellite clouds, with Clouds only / Full image modes+ and explicit regional coverage. Existing share parameters are unchanged.++ - Share one observed history clock across radar, infrared and lightning. Step+ through their union timeline with bounded nearest-at-or-before selection;+ hide products without an eligible frame. Latest uses each product's newest+ observation; playback waits for all frame loads to settle before advancing.+ - Label wind as a forecast that does not follow observed history. Keep history+ transient and product readouts synchronized.++ - Keep Google 3D Tiles drawing while draped weather imagery loads and retain the+ old observation until the replacement has rendered.+ - Decode one bounded global infrared mosaic per frame on both map hosts, then+ crop local tiles to avoid request-dependent brightness seams.+ - Add Clouds only / Full image controls and share-link state. Filtered mode uses+ a soft linear-brightness alpha ramp from 0.40 to 0.70 around the old 0.55 cut.++ - Dock the weather summary in the right rail with standard panel collapse and drag chrome.++ - Filter infrared brightness so cold cloud tops stand out; this is a display+ filter, not a cloud mask.+ - Retry throttled weather tiles up to three times per tile.++ - Cull regional wind batches per frame, fade curves below 60 km, and stop idle+ rendering when no curve is visible.+ - Fade the wind color field below ~1,200 km camera height and hide it at 200 km.+ On 3D Tiles, update alpha in 0.1 steps only at camera move end or installation;+ globe imagery keeps its smooth per-frame fade.++ - Hide cyclone markers, labels, tracks and cones beyond the horizon on every map source.+ - Reserve stable weather status space and coalesce panel refreshes per frame.++ - Add keyless NOAA/NHC cyclone advisory positions, coherent forecast tracks and+ uncertainty cones, plus NOAA's observed 15-minute lightning density imagery.+ Preserve source clocks, basin coverage and explicit pending/stale states.+ - Make wind default to trails, preserve earlier share-link appearance, retain+ geometry across scalar changes, and show a compact weather summary with a+ location marker and selected-field emphasis for forecast inspection.++ - Add keyless NOAA observed rain radar and infrared satellite layers to Weather,+ with explicit coverage/freshness, recent observation playback and native Cesium tiles.+ - Increase desktop wind density to 7,200 paths and improve temperature contrast+ while retaining the 1,200-path narrow-screen budget and unchanged forecast values.++ - Expand Wind into a surface-weather prototype: globe-draped speed shading,+ optional same-run 2 m temperature and mean sea-level pressure, GFS/ECMWF model+ selection, a numeric legend, wind units, Pause, and a dismissible map-center+ reading. Keep wind visible when an optional field is unavailable; respect+ reduced motion and stop animation while hidden or disabled. Bake bounded+ forecast-following curves once per field and animate their phase on the GPU,+ with a canvas fallback and globe view lighting owned only while Wind is enabled.+ Display lift does not+ change the 10 m forecast level; this adds no cloud volume, radar or forecast-time+ playback. Native hardware GPU behavior remains unverified.++ Add feed provenance to analyst/view answers and HUD context while retaining existing response fields and runner ownership (Matt Van Horn, #347).++ Analyst records for loaded satellites, datacenters and dams, with explicit bounded count/rank coverage (Matt Van Horn, #351).++ - Remove the spurious scrollbars that appeared on both panel stacks at narrow+ widths (720px and below) as soon as a panel was expanded. The stacks scroll+ vertically there, and each panel's decorative glow, absolutely positioned+ with a negative inset, became 18–20px of scrollable overflow on both axes: a+ horizontal scrollbar band under the expanded CCTV, Context, Data Layers or+ Scenes panel plus a vertical scrollbar that scrolled nothing but glow. The+ narrow-screen rules now pin the glow to its panel box; the stacks still+ scroll for genuinely tall content such as an expanded DISPLAY panel, and the+ Context radio popover is not clipped. `src/ui/panelRails.test.mjs` pins the+ rule against every 720px media block.++ - Enable responsive trackpad pinch zoom on the globe. Browser pixel-mode+ `Ctrl+wheel` pinch gestures now reach Cesium with bounded amplification,+ while ordinary wheel, line-mode and touch-pinch inputs retain their existing+ behavior; the listener is removed with the application scene.++ - Report AIS speed and course that carry the standard "not available" code as+ unknown instead of 102.3 knots and 360 degrees. Genuine readings, including a+ stopped vessel's zero and the highest encodable values, are unchanged.++ - Render native `<select>` option lists in the dark UI palette. The closed+ controls were already skinned, but the browser-painted popups fell back to the+ platform light palette, leaving near-white option text on a white surface in+ the HUD layout, Scenes, CCTV camera, Radio filter and Draw colour menus.++ - Credit adsbdb, which supplies the aircraft type, model name and registration+ on enriched flights and the airline and origin/destination pair behind the+ tracked contact's route strip. `DATA_SOURCES.md` now records adsbdb's+ published credits and route-data restriction, along with the request bounds+ and gitignored 24-hour local cache. A matching `DATA_CREDITS` entry surfaces+ the credit in the in-app Data attribution popover, and a test protects it+ against accidental removal.++ - Size the TomTom daily tile budget to the provider's real free allowance.+ `TOMTOM_DAILY_TILE_BUDGET` defaulted to 40,000/day against an allowance+ granted monthly (200,000 tile requests/month), exhausting a month in five+ days and leaving the traffic layer dead for the rest of the period. The+ default is now 6,000/day (186,000 over a 31-day month). Corrects the stale+ "~50k/day" free-tier figure in the proxy, `.env.example` and+ `DATA_SOURCES.md`. Still an application-side ceiling, not a billing cap.- Distinguish PARTIAL vessel snapshots from STALE data in the layer panel, withaccepted-record counts and unchanged retention, freshness and outage safeguards.diff --cc src/ui/rightPanelRail.jsindex 1c324a523,f05e368c0..042f0555c--- a/src/ui/rightPanelRail.js+++ b/src/ui/rightPanelRail.js@@@ -40,11 -42,11 +42,14 @@@ export function layoutRightPanelRail(getComputedStyle = (element) => windowRef.getComputedStyle(element),}) {if (!stack) return;+ // A collapse may schedule one follow-up, which only measures and allocates.+ const isCollapseRetry = pendingCollapseRetries.delete(stack);+ // A panel lifted out of the rail (PanelPositionControls' portable mode)+ // is a fixed window the rail neither measures nor allocates.- const panels = [...stack.children].filter((panel) =>- panel.matches('[data-panel-id]:not(.panel-floating)'),+ const panels = [...stack.children].filter(- (panel) => panel.matches('[data-panel-id]') && !panel.hidden,++ (panel) =>++ panel.matches('[data-panel-id]:not(.panel-floating)') && !panel.hidden,);if (!hud.visible || hud.variant !== 'tactical') {for (const panel of panels.filter((item) =>diff --cc src/ui/styles/layers.cssindex 79ad8c268,2f53ae33d..3b6f4fd79--- a/src/ui/styles/layers.css+++ b/src/ui/styles/layers.css@@@ -161,7 -161,9 +161,9 @@@max-height var(--transition-fast);}#right-context-rail > #pp-toggles,-#right-context-rail > #cctv-panel,+#right-context-rail > #cctv-panel:not(.panel-floating),+ #right-context-rail > #weather-panel,+ #right-context-rail > #recent-imagery-panel,#right-context-rail > #global-context-panel {position: relative;inset: auto;@@@ -173,12 -175,24 +175,24 @@@max-height: 100%;pointer-events: auto;}- #right-context-rail #cctv-panel:not(.panel-floating) {-#right-context-rail #cctv-panel,++#right-context-rail #cctv-panel:not(.panel-floating),+ #right-context-rail #weather-panel,+ #right-context-rail #recent-imagery-panel {width: 100%;max-height: 100%;pointer-events: auto;}- #right-context-rail #cctv-panel.collapsed:not(.panel-floating) {+ #right-context-rail > #weather-panel,+ /* Collapsed, it must stay hideable by the rail's exclusive layout. */+ #right-context-rail > #recent-imagery-panel:not(.collapsed) {+ display: flex;+ flex-direction: column;+ flex-shrink: 1;+ min-height: 0;+ }-#right-context-rail #cctv-panel.collapsed,++#right-context-rail #cctv-panel.collapsed:not(.panel-floating),+ #right-context-rail #weather-panel.collapsed,+ #right-context-rail #recent-imagery-panel.collapsed {width: var(--right-display-collapsed-width);margin-left: auto;}@@@ -248,8 -261,9 +264,10 @@@display: none;}#right-context-rail.layout-focus > #pp-toggles:not(.collapsed),-#right-context-rail.layout-focus > #cctv-panel:not(.collapsed),+#right-context-rail.layout-focus+ > #cctv-panel:not(.collapsed):not(.panel-floating),+ #right-context-rail.layout-focus > #weather-panel:not(.collapsed),+ #right-context-rail.layout-focus > #recent-imagery-panel:not(.collapsed),#right-context-rail.layout-focus > #global-context-panel:not(.collapsed) {flex: 0 1 var(--right-panel-allocated-height);height: var(--right-panel-allocated-height);@@@ -262,9 -276,15 +280,15 @@@scrollbar-width: thin;scrollbar-color: rgba(0, 212, 255, 0.4) transparent;}+ #right-context-rail.layout-focus+ > #weather-panel:not(.collapsed)+ .weather-panel-inner,#right-context-rail.layout-focus- > #cctv-panel:not(.collapsed)+ > #cctv-panel:not(.collapsed):not(.panel-floating).cctv-panel-inner,+ #right-context-rail.layout-focus+ > #recent-imagery-panel:not(.collapsed)+ .recent-imagery-panel-inner,#right-context-rail.layout-focus> #global-context-panel:not(.collapsed).global-context-panel-inner {diff --cc src/ui/styles/responsive.cssindex 38fe8efb3,16817ac10..197fac801--- a/src/ui/styles/responsive.css+++ b/src/ui/styles/responsive.css@@@ -202,8 -216,10 +216,10 @@@}#right-context-rail #pp-toggles.collapsed .pp-header-row,- #right-context-rail #cctv-panel,- #right-context-rail #cctv-panel.collapsed,+ #right-context-rail #cctv-panel:not(.panel-floating),+ #right-context-rail #cctv-panel.collapsed:not(.panel-floating),+ #right-context-rail #recent-imagery-panel,+ #right-context-rail #recent-imagery-panel.collapsed,#right-context-rail #radio-panel,#right-context-rail #radio-panel.collapsed,#right-context-rail #global-context-panel,