Add overlay support with interactive tooltips and metadata display

This commit is contained in:
Marco 2026-03-27 12:01:21 +01:00
commit d8940a1b1d
7 changed files with 659 additions and 30 deletions

View file

@ -26,6 +26,7 @@ Viewer behavior:
- use the scroll wheel to zoom directly at the pointer
- pinch to zoom on touch devices
- toggle roofs and editor-only elements independently before building
- when editor-only elements are enabled, the base map stays server-rasterized while editor records render as interactive overlays with hover metadata
The app expects asset folders under the app root:
@ -62,6 +63,7 @@ docker compose up --build
- `POST /api/builds` starts or reuses a build.
- `GET /api/builds/:id` returns build status.
- `GET /api/maps/:game/:mapId/metadata?buildId=...` returns map bounds and tile settings.
- `GET /api/maps/:game/:mapId/overlays?buildId=...` returns interactive overlay records for editor-only content.
- `GET /api/maps/:game/:mapId/tiles/:tileX/:tileY.png?buildId=...` returns rendered PNG tiles.
No raw Crusader asset files are exposed over HTTP.