Skip to content

Commit

Permalink
Merge pull request #89 from mtennekes/patch-1
Browse files Browse the repository at this point in the history
icon anchors were off when a thick strokes were used
  • Loading branch information
tomroh authored Jul 31, 2024
2 parents f9c9e71 + c99c792 commit 967de53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/legend.R
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ makeSymbolIcons <- function(shape,
)
leaflet::icons(
iconUrl = unname(symbols),
iconAnchorX = width / 2,
iconAnchorY = height / 2
iconAnchorX = width / 2 + strokeWidth,
iconAnchorY = height / 2 + strokeWidth
)
}
#' @param map
Expand Down

0 comments on commit 967de53

Please sign in to comment.