feat(frontend): map display modes — Classic / Radar Scope / Satellite (2001 imagery)#199
Merged
Conversation
…ative max is 6) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
✅ Playwright E2E — 1 passed · 0 failed · 0 flaky · 0 skipped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
User-selectable basemap display modes for the Flight Tracker and Weather apps, orthogonal to the existing Dark Map toggle:
How it works
src/lib/basemap/basemapStyles.tsbuilds a superset style (vector basemap + two raster PMTiles sources); switching styles flips paint colors + layer visibility live (setPaintProperty/setLayoutProperty) — nevermap.setStyle(), so flight pins/trails/ghosts and weather stations/radar survive every switch. Exactly one ground renders per (style, darkMap) pair; satellite tile data only downloads when the mode is selected.effectiveTone(mapStyle, darkMap)drives the pin-color crayon buckets and per-style trail colors (radar forces dark tone — mutation-checked regression test included).weatherLoopSettings.ts→weatherSettings.ts).scripts/build-satellite-basemap.mdrunbook), uploaded to Wasabimaps/(2.0 MB day / 1.4 MB night, z2–6, NA bbox), both serving206via files.911realtime.org — no infra change needed. The app reads raster maxzoom from the archives' TileJSON.Testing
tsc -band eslint cleanFollow-ups (pre-existing, not this branch): NEXRAD radar frame PNGs have an opaque black background that darkens the Weather map under the 0.65-opacity overlay; Flight Tracker radio input DOM ids could be namespaced.
Spec: docs/superpowers/specs/2026-07-13-map-display-modes-design.md (local, gitignored by repo convention)
🤖 Generated with Claude Code