LuminaWebsite/assets
Maaxxs c1dacc6688 Karte: allow zooming past the deepest tile level
The map's zoom was capped at the deepest level that has tiles, which leaves
almost no room on a shallow pyramid: a 1024px map only has levels 0 to 2, so
fitBounds already landed at the maximum and the zoom-in button was disabled
from the moment the page loaded. Reproduced against a copy of the live map
(1024x1024, max_zoom 2): zoom-in disabled on load, clicking it did nothing.

The tile layer now declares maxNativeZoom as the deepest level that really
exists, and the map may zoom two levels beyond it - Leaflet scales those
tiles up instead of requesting levels that would 404. Verified across the
range: level 1 at zoom 1.25, native level 2 at zoom 2, and the same level 2
tiles upscaled to 362/512/724/1024px at zoom 2.5 through 4, with no request
for the non-existent level 3.

This also removes detectRetina, which made the problem worse rather than
better: it costs a zoom level of magnification, not just resolution, so on a
high-density display a three-level map lost a third of its already minimal
range.

tools/tile_viewer.html had the same constraint one level up and now allows
two levels past native as well.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 15:10:07 +02:00
..
css Karte: build a map from an image right on the page 2026-09-20 14:57:11 +02:00
images Reports: exclude roles from auto-mute; wire up new landscape backgrounds 2026-09-20 02:27:37 +02:00
js Karte: allow zooming past the deepest tile level 2026-09-20 15:10:07 +02:00
uploads Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
vendor/leaflet Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00