Skip to content

Commit

Permalink
Merge pull request #132 from Picturedigits/main
Browse files Browse the repository at this point in the history
Fix duplicating icon in legend; Safari zoomed display
  • Loading branch information
JackDougherty authored Mar 2, 2024
2 parents 52b80ba + 82189df commit a8aa235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <span> that follows <input>
var g = $(this).text().trim();
var legendIcon = (group2color[ g ].indexOf('.') > 0)
? '<img src="' + group2color[ g ] + '" class="markers-legend-icon">'
Expand Down
5 changes: 3 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a8aa235

Please sign in to comment.