lazyflat/web/static
Moritz 4fd0b50a43 fix: lazy-init Leaflet map so tiles actually load
The map was being initialised on DOMContentLoaded even when its container
was display:none (0×0). Leaflet sets up internal bounds from container size
at init; on a zero-sized container no tiles are ever requested. Even
invalidateSize afterwards didn't recover reliably.

* map.js now only builds the Leaflet instance once the container has real
  dimensions (clientHeight >= 10). Triggered when the view toggle flips to
  Karte (rAF x2 + safety timers), and via restoreView on page load if the
  user's last choice was Karte.
* CSP img-src now includes https://unpkg.com for Leaflet marker icons.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 12:14:54 +02:00
..
.gitkeep lazyflat: combined alert + apply behind authenticated web UI 2026-04-21 09:51:35 +02:00
app.js ui: live timers, Berlin timestamps, ZIP failure reports, drop kill-switch/Fehler tab 2026-04-21 11:09:37 +02:00
map.js fix: lazy-init Leaflet map so tiles actually load 2026-04-21 12:14:54 +02:00