From e6c7a3eae44b2c8399fc1aa371b51ddf938d78e7 Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 15 Jan 2026 15:29:31 +0000 Subject: [PATCH] Add radar overlay on map, fix squawk button and airband status - Add "Radar" toggle in display controls to overlay radar effect on map - Radar overlay shows sweep line, range rings, compass rose, center point - Fix squawk button using addEventListener instead of inline onclick - Add missing airbandStatus element to fix null error - Improve squawk modal with click-outside-to-close Co-Authored-By: Claude Opus 4.5 --- static/css/adsb_dashboard.css | 18 ++++ templates/adsb_dashboard.html | 178 +++++++++++++++++++++++++++++++++- 2 files changed, 193 insertions(+), 3 deletions(-) diff --git a/static/css/adsb_dashboard.css b/static/css/adsb_dashboard.css index 0f7d835..78779ca 100644 --- a/static/css/adsb_dashboard.css +++ b/static/css/adsb_dashboard.css @@ -440,11 +440,27 @@ body { } #radarMap { + position: relative; width: 100%; height: 100%; display: block; } +#radarOverlayCanvas { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 500; + display: none; +} + +#radarOverlayCanvas.active { + display: block; +} + #radarScope { position: absolute; top: 0; @@ -1004,6 +1020,8 @@ body { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 0 8px; + color: var(--text-muted); + white-space: nowrap; } #airbandSquelch { diff --git a/templates/adsb_dashboard.html b/templates/adsb_dashboard.html index d284725..dcee4b4 100644 --- a/templates/adsb_dashboard.html +++ b/templates/adsb_dashboard.html @@ -68,7 +68,7 @@ SESSION
- + OFF