Add OSM-DE tiles, improve label visibility, smooth radar edges

This commit is contained in:
Clawd
2026-02-11 14:09:51 +00:00
parent 0ddea4f322
commit 40cd6431ea
2 changed files with 13 additions and 3 deletions

View File

@@ -9,19 +9,28 @@
background: #1a1a1a; background: #1a1a1a;
} }
/* Inverted basemap for dark mode */ /* Inverted basemap for dark mode - enhanced for label visibility */
.mmm-combinedmap-wrapper .inverted-tiles { .mmm-combinedmap-wrapper .inverted-tiles {
filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9); filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(1.1);
} }
/* Smooth radar tile edges */
.mmm-combinedmap-wrapper .leaflet-layer img {
image-rendering: auto;
}
/* Radar smoothing applied in individual color scheme rules above */
/* Vibrant radar colors - enhance visibility on dark backgrounds */ /* Vibrant radar colors - enhance visibility on dark backgrounds */
.mmm-combinedmap-wrapper .radar-vibrant { .mmm-combinedmap-wrapper .radar-vibrant {
filter: saturate(1.5) brightness(1.2); filter: saturate(1.5) brightness(1.2);
image-rendering: smooth;
} }
/* Bright radar for maximum visibility */ /* Bright radar for maximum visibility */
.mmm-combinedmap-wrapper .radar-bright { .mmm-combinedmap-wrapper .radar-bright {
filter: saturate(2) brightness(1.4) contrast(1.1); filter: saturate(2) brightness(1.4) contrast(1.1);
image-rendering: smooth;
} }
/* Hide Leaflet attribution */ /* Hide Leaflet attribution */

View File

@@ -103,7 +103,8 @@ Module.register("MMM-CombinedMap", {
const baseMapUrls = { const baseMapUrls = {
"dark": "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png", "dark": "https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
"grey": "https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png", "grey": "https://{s}.basemaps.cartocdn.com/light_nolabels/{z}/{x}/{y}{r}.png",
"osm": "https://a.tile.openstreetmap.de/{z}/{x}/{y}.png", "osm": "https://tile.openstreetmap.org/{z}/{x}/{y}.png",
"osm-de": "https://tile.openstreetmap.de/{z}/{x}/{y}.png",
"positron": "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png" "positron": "https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png"
}; };