All 307 NPS symbols (symbol-library 2024 revision, CC0) vendored by bin/nps-symbols-sync.mjs and browsable at /symbols.html; POI_ICONS maps every symbol by name plus the OsmAnd names, the note icon picker gets a filter, and only the glyphs a shown file uses get rasterized
This commit is contained in:
1 parent
6faabca93d
commit
085c14beca
10 files changed
+551
-279
No files matched your search
+8
-11
@@ -477,20 +477,17 @@ reaches a layer, rather than a `coalesce` in a style expression — see
|
||||
below for why. Unlike a pin, which has to anchor at its tip, the badge
|
||||
is centered directly on the coordinate with plain default anchoring,
|
||||
which also means the category-glyph layer on top needs no offset math:
|
||||
both layers just share the same center anchor at `[0, 0]`. A small
|
||||
curated icon set (`public/js/icons.js`'s `POI_ICONS`, covering the
|
||||
categories p4n2gpx actually uses, not an exhaustive OsmAnd icon set)
|
||||
both layers just share the same center anchor at `[0, 0]`. The icon set
|
||||
(`public/js/icons.js`'s `POI_ICONS`: every NPS symbol by its own name,
|
||||
plus the OsmAnd names p4n2gpx/Overpass POIs use mapped onto them)
|
||||
draws a white glyph on top of the badge for any waypoint whose `icon`
|
||||
matches a known key (filtered out entirely for anything else, so an
|
||||
unrecognized icon key just falls back to a plain colored badge rather
|
||||
than a broken/missing image warning). All seven glyphs are the National
|
||||
Park Service's own map symbols — pulled from
|
||||
`github.com/nationalparkservice/npmap5-plugins`'s bundled
|
||||
`symbol-library` (CC0-licensed, an actively-maintained monorepo that's
|
||||
the designated replacement for the same org's older standalone
|
||||
`symbol-library` repo, per its maintainer) — a professional,
|
||||
purpose-built icon set beats hand-drawing "fuel pump"/"picnic table"
|
||||
glyphs from scratch.
|
||||
than a broken/missing image warning). The glyphs are the National
|
||||
Park Service's own map symbols, all of them, vendored by
|
||||
`bin/nps-symbols-sync.mjs` (CC0, see `docs/nps-resources.adoc`) and
|
||||
browsable at `/symbols.html`. Only the ones a shown file uses get
|
||||
rasterized.
|
||||
+
|
||||
Both the badge and the glyphs are rasterized from their source SVGs
|
||||
(an `<img>` → `<canvas>` → `ImageData` round trip, since `map.addImage`
|
||||
|
||||
+16
-16
@@ -15,8 +15,10 @@ checking here before searching from zero next time.
|
||||
|===
|
||||
| What | Where | License
|
||||
|
||||
| `symbol-library` (map category icons, POI badge glyphs)
|
||||
| `public/js/icons.js`'s `POI_ICONS`/`PARK4NIGHT_TAGS`
|
||||
| `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)
|
||||
@@ -126,23 +128,21 @@ NPS-flavored.
|
||||
no current use case.
|
||||
|===
|
||||
|
||||
=== Pending upstream: symbol artwork revisions
|
||||
=== Symbol artwork: the 2024 revision branch
|
||||
|
||||
https://github.com/nationalparkservice/symbol-library/pull/226 ("npmap-hfc
|
||||
standardization 2024") — a large (169-file), still-*open*/unmerged artwork
|
||||
revision pass on the *old* standalone repo, open since January 2024. Of the
|
||||
icons this app actually uses, three have revised artwork proposed there:
|
||||
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.
|
||||
|
||||
* `bicycle-trail` (our `sport_cycling`/`vtt`)
|
||||
* `campground` (our `tourism_camp_site`)
|
||||
* `pets-on-leash` (our `animaux`)
|
||||
|
||||
Plus filename-only renames (e.g. `motor-bike-trail` → `motorbike-trail`,
|
||||
`sea-plane` → `seaplane`) and a handful of new icons not relevant to our
|
||||
current `PARK4NIGHT_TAGS` mapping (`e-bike`, `foraging-gathering`,
|
||||
`seaplane`, `toilet`, `windmill`). Deliberately *not* pulled in — it's an
|
||||
unmerged draft, could still change. Worth revisiting once it lands on
|
||||
`main` in whichever repo ends up canonical.
|
||||
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)
|
||||
|
||||
@@ -71,7 +71,10 @@ included alongside): the Material Design Icons (`@mdi/js`, version in
|
||||
`public/js/icons.js` uses for the app's own UI icons. Only the icons
|
||||
actually used are vendored, as `mdi.mjs`, generated by
|
||||
`bin/vendor-sync.mjs`. The point and park4night glyphs stay the
|
||||
National Park Service's (below).
|
||||
National Park Service's: `public/vendor/nps-symbols/`, CC0, generated by
|
||||
`bin/nps-symbols-sync.mjs` from
|
||||
https://github.com/nationalparkservice/symbol-library (branch
|
||||
`jakecoolidge-revision-2024`).
|
||||
|
||||
Also vendored under `public/vendor/` — MIT-licensed (© 2013 Panayiotis
|
||||
Lipiridis), attribution required (this notice satisfies that):
|
||||
|
||||
Reference in new issue
Block a user