updateBuildingTime: Update the Shadows OSM-Buildings with a POSIXct timestamp

View source: R/buildings.R

updateBuildingTimeR Documentation

Update the Shadows OSM-Buildings with a POSIXct timestamp

Description

Update the Shadows OSM-Buildings with a POSIXct timestamp

Usage

updateBuildingTime(map, time)

Arguments

map

A map widget object created from leaflet.

time

a timestamp that can be converted to POSIXct

See Also

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

Examples

library(leaflet)
library(leaflet.extras2)

leaflet() %>%
  addTiles() %>%
  addBuildings() %>%
  updateBuildingTime(as.POSIXct("2024-09-01 19:00:00 CET")) %>%
  setView(13.40, 52.51836, 15)

leaflet.extras2 documentation built on April 3, 2025, 10:46 p.m.