610 lines
28 KiB
Plaintext
610 lines
28 KiB
Plaintext
= National Park Service mapping resources
|
||
:toc:
|
||
:toclevels: 2
|
||
|
||
A reference for what's out there in the National Park Service's mapping
|
||
ecosystem: what this app has actually adopted, what was investigated and
|
||
deliberately skipped, and the licensing/provenance details behind each.
|
||
Kept as a knowledge base since NPS's tooling has repeatedly turned out to
|
||
be a better source than reinventing something from scratch — worth
|
||
checking here before searching from zero next time.
|
||
|
||
== What this app actually uses
|
||
|
||
[cols="1,2,1"]
|
||
|===
|
||
| What | Where | License
|
||
|
||
| `symbol-library` (map category icons, POI badge glyphs): all 307
|
||
symbols, browsable with search at `/symbols.html`
|
||
| `public/vendor/nps-symbols/` (from `bin/nps-symbols-sync.mjs`), used by
|
||
`public/js/icons.js`'s `POI_ICONS`/`PARK4NIGHT_TAGS`
|
||
| CC0 (public domain)
|
||
|
||
| `home-button` (the "Home" map control)
|
||
| `public/vendor/npmap-home-button/`
|
||
| MIT (per `package.json`); the whole `npmap5-plugins` repo is separately
|
||
public domain as a US government work
|
||
|
||
| Park Tiles color palette (shared offline + online basemap theme)
|
||
| `public/js/map_themes.js`'s `PARK_TILES_PATCH`
|
||
| Colors only — see <<park-tiles>> for why the actual tile service isn't used
|
||
|
||
| `overview` (top-right minimap/inset control)
|
||
| `public/vendor/npmap-overview/`
|
||
| MIT (per that branch's `package.json`); same public-domain repo as above
|
||
|===
|
||
|
||
See `docs/third-party-notices.adoc` for the formal vendored-library
|
||
notice and `docs/architecture.adoc` for how each is wired in.
|
||
|
||
== npmap5-plugins
|
||
|
||
https://github.com/nationalparkservice/npmap5-plugins — a monorepo of
|
||
MapLibre GL JS plugins built for NPS's current (v5) map stack. Live
|
||
demos: https://nationalparkservice.github.io/npmap5-plugins. More
|
||
examples/screenshots: issue
|
||
https://github.com/nationalparkservice/npmap5-plugins/issues/7[#7].
|
||
|
||
=== On `main` (stable, what we've pulled from)
|
||
|
||
[cols="1,3"]
|
||
|===
|
||
| Plugin | What it is
|
||
|
||
| `symbol-library`
|
||
| The icon set — see above. Confirmed by the maintainer
|
||
(issue https://github.com/nationalparkservice/npmap5-plugins/issues/4[#4])
|
||
to be the designated replacement for the older standalone
|
||
`nationalparkservice/symbol-library` repo, with a much larger
|
||
vocabulary (300+ icons vs. the ~200 in the old repo).
|
||
|
||
| `home-button`
|
||
| Adopted, see above.
|
||
|
||
| `svg-icons`
|
||
| *Considered, not adopted.* Solves the same "recolor an icon at
|
||
render time" problem we hit and fixed ourselves this session (see
|
||
`docs/architecture.adoc`'s note on `_registerCategoryGlyphs` — SDF
|
||
images need an actual distance field, not a plain antialiased
|
||
raster, or edges blur). Its approach is more general (lazy,
|
||
on-demand recoloring via a `styleimagemissing` listener and a
|
||
query-string-encoded `icon-image` id, vs. our upfront
|
||
per-distinct-color registration) but swapping in ~800 lines of
|
||
unfamiliar third-party logic for something already working and
|
||
understood wasn't a clear win — no bug it would fix, no capability
|
||
we're missing.
|
||
|
||
| `interactivity`
|
||
| Not investigated in depth — "makes interactivity easier with
|
||
MapLibre GL JS". Our own click/hover handling (`gpx.js`) is already
|
||
small and specific to this app's needs.
|
||
|
||
| `maplibre-gl-vector-text-protocol`
|
||
| Loads KML/GPX/TopoJSON/OSM directly into MapLibre client-side. Not
|
||
a fit: our GPX/FIT handling is server-side
|
||
(`lib/maptool/gpx.rb`/`fit.rb`) specifically so we can compute
|
||
track stats, POI category styling, clustering, etc. — a generic
|
||
client-side loader wouldn't give us any of that.
|
||
|
||
| `markdown-handlebars`
|
||
| *Considered, not adopted.* Renders Markdown-with-`{{handlebars}}`
|
||
as HTML. Our waypoint popup content isn't Markdown — it's
|
||
park4night's own semi-structured text format (`formatDescription`
|
||
in `gpx.js` parses `Label: value` lines and turns Services/
|
||
Activities into icon tags) — a generic templater would replace the
|
||
wrong layer of that logic, and would mean trusting a new,
|
||
unaudited HTML-rendering path for untrusted (uploaded-file) content
|
||
in place of our already-reviewed escaping.
|
||
|
||
| `source-arcgis-rest`, `source-wms`
|
||
| Add ArcGIS REST / WMS raster layers as MapLibre sources. No current
|
||
need — we don't have an ArcGIS or WMS data source to point at. `wms`
|
||
explicitly noted by the user as maybe useful in the future.
|
||
|===
|
||
|
||
=== On unmerged feature branches (less vetted — not on `main` yet)
|
||
|
||
`overview` (branch `maplibre-gl-overview`) has since been adopted —
|
||
see "What this app actually uses" above and
|
||
`docs/architecture.adoc`'s control-stack section. Live demo (as
|
||
upstream ships it, unpatched):
|
||
https://raw.githack.com/nationalparkservice/npmap5-plugins/maplibre-gl-overview/examples/index.html.
|
||
Note: MapLibre GL JS has no first-party minimap of its own — this
|
||
isn't more "official" than any other third-party minimap plugin, just
|
||
NPS-flavored.
|
||
|
||
[cols="1,3"]
|
||
|===
|
||
| Plugin | What it is
|
||
|
||
| `carto` (branch `maplibre-gl-carto-source`)
|
||
| Adds a vector-tile source backed by Carto.com-hosted data. Only
|
||
useful if we actually have a Carto-hosted dataset to point at — we
|
||
don't right now.
|
||
|
||
| `wms` (branch `maplibre-gl-wms-source`)
|
||
| WMS raster layer source. Noted by the user as possibly handy later;
|
||
no current use case.
|
||
|===
|
||
|
||
=== Symbol artwork: the 2024 revision branch
|
||
|
||
https://github.com/nationalparkservice/symbol-library/pull/226 ("npmap-hfc
|
||
standardization 2024", branch `jakecoolidge-revision-2024`) is the newest
|
||
artwork (May 2024), newer than npmap5-plugins' copy (December 2023) and a
|
||
superset of it: 307 standalone symbols vs. 305, adding `wifi`, `toilet`,
|
||
`e-bike`, `diesel`, `stargazing`, `snowshoeing`, `food-storage`, … and
|
||
renaming a few (`motor-bike-trail` → `motorbike-trail`). The PR is still
|
||
open, but it is where the artwork lives now, so `bin/nps-symbols-sync.mjs`
|
||
vendors every `src/standalone/*-black-22.svg` from a pinned commit of that
|
||
branch. To update: change `REF` there and run it.
|
||
|
||
Locus Map's "NPS Map Symbols" packs (https://dfgtec.com/map-nps-symbols)
|
||
are ~250 of the same NPS symbols as PNGs under CC BY-NC-SA; the CC0 SVG
|
||
source above is both larger and freer.
|
||
|
||
[[park-tiles]]
|
||
== Park Tiles (the NPS basemap theme)
|
||
|
||
https://www.nps.gov/maps/web/tools/park-tiles/ — the data and cartography
|
||
system behind NPS's own web maps. Documentation:
|
||
https://www.nps.gov/maps/web/tools/npmapjs/index.html (the wider NPMap
|
||
code library docs), legend:
|
||
https://www.nps.gov/maps/web/tools/park-tiles/legend/index.html, symbols:
|
||
https://www.nps.gov/maps/web/tools/park-tiles/pictographic-symbols/index.html.
|
||
|
||
=== Design lineage
|
||
|
||
Explicitly traces back to the National Park Service's iconic print
|
||
brochure maps produced at the Harpers Ferry Center — the Park Tiles team
|
||
consulted HFC cartographers directly, adapting the same visual language
|
||
for digital display. This is also the design lineage behind the
|
||
`Unigrid` system (Massimo Vignelli's 1970s NPS brochure/signage
|
||
template), one of the most respected government design programs.
|
||
|
||
=== The four style variants
|
||
|
||
* *Standard* — the default; used in the NPS mobile app and most of
|
||
nps.gov.
|
||
* *Aerial* — integrates an imagery underlay.
|
||
* *Slate* — dark grey, lets overlay data stand out; also deliberately
|
||
chosen to work well for low-vision users with inverted browser color
|
||
settings.
|
||
* *Light* — another neutral choice for data-overlay contexts.
|
||
|
||
=== Why we can't use the actual tile service
|
||
|
||
Their basemap data pipeline blends NPS's own enterprise GIS data
|
||
(roads/trails/buildings/parking/POIs/boundaries) with USGS/Census federal
|
||
data and, for context outside park boundaries (streets, coastlines,
|
||
buildings, terrain/hillshade), **OpenStreetMap data pre-processed by
|
||
Mapbox as part of their commercial Atlas service** — a paid,
|
||
non-sublicensable data license scoped to NPS's own use. Separately, the
|
||
cartography is explicitly designed for park visitors (trailhead/park-unit
|
||
labeling prioritized), not general-purpose worldwide mapping. Both are
|
||
why this app uses OpenFreeMap Liberty as its actual basemap, not Park
|
||
Tiles — see `docs/architecture.adoc`'s "Offline maps" section.
|
||
|
||
Recreating the *color choices* is a different matter — not the kind of
|
||
thing a data license restricts — and is what `PARK_TILES_PATCH` in
|
||
`public/js/map_themes.js` actually does (see `docs/architecture.adoc`).
|
||
Its colors come from the Standard style's legend swatches
|
||
(`nps.gov/maps/web/img/legend/*-standard.png`, small rendered map
|
||
crops — sampled pixel by pixel): land `#F7EEE8`, NPS unit area a flat
|
||
sage `#CED2B7`, boundary `#779238`/`#8BA35A` with a `#B2C294` tint band,
|
||
water `#B5D0DE`, primary road `#F8ECBE` cased `#8F867A`, secondary
|
||
`#F9F9F6`, local `#F5F3E5`, trails dashed `#8E827B`, buildings
|
||
`#E7E4D5`/`#C1A88B`.
|
||
|
||
=== Public style JSON (source for the real colors we did pull)
|
||
|
||
Of Park Tiles' four variants, only *Imagery* is served from a plain,
|
||
unauthenticated URL:
|
||
|
||
https://www.nps.gov/lib/npmap.js/style/ck72fwp2642dv07o7tbqinvz4.json
|
||
|
||
("Park Tiles 4 Imagery", 129 layers — a genuine Mapbox/MapLibre style
|
||
spec, found via `npmap.js`'s own bundled `baselayers.json` config.)
|
||
*Standard*, *Slate*, and *Light* resolve through Mapbox Studio's private
|
||
Styles API using an access token instead (`style_id`s below) — visible in
|
||
`npmap.js`'s own bundle, but not something to fetch using someone else's
|
||
embedded credentials, even when technically reachable:
|
||
|
||
[cols="1,1"]
|
||
|===
|
||
| Variant | Mapbox Studio `style_id`
|
||
|
||
| Standard
|
||
| `ck58pyquo009v01p99xebegr9`
|
||
|
||
| Slate
|
||
| `ck5cpvc2e0avf01p9zaw4co8o`
|
||
|
||
| Light
|
||
| `ck5cpia2u0auf01p9vbugvcpv`
|
||
|===
|
||
|
||
The Imagery style sits over satellite imagery, so it has no landcover
|
||
fills and white labels — useful for road/trail/boundary colors and label
|
||
hierarchy, not for the land itself; those came from the legend swatches
|
||
above. (Its `#b3e378` is the park *point* color, which an earlier palette
|
||
mistakenly used as the park area fill.)
|
||
|
||
=== Legend / cartographic hierarchy
|
||
|
||
The legend page documents NPS's own road/trail classification standard
|
||
(primary/secondary/local/4WD/private/service roads; conventional/paved/
|
||
boardwalk trails; public/private buildings), each shown across all four
|
||
variants. Keyed to NPS's internal "NPS geospatial data standard for
|
||
roads," not OSM's `highway=*` tagging scheme — informative as design
|
||
reference, not directly portable onto our OSM-derived data without
|
||
reinterpreting the mapping ourselves.
|
||
|
||
== Typography & editorial standards
|
||
|
||
Part of the NPS graphic identity, alongside Park Tiles — noted for
|
||
completeness, but not adoptable and not directly relevant to this app's
|
||
own work (a map viewer, not a publisher of NPS-branded content):
|
||
|
||
* *Typefaces*: the standards specify two — *NPS Rawlinson* (licensed to
|
||
NPS by its creator, Terminal Design) and *Frutiger* (licensed from
|
||
Adobe Systems). Both proprietary/commercially licensed, unlike the
|
||
fonts this app already vendors (Noto Sans, SIL OFL — see
|
||
`docs/third-party-notices.adoc`) — not something to pull in.
|
||
* *A genuinely open alternative*: https://github.com/national-park-service/fonts
|
||
— despite the org name, its own `DISCLAIMER.md` is explicit that this
|
||
is an **independent, unofficial** project, "not affiliated with,
|
||
endorsed by, or sponsored by" NPS, and that its six typefaces (NPS
|
||
2026, Redwood Serif, Campmate Script, NPS Symbols, Sequoia Sans,
|
||
Switchback) are original works "inspired by" public-lands signage —
|
||
explicitly *not* reproductions of Rawlinson or anything NPS actually
|
||
owns. SIL OFL 1.1 licensed, same family of license as the fonts this
|
||
app already vendors. Unlike Rawlinson/Frutiger above, this one's
|
||
actually usable if the NPS-inspired look is ever wanted in this app's
|
||
own UI chrome (currently plain system fonts, `public/css/style.css`) —
|
||
no current use case, but no licensing blocker either, worth
|
||
remembering if that comes up.
|
||
* *Another open alternative, for display use*: https://nationalparktypeface.com[National Park]
|
||
— a separate, unrelated project (Ben Hoepner, Andrea Herstowski, Jeremy
|
||
Shellhorn / DO Studio), also SIL OFL licensed, also original ("inspired
|
||
by" park signage, not a Rawlinson reproduction). Ships as variable
|
||
`.ttf`, `.woff`/`.woff2`, and `.otf` — self-hostable via `@font-face`
|
||
the same way. Where it differs from Sequoia Sans above: it's a
|
||
router-carved-signage *display* face (the chunky all-caps look of
|
||
actual trailhead signs), not a general body/UI sans — best fit would be
|
||
a wordmark/heading use (e.g. the topbar's "MAPTOOL" text) alongside a
|
||
more legible sans for body copy, not a full typeface swap. Now used for
|
||
exactly that: `.topbar__brand` only (`public/css/style.css`), Bold
|
||
weight vendored under `public/vendor/national-park-typeface/` — see
|
||
`docs/third-party-notices.adoc`. Body copy elsewhere still plain system
|
||
fonts, unchanged.
|
||
* *Hawaiian typography*: NPS Rawlinson includes vowels with Hawaiian
|
||
macrons (ā, ē, ī, ō, ū) and the okina (ʻ); the regular weight of
|
||
Frutiger doesn't, so NPS uses a separate "HFrutiger" weight for
|
||
Hawaiian-language text in official materials.
|
||
* *Editorial style guide*:
|
||
https://www.nps.gov/subjects/hfc/hfc-editorial-style-guide.htm — HFC's
|
||
writing/terminology conventions (capitalization, place names,
|
||
Spanish-language guidance, disability language, etc.), built on top of
|
||
the Chicago Manual of Style, AP Stylebook, and GPO Style Manual. A
|
||
content style guide for NPS's own written materials, not a design/code
|
||
resource — included here only because it was shared alongside the
|
||
typography notes above.
|
||
|
||
== Arrowhead (shield) logo colors
|
||
|
||
Unrelated to anything this app renders — noted here only because it came up
|
||
in conversation (wanting exact colors to 3D-print the NPS arrowhead) and
|
||
this doc is already the dumping ground for NPS-ecosystem color/graphic-identity
|
||
facts. Per NPS's own graphic identity standards (Harpers Ferry Center), the
|
||
arrowhead uses three official Pantone spot colors plus white:
|
||
|
||
[cols="2,2,1,1"]
|
||
|===
|
||
| Element | Pantone | Hex (converted) | Nearest RAL Classic
|
||
|
||
| Mountain
|
||
| Dark Rust, PMS 1615 C
|
||
| `#8b4720`
|
||
| RAL 2013 Pearl orange (`#923E25`)
|
||
|
||
| Sky
|
||
| Medium Rust, PMS 1605 C
|
||
| `#a65523`
|
||
| RAL 8023 Orange brown (`#A45729`)
|
||
|
||
| Trees / grass
|
||
| Dark Green, PMS 553 C
|
||
| `#284734`
|
||
| RAL 6012 Black green (`#2F3D3A`)
|
||
|
||
| Bison, lake, snowfield, type
|
||
| White
|
||
| `#ffffff`
|
||
| RAL 9016 Traffic white (`#F1F1EA`) — RAL has no pure white
|
||
|===
|
||
|
||
Hex values are third-party Pantone→RGB conversions, not something NPS
|
||
publishes directly (their style guide only specifies PMS codes). RAL codes
|
||
are the closest match by RGB distance against the RAL Classic chart — same
|
||
caveat, not an official NPS-endorsed mapping, just the nearest available
|
||
code for filament/paint shopping. Source: NPS Graphic Identity and Style
|
||
Guides (https://www.nps.gov/subjects/hfc/nps-graphic-identity-and-style-guides.htm),
|
||
FAQs About Arrowhead Artwork
|
||
(https://www.nps.gov/subjects/hfc/faqs-about-arrowhead-artwork.htm). Use of
|
||
the arrowhead symbol itself is controlled by law/regulation/policy — see
|
||
the FAQ page before printing/distributing anything bearing it.
|
||
|
||
== NPMap4 (the older, Leaflet-based generation)
|
||
|
||
https://www.nps.gov/lib/npmap.js/4.2.1/ — predecessor to npmap5,
|
||
Leaflet-based, MIT-licensed. Superseded but still live, and currently
|
||
*more feature-complete* than npmap5: v4 is one large, mature framework
|
||
(~87k lines, years of accumulated features — baselayer presets, a
|
||
geocoder, popups, etc. all in one package), while npmap5 is a
|
||
still-in-progress rewrite split into small, independently-versioned
|
||
plugins (several still at `0.0.1-x`, pre-1.0), a few of which (`overview`,
|
||
`carto`, `wms`) aren't even merged to `main` yet — see above. v5 is the
|
||
direction NPS is migrating to, not (yet) a feature-for-feature
|
||
replacement; expect this gap to close over time, not to stay this way.
|
||
Three things worth noting from v4:
|
||
|
||
* *`infoboxControl`* — example:
|
||
https://www.nps.gov/lib/npmap.js/4.2.1/examples/basic/infobox.html. A
|
||
generic "click anything, show every raw property in a table" debug
|
||
view, kept separate from a dataset's own curated popup. *Adopted* — not
|
||
the code (Leaflet, not portable) but the concept: this app now has the
|
||
same thing as an Alt+click handler (see `docs/architecture.adoc`'s
|
||
"Debug inspector" section), showing `queryRenderedFeatures` results —
|
||
base map OSM tags included, not just this app's own layers.
|
||
* *Geocoder control* — example:
|
||
https://www.nps.gov/lib/npmap.js/4.2.1/examples/controls/geocoder-control.html.
|
||
Config is `geocoderControl: { searchPlaces: true }`: a search box that
|
||
resolves NPS park units by name/unit code, or a street address, or
|
||
raw coordinates, and jumps the map there. The concept (type a
|
||
place/address/coordinates, jump to it) is genuinely transferable and
|
||
not NPS-specific — could be built for this app with any geocoder (e.g.
|
||
OSM's free Nominatim), independent of anything NPS. Not implemented;
|
||
noted as a candidate feature if wanted later.
|
||
* Confirmed *not* a source for basemap tiles we could use — same
|
||
`nps-parkTiles*` naming and same underlying Mapbox Atlas-licensed data
|
||
pipeline as npmap5's Park Tiles (see <<park-tiles>>).
|
||
|
||
== Data tooling (not adopted)
|
||
|
||
https://github.com/nationalparkservice/national-dataset-query — a
|
||
Node.js *CLI tool*, not a browser library (different category from
|
||
everything else in this doc): pulls data from ArcGIS/ESRI REST endpoints
|
||
and converts it to GeoJSON/GeoJSONSeq/GeoPackage. Would only be relevant
|
||
if we ever wanted to bake a specific ArcGIS-hosted dataset into an
|
||
offline extract — the same role `data/offline.pmtiles` already plays for
|
||
OSM-derived data, just a different source. No current need, and unlike
|
||
everything else in this doc (CC0, BSD, MIT, public domain) this repo has
|
||
**no `LICENSE` file at all** — its terms are genuinely unclear, so treat
|
||
that as a blocker too, not just "no use case yet."
|
||
|
||
=== NPS Data API (developer.nps.gov)
|
||
|
||
A separate thing from the tile/Park Tiles service above — a general
|
||
government open-data API (parks, alerts, campgrounds, places, ... —
|
||
official docs: https://www.nps.gov/subjects/developer/api-documentation.htm,
|
||
a JS-rendered Swagger UI that doesn't render via a plain fetch; a free
|
||
API key from that same page is required to call it). No current use
|
||
case (this app isn't NPS-park-specific — park4night POIs and personal
|
||
GPX/FIT tracks, not NPS units), but it's the legitimate, non-Mapbox-Atlas
|
||
government data source behind it, worth remembering if a "show nearby
|
||
NPS park info/alerts" feature ever comes up — the `wms`/`source-arcgis-rest`
|
||
npmap5-plugins entries above would be the MapLibre-side plumbing for it.
|
||
Two hobby projects (both MIT, not NPS-affiliated, not directly reusable
|
||
as libraries — noted only as real-world examples of consuming this API)
|
||
turned up while looking at this:
|
||
|
||
* https://github.com/carlknutson/nps-changes-site — a React/Leaflet
|
||
explorer for all NPS sites, most fields sourced from this API
|
||
(supplemented by manual/AI-assisted research for fields the API
|
||
doesn't have), data refreshed daily via GitHub Actions rather than
|
||
called live.
|
||
* https://github.com/seankelliher/us-national-parks-alerts — a
|
||
Vue + Express directory of park alerts, pulled live through this API.
|
||
|
||
== The NPS mobile app's offline downloads
|
||
|
||
Investigated November 2026 from the Android app (`gov.nps.mobileapp`
|
||
2.16.0, native Kotlin + Mapbox Maps SDK): the APK pulled over `adb`,
|
||
strings read out of its `classes*.dex`, plus a Death Valley (`deva`)
|
||
offline download on a tablet. Nothing was decompiled or executed.
|
||
|
||
*There is no single offline bundle.* "Download Offline Content" queues
|
||
~20 separate per-park fetches and ticks each off in a Room table
|
||
(`ParkOfflineStorage`: `parkImagesStored`, `mapStored`, `placesStored`,
|
||
`campGroundsStored`, `autoToursAudioStored`, `roadClosuresStored`, …).
|
||
Photos and audio land in
|
||
`/sdcard/Android/data/gov.nps.mobileapp/files/.NPS/{images,audio}/<park>/`.
|
||
The map and API data go to app-private storage (not readable without
|
||
root). Where it comes from:
|
||
|
||
[cols="2,3,2"]
|
||
|===
|
||
| What | Source | Usable?
|
||
|
||
| Park content: places, campgrounds, visitor centers, things to do,
|
||
tours, amenities, road events, passport stamps, webcams
|
||
| `developer.nps.gov/api/v1/` — the public NPS Data API (see "NPS Data API" above)
|
||
| Yes. The app embeds its own key; use ours / the MCP instead
|
||
|
||
| App config, tours, timelines, transit, brochure-map index
|
||
| `www.nps.gov/external-resources/mobile/*.json` (e.g.
|
||
`tours/{parkCode}.json`, `transit.json`, `brochure-maps.json`),
|
||
`www.nps.gov/external-resources/timelines/{parkCode}.json`
|
||
| Yes, plain public JSON
|
||
|
||
| Audio-described tours
|
||
| `www.nps.gov/external-resources/audio-described-tours/{parkCode}_IEM.zip`
|
||
| Public
|
||
|
||
| Trails
|
||
| `www.nps.gov/external-resources/mobile/trails/{parkCode}/data.json`
|
||
| 404 for deva/yell/grca/yose/zion — only a few parks so far
|
||
|
||
| Basemap
|
||
| Mapbox offline region of the Park Tiles styles
|
||
(`mapbox://styles/atlas-user/ck58pyquo009v01p99xebegr9` Standard,
|
||
`…/ck5cpvc2e0avf01p9zaw4co8o` Slate) with the app's token
|
||
| No — same Mapbox Atlas licensing as <<park-tiles>>
|
||
|
||
| Yellowstone live roads
|
||
| `carto.nps.gov/user/nps-yell/api/v2/sql?format=geojson&q=…`
|
||
(`roads`, `road_construction`, `road_snowplows`, `road_incidents`,
|
||
`road_statuses`)
|
||
| Public GeoJSON, but Yellowstone only
|
||
|
||
| Site geometries
|
||
| `central.nps.gov/data/api/v1/sites/…`
|
||
| No — 401, internal
|
||
|
||
| `nps-one-mobile.s3.amazonaws.com`
|
||
| Only `safety-notifications.json` and `ar-wip.json`
|
||
| Nothing of interest
|
||
|===
|
||
|
||
=== Worth taking
|
||
|
||
* *Georeferenced brochure maps* (`brochure-maps.json`, also bundled in
|
||
the APK's `assets/`): 289 Harpers Ferry Center park maps for 219 parks,
|
||
each with pixel `size`, a GDAL-style `geoTransform` and `proj4` (Web
|
||
Mercator) — i.e. ready to drop onto the map as a raster `image`
|
||
source. Public domain as NPS works. `npgallery/GetAsset/{assetID}` is
|
||
the original print PDF (deva: 205 MB); the app downloads a smaller
|
||
raster (`fileSize`, deva: 20 MB) from somewhere under
|
||
`external-resources/mobile-brochure-maps/` whose exact filename
|
||
pattern isn't visible in the strings — needs a decompiler (jadx) to
|
||
pin down.
|
||
* *Park boundaries*: `assets/optimized-park-boundaries.sqlite` in the
|
||
APK, 3758 rows (`park_code`, bbox, center/radius, `polygon_data`
|
||
blob) with an R-tree index.
|
||
* *POIs from the Data API*: campgrounds come with coordinates, site
|
||
counts, water/toilets/dump station/RV flags, fee, reservation link and
|
||
current status text — maps straight onto our POI + park4night-style
|
||
tags. deva returns 12.
|
||
|
||
=== Getting the data without our own key
|
||
|
||
The home MCP server (`cyanheads/national-parks-mcp-server`, deployed
|
||
from `home-gitops`, key held there as a Gitea secret) is enough for
|
||
pulling data. It only wraps parks, campgrounds, alerts, events and
|
||
activities, though — not `places`, `visitorcenters` or `thingstodo`,
|
||
which the app also uses. Covering those would need a key of our own
|
||
(free, https://www.nps.gov/subjects/developer/get-started.htm) or
|
||
extending the MCP.
|
||
|
||
== HFC map standards: Unigrid starter maps and symbol sheet
|
||
|
||
Entry point: https://www.nps.gov/subjects/gisandmapping/starter-maps.htm
|
||
(HFC's "Starter Maps" page — the starter maps below and the symbol sheet are
|
||
linked from there; the wider map catalog is
|
||
https://www.nps.gov/subjects/gisandmapping/nps-maps.htm).
|
||
|
||
The full NPS map catalog (NPGallery collection "HFC Cartography", ~960 maps,
|
||
mirrored in `~/Projects/NPS_Maps/npgallery-maps.json`) also holds Harpers
|
||
Ferry Center's own production templates — public domain like the maps, each a
|
||
ZIP of Adobe Illustrator files (`.ai` is PDF-compatible: `pdftoppm` renders
|
||
it, `pdftotext` reads it, and the swatch palette sits as plain XMP
|
||
`<xmpG:swatchName>` entries inside). Downloaded and rendered to PNG under
|
||
`~/Projects/NPS_Maps/starter-maps/`:
|
||
|
||
[cols="2,3"]
|
||
|===
|
||
| Asset | What's in it
|
||
|
||
| Unigrid Waysides starter map
|
||
(`aeb8eaba-a260-4928-8b27-62ebe1ef1fee`)
|
||
| *"Standard Map Elements for Maps on Wayside Exhibits and Signs" (2006)* —
|
||
the spec sheet: linework (width, dash pattern, CMYK for every line type),
|
||
environment color families, NPS pictograms, scale bars, north arrows, road
|
||
shields, tour stops, "You Are Here" flags, locator symbols. Plus a starter
|
||
map with the named swatches
|
||
|
||
| Unigrid Area / A-width / B-width brochure starter maps
|
||
(`163a73b8-…`, `7eee590a-…`, `4bb3b9f0-…`)
|
||
| Brochure-format starter maps carrying the same 16 named swatches (the
|
||
Area one renders blank — content on hidden layers)
|
||
|
||
| Map Symbols — Harpers Ferry Center (`cd253093-6813-471e-9d16-042c2a373a97`)
|
||
| "NPS Map Symbols: Updated June 2026" — one sheet, ~270 symbols in 16
|
||
groups, positive and negative versions. By name it's the same set as the
|
||
307 we vendor (symbol-library 2024 revision) — only "Hiking" has no
|
||
same-named counterpart in ours. Side-by-side artwork comparison:
|
||
`~/Projects/NPS_Maps/symbols-compare.py` crops each symbol off the sheet
|
||
(located by its label's `pdftotext -bbox-layout` box) next to our
|
||
vendored SVG → `symbols-compare/index.html`
|
||
|===
|
||
|
||
=== Linework (from the 2006 spec)
|
||
|
||
Widths are print points on a 22×34 in sheet — relationships matter more than
|
||
absolute values. CMYK as `C/M/Y/K`; hex is a naive conversion (on screen the
|
||
printed colors read more muted).
|
||
|
||
[cols="2,3"]
|
||
|===
|
||
| Line | Spec
|
||
|
||
| Limited-access highway | 6 pt 60% black, 9 pt case 90% black
|
||
| Primary road | 7 pt 60% black
|
||
| Secondary road | 5 pt 60% black
|
||
| Unpaved road | 2.5 pt `0/0/20/60` (`#666652`)
|
||
| 4-wheel-drive road | 2.5 pt `0/0/20/60`, 20 pt dash / 2 pt gap
|
||
| Street grid | 2 pt white
|
||
| Parking area | 60% black
|
||
| Locked gate / overpass ticks | 2 pt 100% black
|
||
| Drainage | 3 pt `25/5/0/35` (`#7c9da6`)
|
||
| Intermittent drainage | 3 pt round caps `25/5/0/35`, 18 dash / 8 gap / 1 dash / 8 gap / 1 dash / 8 gap
|
||
| Waterfall | three parallel 3 pt ticks `25/5/0/35`
|
||
| Dam / ford / lock | 2 pt tick / two ticks / chevron pointing upstream, black
|
||
| Ferry route | 2 pt `33/15/0/50` (`#556c80`), 30 dash / 5 gap
|
||
| Trail | 3 pt in the trail color, 9 dash / 4 gap
|
||
| Tour route | colored line replacing the road, `80/0/80/40` (`#1f991f`), optional arrow
|
||
| Steep trail | 2 pt chevron pointing uphill, black
|
||
| National scenic trail | 3 pt `80/0/80/40`, 9 dash / 4 gap
|
||
| Railroad | 2 pt solid 60% black + 15 pt ticks (2 dash / 28 gap)
|
||
| Distance indicator | 12 pt Frutiger 55 Roman
|
||
|===
|
||
|
||
Trail colors: yellow 100%, black 100%, green `80/0/80/40`, red `0/100/100/50`,
|
||
white.
|
||
|
||
=== Color families (from the 2006 spec)
|
||
|
||
"Climatic or topographic swatch families" for subject-area fills or
|
||
background — pick one family per map, any shade; all linework is designed to
|
||
work with every family:
|
||
|
||
[cols="1,3"]
|
||
|===
|
||
| Family | Shades (light → dark)
|
||
|
||
| Green Forested | `30/15/30/00` `#b2d9b2`, `40/25/40/00` `#99bf99`, `50/35/50/00` `#80a680`
|
||
| Urban or Alpine | `00/02/04/19` `#cfcac6`, `00/03/06/25` `#bfbab4`, `00/04/09/38` `#9e9890`
|
||
| Desert or Beach | `00/02/12/15` `#d9d4bf`, `00/04/18/22` `#c7bfa3`, `00/06/28/34` `#a89e79`
|
||
| Glacial / Arctic | `03/02/00/02` `#f2f5fa`, `08/03/00/04` `#e1edf5`, `12/05/00/07` `#d1e1ed`
|
||
| Volcanic | `08/20/21/09` `#d5bab7`, `11/30/30/13` `#c59b9b`, `16/44/44/20` `#ab7272`
|
||
| Drainage & open water | `25/05/00/00`, `25/05/00/20`, `25/05/00/35`
|
||
| Other-subject area (outside the park) | `00/00/05/05`, `00/07/11/00`, `06/10/10/00`, `08/05/10/00`, `05/07/18/00`, `07/07/05/00`
|
||
|===
|
||
|
||
The starter maps' named swatches (newer than the 2006 sheet, same in all
|
||
four): Non-subject area `3/6/10/0` (`#f7f0e6`), NPS area `4/2/5/0`
|
||
(`#f5faf2`), Open water `40/16/0/15` (`#82b6d9`), Drainage & spring
|
||
`50/20/0.5/20`, Pk bdy `40/20/30/5` (`#91c2aa`), Pk bdy ribbon & name
|
||
`24/12/20/4` (`#bad7c4`), Park name `35/15/25/10`, Roads `0/50/40/30`
|
||
(`#b2596b`), Trail lines & distance labels `70/0/60/60` (`#1f6629`),
|
||
Unmaintained trail `20/50/100/15` (`#ad6c00`), Hydro type `70/30/0.5/30`,
|
||
Call-out box `60/0/50/50`, Red notes `0/70/56/50`, NPS Green `80/0/80/40`.
|
||
|
||
These are print (brochure/wayside) standards, a different system from the
|
||
web Park Tiles palette in <<park-tiles>> — but the same lineage, and a sourced
|
||
basis for things like the TODO's "custom vector style using the NPS color
|
||
palette" (environment families → landcover by region, linework → road/trail
|
||
hierarchy, Unmaintained trail → tracks).
|