Add extent/bbox of spatial objects to a leaflet map
This function adds the bounding box of a spatial object to a leaflet or mapview map.
addExtent(map, data, ...)
map |
A |
data |
A |
... |
additional arguments passed on to |
library(leaflet)
# Usage in leaflet
leaflet() %>%
addProviderTiles("OpenStreetMap") %>%
addExtent(gadmCHE)
leaflet(gadmCHE) %>%
addProviderTiles("OpenStreetMap") %>%
addExtent()Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.