Revert to standard tiles, increase blur to 2px for smoother radar

This commit is contained in:
Clawd
2026-02-11 14:35:07 +00:00
parent 27c4a38fef
commit 4eb8c81094
2 changed files with 4 additions and 6 deletions

View File

@@ -23,13 +23,13 @@
/* Vibrant radar colors - enhance visibility + smooth edges */ /* Vibrant radar colors - enhance visibility + smooth edges */
.mmm-combinedmap-wrapper .radar-vibrant { .mmm-combinedmap-wrapper .radar-vibrant {
filter: saturate(1.5) brightness(1.2) blur(0.5px); filter: saturate(1.5) brightness(1.2) blur(2px);
image-rendering: smooth; 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) blur(0.5px); filter: saturate(2) brightness(1.4) contrast(1.1) blur(2px);
image-rendering: smooth; image-rendering: smooth;
} }

View File

@@ -281,7 +281,7 @@ Module.register("MMM-CombinedMap", {
const isForecast = timestamp > now; const isForecast = timestamp > now;
const timeStr = timestamp.toISOString().replace(/\.\d{3}Z$/, ".000Z"); const timeStr = timestamp.toISOString().replace(/\.\d{3}Z$/, ".000Z");
// DWD WMS layer - request larger tiles for better quality // DWD WMS layer
const layer = L.tileLayer.wms("https://maps.dwd.de/geoserver/dwd/wms", { const layer = L.tileLayer.wms("https://maps.dwd.de/geoserver/dwd/wms", {
layers: "dwd:Niederschlagsradar", layers: "dwd:Niederschlagsradar",
format: "image/png", format: "image/png",
@@ -291,9 +291,7 @@ Module.register("MMM-CombinedMap", {
styles: "niederschlagsradar", styles: "niederschlagsradar",
version: "1.3.0", version: "1.3.0",
crs: L.CRS.EPSG3857, crs: L.CRS.EPSG3857,
className: radarClass, className: radarClass
tileSize: 512, // Request larger tiles for better resolution
zoomOffset: -1 // Compensate for larger tiles
}); });
layer.addTo(this.map); layer.addTo(this.map);