feat(karte): lokale Deutschland-Basemap statt OpenStreetMap-Kacheln (keine externen CDN)

- static/geo/deutschland-bundeslaender.geojson (BKG, vereinfacht, ~40KB)
- map.js: Tile-Layer entfernt, Bundeslaender-GeoJSON per same-origin fetch
  als Vektor-Hintergrund; Detail-Minikarte als Deutschland-Locator
- hugo.toml: OSM tileURL entfernt, Attribution nur noch als Text
- CSS: neutraler Kartenhintergrund statt Tile-Grau
- Ergebnis: 0 externe Requests (per Playwright-Netzwerk-Audit verifiziert)
This commit is contained in:
maik
2026-08-19 13:16:16 +02:00
parent 7d2949bf42
commit bfcb2ce6c0
6 changed files with 73 additions and 20 deletions
+3 -2
View File
@@ -35,8 +35,9 @@
"places" $places
"colors" $colorMap
"defaultColor" $default
"tileUrl" (site.Params.map.tileURL | default "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png")
"attribution" (site.Params.map.attribution | default `&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>-Mitwirkende`)
"klein" ($klein | default false)
"geojsonUrl" ("geo/deutschland-bundeslaender.geojson" | relURL)
"attribution" (site.Params.map.attribution | default "Geodaten: © GeoBasis-DE / BKG (Bundesländergrenzen)")
}}
<div id="op-map" class="op-map{{ if $klein }} op-map--klein{{ end }}"