MapLibre-Perf-Test: /maplibre-perf-test (Basemap + 600 Cluster-Marker, GPU) — Handy-Proof vor dem Umbau

This commit is contained in:
rene 2026-06-05 09:24:13 +02:00
parent 5e354f7e8e
commit a27695d9c6
3 changed files with 99 additions and 0 deletions

View file

@ -441,6 +441,12 @@ async def ui_vector_test():
# Testet den echten ui.js-Vektor-Pfad (UI.map.create) ohne Auth/App-Shell.
return FileResponse(os.path.join(STATIC_DIR, "ui-vector-test.html"), media_type="text/html")
@app.get("/maplibre-perf-test")
async def maplibre_perf_test():
# Wegwerf-Perf-Test: MapLibre GPU + 600 Cluster-Marker auf DACH-Basemap (Handy-Test).
return FileResponse(os.path.join(STATIC_DIR, "maplibre-perf-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)