Tile-Server: Isolations-Testseite /leaflet-vector-test (protomaps-leaflet + DACH, ohne App-Shell)

This commit is contained in:
rene 2026-06-05 08:39:43 +02:00
parent 647aa684db
commit 736c326635
3 changed files with 53 additions and 0 deletions

View file

@ -429,6 +429,12 @@ async def maplibre_test():
# Spike-Testseite: MapLibre rendert /tiles/*.pmtiles (Geometrie-Style, kein Glyph).
return FileResponse(os.path.join(STATIC_DIR, "maplibre-test.html"), media_type="text/html")
@app.get("/leaflet-vector-test")
async def leaflet_vector_test():
# Isolationstest: protomaps-leaflet + map-vector.js + DACH-PMTiles, ohne App-Shell/Flag.
return FileResponse(os.path.join(STATIC_DIR, "leaflet-vector-test.html"), media_type="text/html")
# User-generierte Medien (Fotos aus Tagebuch, Giftköder-Alarm, etc.)
MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media")
os.makedirs(MEDIA_DIR, exist_ok=True)