79760045

Date: 2025-09-09 15:35:33
Score: 0.5
Natty:
Report link

You can also use labels instead of popups. (Labels come up when you move the mouse over an area; popups only come up when you click on an area.)

Answer taken from: https://stackoverflow.com/a/43155126/3174566

Replace

dplyr::summarise(BandName = paste(BandName, collapse = "<br>"))

with

dplyr::summarise(BandName = lapply(paste(BandName, collapse = "<br>"), htmltools::HTML))

And then in Leaflet use

addPolygons(..., label = ~BandName)
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
Posted by: filups21