Put two U.S. parks, monuments, forests or state parks side by side at the same scale. Map the places you've been, browse the field guide, and print them as art.
Serve this directory with a static HTTP server, then open index.html:
python3 -m http.server 8000Open http://localhost:8000. There is no package install or build step.
index.htmlandstyle.csshold the markup and all styling. Sandstone (light) and forest (dark) are two token sets at the top ofstyle.css.js/prefs.jsdrives the Aa menu.js/is plain ES modules.main.jsboots the app and routes by URL hash.data.jsloads and indexes places.plate.jsdraws the comparison plate and is shared by the compare view, place sheet and print art.usmap.jsis the clustered US map,guide.jsthe field guide,art.jsthe posters.fonts/holds the self-hosted Instrument Serif, Hanken Grotesk and OpenDyslexic files (OpenDyslexic's license sits beside it). Nothing loads from a third-party host.parks.jsonandshapes.jsonhold the 63 national parks.lands.jsonandland-shapes.jsonhold monuments, recreation areas, national forests, state forests and state parks, and load after first paint.us-states.jsonholds state outlines for the map.
The Aa button opens a menu for theme (system, sandstone, forest) and typeface. Both are saved on the device and applied by a small script in <head> before first paint, so there is no flash.
- Field guide is the default pairing, Instrument Serif with Hanken Grotesk.
- Classic is a conventional reading stack: a system book serif for names and system sans for text.
- OpenDyslexic loads only when chosen.
Classic and OpenDyslexic drop italics and shrink the display sizes through the --ital and --ds tokens, because Instrument Serif is far narrower than either. Posters and downloads keep the Field guide fonts whatever is chosen.
Metadata lives in the <head> of index.html: title, description, canonical URL, Open Graph and Twitter tags, and JSON-LD that ties the app to its author on jonathanrreed.com. The app is one URL (views use the hash), so sitemap.xml lists one page. Bump its lastmod when you ship. robots.txt allows search and refuses model-training crawlers, matching the personal site. Icons are favicon.svg, favicon.ico, apple-touch-icon.png and icon-192.png/icon-512.png for site.webmanifest. The canonical address is https://pw.jonathanrreed.com/. If it changes, update it in index.html, robots.txt, sitemap.xml and the JSON-LD. The old GitHub Pages address redirects there from a line in the inline script.
The site is static and runs on Cloudflare Pages (project parks-and-scale) at pw.jonathanrreed.com.
scripts/deploy.sh # stages only the served files, then runs wrangler pages deploy_headers sets security headers, a Content Security Policy and font caching. The policy allows the one inline script in index.html by its SHA-256 hash, so if you edit that script, recompute the hash and replace it in _headers:
python3 - <<'PY'
import re, hashlib, base64
html = open("index.html").read()
script = re.findall(r"<script>(.*?)</script>", html, re.S)[0]
print("sha256-" + base64.b64encode(hashlib.sha256(script.encode()).digest()).decode())
PYTo test the headers locally, run npx wrangler pages dev "$(scripts/stage.sh)".
rebuild_lands.py regenerates the land files from public boundary services.
python3 rebuild_lands.py # national forests, state forests, state parks
python3 rebuild_lands.py --federal # then add national monuments and NPS recreation areas
python3 rebuild_lands.py --states # state outlines for the US mapThe plain run replaces lands.json, so run --federal after it. The script writes next to itself.
National park acreage and visitor counts use 2023 NPS figures. Monument and recreation area outlines come from the NPS. Forest and state-park outlines use USFS administrative boundaries and USGS PAD-US. Small islands are omitted from rendered outlines. Marine national monuments and Buck Island Reef are left out, because PAD-US reports only their land area and the sizes would mislead. og.png is the social preview image. Use the maps for comparison, not precise boundary work.
Visited and saved places stay on the current device. This is not an official NPS, USFS, or USGS site.