tomroh / leaflegend

Provides extensions to the leaflet R package to customize legends with images, text styling, orientation, sizing, and symbology.
https://leaflegend.delveds.com
Other
34 stars 3 forks source link

Unwanted extra icon in legend #87

Closed AltayYuzeir closed 3 months ago

AltayYuzeir commented 3 months ago

Hello, thanks for the awesome package. The code below works as intended. But the problem is not all icons of FA work with the setup below. I am using a workaround from https://github.com/rstudio/leaflet/issues/691, which might be causing the issue. Announcement = makeAwesomeIcon( icon = "font-awesome", library = "fa", iconColor = "blue", markerColor = "black" )

Rplot01

AltayYuzeir commented 3 months ago

I solved it. I can also set the icon to NULL, and use the text parameter. Announcement = makeAwesomeIcon( icon =NULL, library = "fa", text = fa("dog"), iconColor = "orange", markerColor = "black" )