feat: add layer toggles and world capitals to dashboard#76
Open
PetroczyP wants to merge 3 commits intocalesthio:masterfrom
Open
feat: add layer toggles and world capitals to dashboard#76PetroczyP wants to merge 3 commits intocalesthio:masterfrom
PetroczyP wants to merge 3 commits intocalesthio:masterfrom
Conversation
Users can now click any Sensor Grid row to show/hide its corresponding map layer on both 3D Globe and D3 flat map. Toggle state persists in localStorage. Absorbs the standalone flight toggle into Air Activity. Adds 3 new Sensor Grid rows: NOAA Weather, EPA RadNet, GDELT Events. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds 245 world capitals sourced from REST Countries API as a static reference layer. Capitals appear as gold dots on both 3D globe and D3 flat map, togglable via the Sensor Grid panel. Each popup shows flag emoji, city name, country, and ISO code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Fix wrong coordinates: El Aaiun (lat/lng swapped), Port-aux-Francais (placed in France instead of Kerguelen), St. George's (Bermuda coords instead of Grenada) - Wrap all localStorage access in try-catch with console.warn logging - Add layer ID validation in toggleLayer to prevent prototype pollution - Guard plotMarkers with isFlat check to skip wasted 3D recompute - Merge duplicate .layer-item CSS rules into single declaration - Simplify layerVisibility init (remove IIFE, single default path) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
localStorageaccess wrapped in try-catch withconsole.warnlogging. Layer ID validation prevents prototype pollution. Pre-existing unguardedlocalStorage.getItemfor perf mode also wrapped.All changes are in
dashboard/public/jarvis.htmlonly — no new files, no new dependencies, no build step changes.Commits
feat: add layer toggles to Sensor Grid for all 13 map layersfeat: add world capitals layer with 245 cities on globe and flat mapfix: correct 3 capital coordinates, harden localStorage, clean up CSSTest plan
🤖 Generated with Claude Code