Base map theme switch: Maptool or NPS Park Tiles (colors sampled from the Park Tiles legend, park fill above landcover with a tint band), remembered; both themes in map_themes.js so /symbols.html draws a side-by-side map legend from the same patched style, linked from the Base map panel, which now stays even without offline tiles
CI / check (push) Successful in 18s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-18 23:11:44 +01:00
1 parent cb6412f0ba
commit f09216b102
8 files changed
+407 -170

No files matched your search

+13 -1
View File
@@ -42,7 +42,7 @@
<strong>Base map</strong>
<button type="button" class="basemap-panel__close" aria-label="Close">&times;</button>
</div>
<div class="basemap-panel__list">
<div class="basemap-panel__list basemap-panel__sources">
<button type="button" class="basemap-panel__option" data-style="online">
<span>Online</span>
<span class="basemap-panel__check">&check;</span>
@@ -52,6 +52,18 @@
<span class="basemap-panel__check">&check;</span>
</button>
</div>
<div class="basemap-panel__list">
<div class="basemap-panel__heading">Theme</div>
<button type="button" class="basemap-panel__option" data-theme="maptool">
<span>Maptool</span>
<span class="basemap-panel__check">&check;</span>
</button>
<button type="button" class="basemap-panel__option" data-theme="parktiles">
<span>NPS Park Tiles</span>
<span class="basemap-panel__check">&check;</span>
</button>
<a class="basemap-panel__link" href="/symbols.html" target="_blank">Legend &amp; symbols ↗</a>
</div>
</div>
<div id="gpx-panel" class="gpx-panel" hidden>
+1
View File
@@ -45,6 +45,7 @@
"/js/icons.js": "/js/icons.js?v=<%= ASSET_VERSION %>",
"/js/livetrack.js": "/js/livetrack.js?v=<%= ASSET_VERSION %>",
"/js/locate.js": "/js/locate.js?v=<%= ASSET_VERSION %>",
"/js/map_themes.js": "/js/map_themes.js?v=<%= ASSET_VERSION %>",
"/js/measure.js": "/js/measure.js?v=<%= ASSET_VERSION %>",
"/js/notes.js": "/js/notes.js?v=<%= ASSET_VERSION %>",
"/js/debug.js": "/js/debug.js?v=<%= ASSET_VERSION %>",