feat(karte): nur Deutschland anzeigen (Invers-Maske) + lokale pmtiles-Basemap verdrahten
- map.js: Invers-Maske aus Bundeslaender-GeoJSON blendet Nachbarlaender/Meer aus (Even-Odd, alle Ringe -> Enklaven Berlin/Bremen bleiben sichtbar) - map.js: Ausschnitt via setMaxBounds fest auf Deutschland begrenzt - map.js: Grenz-GeoJSON immer laden; gefuellter Umriss als Fallback ohne Tiles - scripts.html/karte.html/hugo.toml: protomaps-leaflet + pmtiles-Basemap - .gitignore: /static/tiles/ (6,7-GB-pmtiles liegt ausserhalb des Repos)
This commit is contained in:
@@ -36,8 +36,10 @@
|
||||
"colors" $colorMap
|
||||
"defaultColor" $default
|
||||
"klein" ($klein | default false)
|
||||
"pmtilesUrl" (site.Params.map.pmtilesURL | default ("tiles/germany.pmtiles" | relURL))
|
||||
"flavor" (site.Params.map.flavor | default "light")
|
||||
"geojsonUrl" ("geo/deutschland-bundeslaender.geojson" | relURL)
|
||||
"attribution" (site.Params.map.attribution | default "Geodaten: © GeoBasis-DE / BKG (Bundesländergrenzen)")
|
||||
"attribution" (site.Params.map.attribution | default "© OpenStreetMap-Mitwirkende")
|
||||
}}
|
||||
|
||||
<div id="op-map" class="op-map{{ if $klein }} op-map--klein{{ end }}"
|
||||
|
||||
Reference in New Issue
Block a user