NPS park maps overlay: park points and map footprints, a park search, a park popup listing its Harpers Ferry Center maps with local PDF/GeoTIFF links, and the 289 georeferenced ones laid over the base map with an opacity slider; data from data/nps served by /api/nps and /nps/{overlay,geotiff,pdf}
CI / check (push) Successful in 19s
CI / deploy (push) Successful in 17s

This commit is contained in:
randy committed 2026-11-19 10:52:17 +01:00
1 parent ff5924faf1
commit 3fc8c75c60
8 files changed
+421 -6

No files matched your search

+5 -1
View File
@@ -7,6 +7,7 @@ import { ShadowControl } from "/js/shadow.js";
import { ContourControl } from "/js/contour.js";
import { HikingTrailsControl } from "/js/hiking_trails.js";
import { LiveControl } from "/js/live.js";
import { NpsControl } from "/js/nps.js";
const ICON_IMAGE_SIZE = 48; // rasterized once at this size, rendered much smaller by icon-size below
const ICON_SIZE = 0.3; // 48 * 0.3 = ~14px, sized to sit inside the marker badge below
@@ -188,6 +189,7 @@ export class OverlaysControl {
this._contour = new ContourControl(map);
this._hikingTrails = new HikingTrailsControl(map);
this._live = new LiveControl(map);
this._nps = new NpsControl(map);
this._wikiEnabled = false; // the checkbox's own state
this._wikiMoveHandler = null; // the moveend listener driving its live refetch, while enabled
this._wikiRequestSeq = 0; // ignores an in-flight refetch a newer one has already superseded
@@ -223,8 +225,9 @@ export class OverlaysControl {
<li class="overlays-panel__item"></li>
<li class="overlays-panel__item overlays-panel__item--expandable"></li>
<li class="overlays-panel__item"></li>
<li class="overlays-panel__item"></li>
`;
const [hillshadeItem, wikiItem, radarItem, shadowItem, contourItem, hikingTrailsItem, liveItem] = list.children;
const [hillshadeItem, wikiItem, radarItem, shadowItem, contourItem, hikingTrailsItem, liveItem, npsItem] = list.children;
this._hillshade.mount(hillshadeItem);
this._mountWiki(wikiItem);
this._radar.mount(radarItem);
@@ -232,6 +235,7 @@ export class OverlaysControl {
this._contour.mount(contourItem);
this._hikingTrails.mount(hikingTrailsItem);
this._live.mount(liveItem);
this._nps.mount(npsItem);
onlyOneSidePanelOpen(this._panel, () => this._icon.classList.remove("active"));