LuminaWebsite/assets
Maaxxs 52fea9f92d Karte: build a map from an image right on the page
Pick an image, press "Karte bauen", done - no FTP, no command line tool.
The panel sits on the setup page while no map exists and under the map as
"Karte neu bauen" afterwards.

The tiles are cut in the browser and only the finished 256px JPEGs are
uploaded. That is the point: on ordinary shared hosting a 50MB map image
runs into upload_max_filesize, cutting it server side runs into memory_limit
and max_execution_time, and GD is not installed everywhere. This way the
server needs none of it - it validates small JPEGs and stores them.

Uploads go into a side folder <key>__build that only replaces the live map
once every tile has arrived, so an abort - by button, by error or by closing
the browser - leaves the existing map untouched.

The server trusts nothing from the client: the key must match a strict
pattern, tile coordinates must lie inside 2^z on their level, and each file
is checked with getimagesize for an actual JPEG within a size limit before it
is stored.

Verified against tools/make_map_tiles.php on the same source image: same zoom
levels, same per-level tile counts (1/4/12/40), same tile names, same
manifest.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 14:57:11 +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: build a map from an image right on the page 2026-09-20 14:57:11 +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