Files
TarkovMaps/web
Claude f997c2c5e2 Render from a denser pyramid level to fix soft tiles
Leaflet chooses its tile level with Math.round(mapZoom), so the default
fit view at zoom 2.25 took level 2 and stretched it 1.19x. With a
devicePixelRatio of 1.5 that compounded to a 1.78x upscale of every
source pixel.

DENSITY_BOOST halves a tile's CSS size and adds a matching zoomOffset, so
Leaflet downscales a denser level instead of upscaling a coarser one. The
per-cell tile offset is now derived from baseTileSize rather than
assuming 2**z, so the world-grid translation stays exact under the boost.

Source pixels per device pixel at DPR 1.5, higher being sharper:

  view zoom 0-4   0.56 -> 1.33
  view zoom 5     0.67 (unchanged; this is the 1:1 source level)

Costs ~4x the tiles in view, ~17 KB each, cached for a week.

z5 is a genuine ceiling: the embedded terrain smart object is a PSB of
exactly 7832x3720 placed 1:1, so no further source detail exists.

Verified zoom 0-7: zero broken tiles.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-08-08 02:36:17 -07:00
..