Map basemaps, 2026-12-01
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 · Component contract
Inputs and method
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 · Theme baseline · Reviewed patch
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 · Go server · PR runtime
What readers use
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 · Trip configuration · Biography
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 · Weather app · Docs configuration · Inspected documents
What the tile experiments showed
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 · Go tile service
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 · Storage configuration
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 · URL dispatch · Upstream status · Notices
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 · Worker and CSP · PMTiles integration
Limits and site pilot
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 · Interaction contract