From 82189df9200b3b0137e6ac5a0686f5d97c1c8218 Mon Sep 17 00:00:00 2001 From: ilyankou Date: Sat, 2 Mar 2024 18:59:51 +0000 Subject: [PATCH] Fix duplicating icon in legend; Safari zoomed display --- scripts/map.js | 2 +- style.css | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/map.js b/scripts/map.js index f9bc5bd1a..9eef61325 100755 --- a/scripts/map.js +++ b/scripts/map.js @@ -685,7 +685,7 @@ $(window).on('load', function() { changeAttribution(); // Append icons to categories in markers legend - $('#points-legend label span').each(function(i) { + $('#points-legend input+span').each(function(i) { // add to that follows var g = $(this).text().trim(); var legendIcon = (group2color[ g ].indexOf('.') > 0) ? '' diff --git a/style.css b/style.css index 20ab9aae0..83538bb61 100644 --- a/style.css +++ b/style.css @@ -60,10 +60,11 @@ form { } .polygons-legend-scale i { - width: 18px; - height: 18px; + width: 16px; + height: 16px; float: left; margin-right: 8px; + border-bottom: 1px solid rgba(0,0,0,0); } .leaflet-popup-content {