Request 512px tiles for better resolution, add subtle blur to smooth radar edges

This commit is contained in:
Clawd
2026-02-11 14:29:51 +00:00
parent 40cd6431ea
commit 27c4a38fef
2 changed files with 12 additions and 5 deletions

View File

@@ -21,15 +21,20 @@
/* Radar smoothing applied in individual color scheme rules above */ /* Radar smoothing applied in individual color scheme rules above */
/* Vibrant radar colors - enhance visibility on dark backgrounds */ /* Vibrant radar colors - enhance visibility + smooth edges */
.mmm-combinedmap-wrapper .radar-vibrant { .mmm-combinedmap-wrapper .radar-vibrant {
filter: saturate(1.5) brightness(1.2); filter: saturate(1.5) brightness(1.2) blur(0.5px);
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); filter: saturate(2) brightness(1.4) contrast(1.1) blur(0.5px);
image-rendering: smooth;
}
/* Default radar smoothing (no color boost) */
.mmm-combinedmap-wrapper .leaflet-tile-pane .leaflet-layer:not(:first-child) img {
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 // DWD WMS layer - request larger tiles for better quality
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,7 +291,9 @@ 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);