Skip to contents

Update the OSM-Buildings Style

Usage

setBuildingStyle(
  map,
  style = list(color = "#ffcc00", wallColor = "#ffcc00", roofColor = "orange", shadows =
    TRUE)
)

Arguments

map

A map widget object created from leaflet.

style

A named list of styles

See also

Other OSM-Buildings Plugin: addBuildings(), setBuildingData(), updateBuildingTime()

Examples

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)