Circles In Legend For Leaflet Map With Addcirclemarkers In R - Without Shiny
I am creating a leaflet map in R - I don't need to build a shiny app, and haven't tackled that particular skill set yet! I was trying to follow along with this post here to create
Solution 1:
From the original answer, you omitted one set of global style definition that is responsible for the round shape.
Add border-radius: 50%;
to the colorAdditions
set of css styles, which is the one style you are needing from it.
This would make:
colorAdditions <- paste0(colors, "; border-radius: 50%; width:", sizes, "px; height:", sizes, "px")
A bit hacky, but works.
Post a Comment for "Circles In Legend For Leaflet Map With Addcirclemarkers In R - Without Shiny"