Commit Graph
2 Commits
Author SHA1 Message Date
Claude 825a58c639 Draw a coarse underlay beneath detail tiles to kill loading gaps
Each map now renders twice. The lower layer pins minNativeZoom and
maxNativeZoom to underlayZoom (2), so Leaflet serves that single level at
every view zoom, scaled to fit. The entire world at z2 is 17 tiles /
134 KB, so it paints in ~120ms and stays resident behind a generous
keepBuffer.

Detail tiles draw over it at zIndex 2, so any gap while they load shows
blurry map instead of the page background.

Verified zoom 0-7: zero broken tiles, no console errors.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-08-08 01:07:38 -07:00
Claude 5afde00ab7 Base-map tile pipeline and shared-canvas Leaflet viewer
Extracts only the base map art from re3mr PSDs (the top-level LOCATION
group), tiles it to WebP, and renders every map on one shared world canvas.

Pipeline: psd_tree -> export_base -> tile -> build -> preview, driven
entirely by maps.json. Adding a map is a config change.

Maps are placed on an 8192px grid (tileSize * 2^maxZoom) so a cell's tile
index shift is exactly cell * 2^z at every zoom. Each map keeps its own
locally numbered pyramid and the browser translates on the fly, so adding
a map never re-tiles the others.

excludeLayers works around psd-tools rendering stroke-only vector shapes
as solid fills, which otherwise buries Customs under a white fill.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-08-07 23:22:21 -07:00