Skip to content

Commit a8aa235

Browse files
Merge pull request #132 from Picturedigits/main
Fix duplicating icon in legend; Safari zoomed display
2 parents 52b80ba + 82189df commit a8aa235

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/map.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ $(window).on('load', function() {
685685
changeAttribution();
686686

687687
// Append icons to categories in markers legend
688-
$('#points-legend label span').each(function(i) {
688+
$('#points-legend input+span').each(function(i) { // add to <span> that follows <input>
689689
var g = $(this).text().trim();
690690
var legendIcon = (group2color[ g ].indexOf('.') > 0)
691691
? '<img src="' + group2color[ g ] + '" class="markers-legend-icon">'

style.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,11 @@ form {
6060
}
6161

6262
.polygons-legend-scale i {
63-
width: 18px;
64-
height: 18px;
63+
width: 16px;
64+
height: 16px;
6565
float: left;
6666
margin-right: 8px;
67+
border-bottom: 1px solid rgba(0,0,0,0);
6768
}
6869

6970
.leaflet-popup-content {

0 commit comments

Comments
 (0)