]> git.openstreetmap.org Git - rails.git/commitdiff
Round the clickable map previews on the layer switcher
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Sep 2023 15:26:12 +0000 (16:26 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 6 Sep 2023 17:10:02 +0000 (18:10 +0100)
Most interactive elements on the site are rounded, so we can do the
same for these map previews.

app/assets/javascripts/leaflet.layers.js

index 020876c470c71f134ab5e2543e29a73be8c7b7b8..1aa3824b05c68897fbcb88d5c784e215a551d717 100644 (file)
@@ -13,6 +13,7 @@ L.OSM.layers = function (options) {
 
     layers.forEach(function (layer) {
       var item = $("<li>")
+        .attr("class", "rounded-3")
         .appendTo(baseLayers);
 
       if (map.hasLayer(layer)) {