Darker basemap for radar

This commit is contained in:
mrkmntal 2026-04-07 16:12:43 -04:00
commit af0dc6df4d
4 changed files with 9 additions and 2 deletions

View file

@ -94,6 +94,7 @@ class Radar extends WeatherDisplay {
maxZoom: 10, maxZoom: 10,
minZoom: 1, minZoom: 1,
crossOrigin: true, crossOrigin: true,
className: 'radar-base-layer',
}); });
this.baseLayer.addTo(this.map); this.baseLayer.addTo(this.map);
@ -127,6 +128,7 @@ class Radar extends WeatherDisplay {
crossOrigin: true, crossOrigin: true,
updateWhenIdle: false, updateWhenIdle: false,
keepBuffer: 2, keepBuffer: 2,
className: 'radar-precip-layer',
}); });
layer.addTo(this.map); layer.addTo(this.map);

View file

@ -136,6 +136,11 @@
font-family: inherit; font-family: inherit;
} }
.radar-base-layer,
.radar-base-layer .leaflet-tile {
filter: grayscale(0.75) brightness(0.52) contrast(1.15) saturate(0.45);
}
.leaflet-control-container, .leaflet-control-container,
.leaflet-control-attribution, .leaflet-control-attribution,
.leaflet-control-zoom { .leaflet-control-zoom {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long