Closed mtennekes closed 3 years ago
Thanks! much appreciated.
Are you asking for rectangular bordering box around the shapes or an outline around the shape?
s1 <- makeSymbol('circle', width = 24, height = 24, color = 'black', fillColor = 'blue', 'stroke-width' = 2)
leaflet() %>%
addTiles() %>%
addLegendImage(images = list(s1), labels = c('outline'))
library(leaflet)
library(leaflegend)
data("quakes")
quakes <- quakes[1:10,]
mapSymbol <- makeSymbolIcons('circle',color = 'black',
fillColor = 'blue',
width = 10,
opacity = 1,
fillOpacity = .5)
leaflet(quakes) %>%
addTiles() %>%
addMarkers(icon = mapSymbol)
This will be in the next release. Install from github if you want the feature now.
8afd0a73f856b6de06c38437d27cad9fae299326
Great package! Will definitely use it in tmap.
Question: how can I add borders around the shapes?