addExtent {leafem} | R Documentation |
Add extent/bbox of spatial objects to a leaflet map
Description
This function adds the bounding box of a spatial object to a leaflet or mapview map.
Usage
addExtent(map, data, ...)
Arguments
map |
A |
data |
A |
... |
additional arguments passed on to |
Examples
library(leaflet)
# Usage in leaflet
leaflet() %>%
addProviderTiles("OpenStreetMap") %>%
addExtent(gadmCHE)
leaflet(gadmCHE) %>%
addProviderTiles("OpenStreetMap") %>%
addExtent()
[Package leafem version 0.2.3 Index]