8.2 KiB
Third-party notices
Frontend libraries vendored under public/vendor/ instead of loaded
from a CDN, so the app keeps working with no internet access. All are
BSD-3-Clause licensed.
| Library | Version | Source |
|---|---|---|
MapLibre GL JS |
|
|
pmtiles (pmtiles.js) |
|
|
maplibre-contour (Overlays panel’s "Contour lines", |
|
Also vendored under public/vendor/, but not BSD-3-Clause like the
above — MIT-licensed per its own package.json (the monorepo’s
top-level LICENSE.md separately places the whole repo in the public
domain as a work of the US government; either way, no attribution is
required):
| Library | Version | Source |
|---|---|---|
NPS Home Button ( |
0.0.1-d |
https://github.com/nationalparkservice/npmap5-plugins/tree/main/home-button |
NPS Overview Map ( |
5.0.1 |
https://github.com/nationalparkservice/npmap5-plugins/tree/maplibre-gl-overview |
The overview map is vendored from an unmerged branch, not main (see
docs/nps-resources.adoc), and converted from its UMD dist build to a
plain ES module — no functional change except the module wrapper. It
was also patched for a MapLibre API break: it reads map.transform
(public in the MapLibre ~2.4 this plugin targets) to relax the
overview’s polar pan limit, but MapLibre 6’s Map no longer exposes
.transform at all — guarded to skip that (cosmetic) adjustment
instead of throwing when it’s absent.
Also vendored under public/vendor/ — MIT-licensed, attribution
required (LICENSE included alongside):
| Library | Version | Source |
|---|---|---|
maplibre-gl-lanes (offline hiking trails, |
|
Also vendored under public/vendor/mdi/ — Apache-2.0 (LICENSE
included alongside): the Material Design Icons (@mdi/js, version in
package.json, https://github.com/Templarian/MaterialDesign-JS) that
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: 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):
| Library | Version | Source |
|---|---|---|
flag-icons (just the square |
|
Also vendored under public/vendor/ — BSD-2-Clause (© Vladimir
Agafonkin), LICENSE included alongside:
| Library | Version | Source |
|---|---|---|
SunCalc ( |
|
Offline map text labels need font glyphs too (see
docs/architecture.adoc), vendored under public/vendor/fonts/ —
SIL Open Font License, not BSD-3-Clause like the above:
| Asset | Source |
|---|---|
Noto Sans Regular/Italic/Medium glyph PBFs (ranges |
protomaps/basemaps-assets
( |
National Park (Bold weight only, |
nationalparktypeface.com (Ben
Hoepner, Andrea Herstowski, Jeremy Shellhorn / DO Studio) — "published
for free use under the SIL Open Font License" per the site; no
|
The map style — OpenFreeMap
"liberty", built from OpenStreetMap
data — is used two ways (see docs/architecture.adoc): fetched live
at runtime for the "Online" layer, and as a one-time vendored snapshot
(public/vendor/liberty-style/liberty.json) that the "Offline" layer
repoints at local data instead. Its icon sprite is vendored the same
way, under public/vendor/liberty-sprite/ (ofm.json/ofm.png
@2x variants, from tiles.openfreemap.org/sprites/).
The Noto Sans glyphs and the Liberty style/sprite are pinned to git
commits (protomaps/basemaps-assets, hyperknot/openfreemap-styles) in
bin/assets-sync.mjs. Renovate bumps those pins and runs the script in
the same PR, so the new files arrive with it. A new openfreemap-styles
commit only triggers the sync, which then saves whatever style
tiles.openfreemap.org currently serves.
data/offline.pmtiles (lib/maptool/pmtiles_builder.rb’s in-app
regeneration, or the manual recipe in `docs/development.adoc) is
built at build time, not vendored, from
Geofabrik's per-country OpenStreetMap
extracts (ODbL). The region list itself,
lib/maptool/data/geofabrik_regions.geojson (names, paths and boundary
polygons), is vendored from Geofabrik’s index
(download.geofabrik.de/index-v1.json, OpenStreetMap-derived, ODbL) by
bin/geofabrik-regions-sync.mjs.
terrain.pmtiles (same regeneration mechanism) is extracted at build
time, not vendored, from Mapterhorn — a
Protomaps-affiliated project publishing pre-built Terrarium-encoded
terrain as PMTiles. Per-region source licenses vary (CC-BY-4.0 and
similar); see
their own attribution
list for the full provenance.
Offline routing runs Valhalla
(MIT) in its own container from Valhalla’s published image
(ghcr.io/valhalla/valhalla, version pinned in docker-compose.yaml),
over the same Geofabrik extracts (ODbL). See docs/routing-design.adoc.
public/can/esphome.eds, the CANopen object dictionary of
esphome-canopen nodes (the
CAN trace names SDO objects by it), is copied from
can2mqtt
(src/can2mqtt/eds/esphome.eds, commit 815ad0f, MIT or Apache-2.0,
© mrk-its). Updated by hand.
Not a frontend asset like the above, but also baked into this app’s own
Docker image (not a separate container the way kiwix-serve is —
see docs/deployment.adoc/docs/development.adoc): three CLI tools
lib/maptool/pmtiles_builder.rb shells out to for offline.pmtiles/
terrain.pmtiles regeneration.
| Tool | Version | License | Source |
|---|---|---|---|
go-pmtiles ( |
1.31.2 |
BSD-3-Clause |
|
Planetiler ( |
0.10.2 |
Apache-2.0 |
|
osmium-tool ( |
(Debian trixie’s packaged version) |
GPL-3.0 |
Versions of the npm-published libraries above (MapLibre GL JS, pmtiles,
maplibre-contour, maplibre-gl-lanes, flag-icons, SunCalc, Material Design Icons) are pinned in
package.json — the only thing it’s for, the app itself has no JS
build step. Renovate (renovate.json) opens a PR per bump and its
postUpgradeTasks run npm ci + node bin/vendor-sync.mjs, so the PR
already contains the new files under public/vendor/. By hand: edit
package.json, then npm install && node bin/vendor-sync.mjs.
The NPS plugins (patched, from an unmerged branch) and the National Park typeface (no versioned source) are still updated by hand.
go-pmtiles and Planetiler are pinned by PMTILES_VERSION/
PLANETILER_VERSION in the Dockerfile, which Renovate also bumps
(the # renovate: comments above them). osmium-tool tracks whatever
version Debian trixie currently packages, nothing to pin on this side.