Add OSM-DE tiles, improve label visibility, smooth radar edges
This commit is contained in:
@@ -9,19 +9,28 @@
|
||||
background: #1a1a1a;
|
||||
}
|
||||
|
||||
/* Inverted basemap for dark mode */
|
||||
/* Inverted basemap for dark mode - enhanced for label visibility */
|
||||
.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 */
|
||||
.mmm-combinedmap-wrapper .radar-vibrant {
|
||||
filter: saturate(1.5) brightness(1.2);
|
||||
image-rendering: smooth;
|
||||
}
|
||||
|
||||
/* Bright radar for maximum visibility */
|
||||
.mmm-combinedmap-wrapper .radar-bright {
|
||||
filter: saturate(2) brightness(1.4) contrast(1.1);
|
||||
image-rendering: smooth;
|
||||
}
|
||||
|
||||
/* Hide Leaflet attribution */
|
||||
|
||||
@@ -103,7 +103,8 @@ Module.register("MMM-CombinedMap", {
|
||||
const baseMapUrls = {
|
||||
"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",
|
||||
"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"
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user