setBuildingStyle | R Documentation |
Update the OSM-Buildings Style
setBuildingStyle(
map,
style = list(color = "#ffcc00", wallColor = "#ffcc00", roofColor = "orange", shadows =
TRUE)
)
map |
A map widget object created from |
style |
A named list of styles |
Other OSM-Buildings Plugin:
addBuildings()
,
setBuildingData()
,
updateBuildingTime()
library(leaflet)
library(leaflet.extras2)
style <- list(color = "#0000ff", wallColor = "gray", roofColor = "orange", shadows = TRUE)
leaflet() %>%
addTiles() %>%
addBuildings() %>%
setBuildingStyle(style) %>%
setView(13.40, 52.51836, 15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.