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]>
34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
JSON
{
|
|
"$comment": "Single source of truth for the whole build. See docs/adding-a-map.md.",
|
|
|
|
"tileSize": 256,
|
|
"maxZoom": 5,
|
|
"gridCols": 4,
|
|
|
|
"$comment_underlayZoom": "Zoom level used for the always-on blurry backdrop that sits under the detail tiles, so loading gaps never show the page background. Every map's whole extent at this zoom is fetched up front, so keep it low: z2 is 17 tiles / 134 KB for the entire world, z3 would be 49 / 471 KB.",
|
|
"underlayZoom": 2,
|
|
|
|
"attribution": "Maps by <a href=\"https://re3mr.com\" target=\"_blank\" rel=\"noopener\">re3mr.com</a> · CC BY-NC-SA 4.0",
|
|
|
|
"maps": [
|
|
{
|
|
"id": "customs",
|
|
"name": "Customs",
|
|
"psd": "sources/customs/customs.psd",
|
|
"baseGroup": "LOCATION",
|
|
"excludeLayers": ["Map Borders"],
|
|
"crop": [0, 860, 7832, 3875],
|
|
"pxPerMeter": 7.39,
|
|
"cell": [0, 0]
|
|
},
|
|
{
|
|
"id": "customs-dorms",
|
|
"name": "Customs — Dorms",
|
|
"psd": "sources/customs/customs-dorms.psd",
|
|
"baseGroup": "LOCATION",
|
|
"crop": null,
|
|
"cell": [1, 0]
|
|
}
|
|
]
|
|
}
|