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:
@@ -235,7 +235,7 @@ class SecurityHeadersMiddleware(BaseHTTPMiddleware):
|
|||||||
"script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; "
|
"script-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net; "
|
||||||
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; "
|
"style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdn.jsdelivr.net; "
|
||||||
"font-src 'self' https://fonts.gstatic.com; "
|
"font-src 'self' https://fonts.gstatic.com; "
|
||||||
"img-src 'self' data: https://*.basemaps.cartocdn.com https://*.tile.openstreetmap.org; "
|
"img-src 'self' data: https://tile.openstreetmap.de; "
|
||||||
"connect-src 'self' wss: ws:; "
|
"connect-src 'self' wss: ws:; "
|
||||||
"frame-ancestors 'none'"
|
"frame-ancestors 'none'"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -744,15 +744,11 @@ const UI = {
|
|||||||
if (layer instanceof L.TileLayer) this._map.removeLayer(layer);
|
if (layer instanceof L.TileLayer) this._map.removeLayer(layer);
|
||||||
});
|
});
|
||||||
|
|
||||||
const theme = document.documentElement.getAttribute('data-theme') || 'dark';
|
// Deutsche OSM-Kacheln: deutsche Ortsnamen, einheitlich fuer beide Themes
|
||||||
const tileUrl = theme === 'dark'
|
const tileUrl = 'https://tile.openstreetmap.de/{z}/{x}/{y}.png';
|
||||||
? 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png'
|
const attribution = '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>';
|
||||||
: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
|
|
||||||
const attribution = theme === 'dark'
|
|
||||||
? '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>'
|
|
||||||
: '© <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() {
|
updateMapTheme() {
|
||||||
|
|||||||
In neuem Issue referenzieren
Einen Benutzer sperren