diff --git a/R/legend.R b/R/legend.R index 9f4da0a..2cb312f 100644 --- a/R/legend.R +++ b/R/legend.R @@ -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