Add Map settings toggle to show/hide live air traffic

Add a "Map settings" popover (gear button) on the Overview Live map with a
"Show live air traffic" switch, backed by a new client-side showAirTraffic
preference (default on, persisted in localStorage and synced like other
prefs). When off, the aircraft overlay clears and polling pauses to save
OpenSky credits; the count badge and caption reflect the hidden state.
Toggling on re-fetches immediately.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
tajniak81
2026-07-13 22:31:56 +02:00
co-authored by Claude Opus 4.8
parent a578555b43
commit fee171a71f
7 changed files with 73 additions and 30 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -35,8 +35,8 @@
})()
</script>
<title>PilotVault — Control Panel</title>
<script type="module" crossorigin src="./assets/index-uk1cBykG.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CoIRbg0g.css">
<script type="module" crossorigin src="./assets/index-Dk_VY0uv.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Bvd5MzZB.css">
</head>
<body>
<div id="app"></div>