Skip to content

Commit 88e0ee7

Browse files
committed
Add filters to map layer menu buttons
1 parent e68c542 commit 88e0ee7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/assets/javascripts/leaflet.layers.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ L.OSM.layers = function (options) {
1515
.appendTo(baseSection);
1616

1717
var mapContainer = $("<div class='position-absolute top-0 start-0 bottom-0 end-0 z-0 bg-body-secondary'>")
18+
.css("--dark-mode-map-filter", layer.options.darkFilter)
1819
.appendTo(buttonContainer);
1920

2021
var input = $("<input type='radio' class='btn-check' name='layer'>")

0 commit comments

Comments
 (0)