addExtent | R Documentation |
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.