Karte: Deutsche OSM-Kacheln, einheitlich fuer beide Themes

- tile.openstreetmap.de statt OSM/CartoDB: deutsche Ortsnamen
- Graue Vierecke behoben (Subdomain 'd' existierte nicht bei OSM)
- Gleiche helle Karte in Dark und Light Mode
- CSP img-src auf neuen Tile-Server aktualisiert

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Dieser Commit ist enthalten in:
claude-dev
2026-03-05 13:08:45 +01:00
Ursprung 559ace2f02
Commit e91829d215
2 geänderte Dateien mit 5 neuen und 9 gelöschten Zeilen

Datei anzeigen

@@ -744,15 +744,11 @@ const UI = {
if (layer instanceof L.TileLayer) this._map.removeLayer(layer);
});
const theme = document.documentElement.getAttribute('data-theme') || 'dark';
const tileUrl = theme === 'dark'
? 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png'
: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
const attribution = theme === 'dark'
? '&copy; <a href="https://www.openstreetmap.org/copyright">OSM</a> &copy; <a href="https://carto.com/">CARTO</a>'
: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>';
// Deutsche OSM-Kacheln: deutsche Ortsnamen, einheitlich fuer beide Themes
const tileUrl = 'https://tile.openstreetmap.de/{z}/{x}/{y}.png';
const attribution = '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>';
L.tileLayer(tileUrl, { attribution, maxZoom: 18, subdomains: 'abcd' }).addTo(this._map);
L.tileLayer(tileUrl, { attribution, maxZoom: 18 }).addTo(this._map);
},
updateMapTheme() {