# Map basemaps, 2026-12-01

> What two published OINK reading pages use and what small raster and vector tile experiments showed for PR 61.

---

LLMS index: [llms.txt](/llms.txt)

---

> [!NOTE] Dated, non-normative assessment
> This review recommends closing PR #61 as submitted and keeping its Canvas implementation as a prototype; the theme maintainers need not take over a rewrite. [PR #61](https://github.com/pgsty/oink/pull/61) · [Component contract](/docs/design/components/)

## Inputs and method {#inputs}

On 2026-12-01, the review compared OINK `15217bf` with PR head `3025c21`, counted closed `map` fences with named places and valid coordinates across travel-site revision `1fe5c43` (2026-11-29) by article and by language page, and inspected the rendered map figures on the published trek and biography pages. [Travel corpus](https://github.com/Vonng/vonng.com/tree/1fe5c43d966bafd9fbc24b92e9f36c96f872ad0f/content/trip) · [Theme baseline](https://github.com/pgsty/oink/blob/15217bf5aea5c6b5e72c64d35e790601ac13b303/assets/js/content-components.js#L531-L602) · [Reviewed patch](https://github.com/pgsty/oink/commit/3025c2170c313fe36cc420a885971c53c69852b8)

Two small PMTiles v3 archives were served with Go CLI 1.31.2: at z1 one archive held solid and transparent PNGs, the other held a water polygon and an empty vector layer, and both left one tile coordinate missing. Chromium 158.0.8127.18 was used to compare missing tiles, empty 503 responses, and HTML 503 responses, and to activate a 144-byte multilingual vector tile by keyboard. [Archive format](https://github.com/protomaps/PMTiles/blob/3b10e67edb65c6b04549f74c0279cef8328d859c/spec/v3/spec.md) · [Go server](https://github.com/protomaps/go-pmtiles/blob/v1.31.2/pmtiles/server.go#L338-L428) · [PR runtime](https://github.com/ringsaturn/oink/blob/3025c2170c313fe36cc420a885971c53c69852b8/assets/js/content-components.js#L531-L623)

## What readers use {#reading-pages}

Maps appeared in 23 of 26 trips (34 of 38 language pages), and all 64 fences came from a single site. In the Gamagou trek article, 14 trek stops, 8 viewpoints, and 6 approach stops help readers orient photographs; reading the pass around Xiaowu La—whose stated elevation comes from the author—depends on a legible trail and contour lines. Feng Zhenbiao's biography uses four linked places to jump to the corresponding life chapters. Both pages use raster tiles. [Trek maps](https://vonng.com/trip/2018-gamagou/#photo-map) · [Trip configuration](https://github.com/Vonng/vonng.com/blob/1fe5c43d966bafd9fbc24b92e9f36c96f872ad0f/hugo.yaml#L130-L137) · [Biography](https://fzb.vonng.com/bio/#route)

The Kyoto and Taipei screenshots came from PR previews. Although Xue's weather app uses multilingual vector maps, its English-only OINK documentation contained no `map` fences across the 35 Markdown files examined, leaving demand for switching basemap labels on a reading page unmeasured. [Previews](https://github.com/pgsty/oink/pull/61) · [Weather app](https://github.com/ringsaturn/xue/blob/7a8a2d1f9ac887d0b0605ca27571d14a97efb5cb/web/src/map/basemap.ts#L153-L179) · [Docs configuration](https://github.com/ringsaturn/xue/blob/7a8a2d1f9ac887d0b0605ca27571d14a97efb5cb/site/hugo.yml) · [Inspected documents](https://github.com/ringsaturn/xue/tree/7a8a2d1f9ac887d0b0605ca27571d14a97efb5cb/docs)

## What the tile experiments showed {#tile-results}

OINK draws markers and routes with Leaflet 1.9.4, and `loading: click` defers both engine and tile requests until a reader clicks. Licensed HTTPS raster XYZ tiles—including separate dark tiles—already work out of the box, and an existing tile server can expose regional raster PMTiles as XYZ; in the Go test, cropping a vector archive preserved its 36-byte MVT tile while requesting PNG returned HTTP 400. [Map configuration](/docs/components/map/#configuration) · [Go tile service](https://github.com/protomaps/go-pmtiles/blob/v1.31.2/pmtiles/server.go#L338-L428)

When a site can host only a single static object, the official raster reader remains an option, provided cross-origin reads supply CORS headers and `206 Partial Content` range responses (a full-file `200` broke subsequent reads). In `pmtiles` 4.5.0, a missing tile hid the broken image, whereas an archive-level `503` delivered no error callback to Leaflet within 1.8 seconds. [Raster reader](https://github.com/protomaps/PMTiles/blob/3b10e67edb65c6b04549f74c0279cef8328d859c/js/src/adapters.ts#L23-L73) · [Storage configuration](https://github.com/protomaps/docs/blob/731ed49eca1db7df01c19f6ccf21e1bc81082a6d/pmtiles/cloud-storage.md)

The PR prototype accepted vector PMTiles or XYZ sources, preserved Leaflet overlays, and drew localized labels on Canvas without WebGL. Empty XYZ `404` and `503` responses left a gray canvas behind the markers, whereas an HTML `503` hid the canvas; Hugo accepted uppercase `.PMTILES` paths, which the reader then fetched without `Range` headers. Upstream lists `protomaps-leaflet` 5.1.0 as maintenance-only, and the bundled notices omitted `fflate` and `quickselect` while copying READMEs in place of license texts for `pmtiles` and `@protomaps/basemaps`. [Tile reader](https://github.com/protomaps/protomaps-leaflet/blob/a5f2c0c8888f4e95bfbda0f7bb5a85be20511eec/src/tilecache.ts#L190-L211) · [URL dispatch](https://github.com/protomaps/protomaps-leaflet/blob/a5f2c0c8888f4e95bfbda0f7bb5a85be20511eec/src/view.ts#L237-L252) · [Upstream status](https://docs.protomaps.com/basemaps/leaflet) · [Notices](https://github.com/ringsaturn/oink/blob/3025c2170c313fe36cc420a885971c53c69852b8/assets/third_party/protomaps-leaflet/LICENSES.txt)

Counting each vendored file once at gzip level 9, Leaflet JS and CSS totaled 45,956 B and the Canvas add-on added 36,874 B, whereas MapLibre GL JS 6.20.0 with its worker, CSS, and PMTiles 4.5.0 totaled 479,002 B before map data or style assets. Only a confirmed reading need for dynamic labels or styles would justify that payload, alongside WebGL2 support, worker CSP allowances, and a keyboard-accessible fallback place list. [GL release](https://github.com/maplibre/maplibre-gl-js/releases/tag/v6.20.0) · [Worker and CSP](https://github.com/maplibre/maplibre-gl-js/blob/v6.20.0/docs/guides/v5-to-v6-migration-guide.md) · [PMTiles integration](https://docs.protomaps.com/pmtiles/maplibre)

## Limits and site pilot {#limits}

Synthetic fixtures leave regional terrain coverage, mobile performance, and production hosting costs unmeasured. The owner of `vonng.com` chooses the Gamagou basemap; with the owner's agreement, maintainers can trial licensed raster terrain imagery at Xiaowu La (`z15`) and check whether a reader can trace the trail and contours from the photo marker, stopping if raster tiles satisfy the reading task or the source data lacks that detail. Vector labels warrant a side-by-side check at the same view only when a multilingual label requirement is confirmed, verifying mobile legibility and keyboard access to the place list after a tile failure. Contributors are also welcome to propose a real reading page of their own. [Pass waypoint](https://github.com/Vonng/vonng.com/blob/1fe5c43d966bafd9fbc24b92e9f36c96f872ad0f/content/trip/2018-gamagou/index.md#L31-L35) · [Interaction contract](https://github.com/pgsty/oink.pgsty.com/blob/25e679df5f7d65024fee6c0e0b5df5216f12af69/content/docs/design/components.md#L374-L378)

---

Backlinks:

- [Research](/docs/design/research/)
