addFeatures | R Documentation |
leaflet::add*
functions.Add simple features geometries from sf
addFeatures(map, data, pane = "overlayPane", ...)
map |
A |
data |
A |
pane |
The name of the map pane for the features to be rendered in. |
... |
Further arguments passed to the respective |
A leaflet map
object.
library(leaflet)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addCircleMarkers(data = breweries91)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addFeatures(data = breweries91)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addPolylines(data = atlStorms2005)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addFeatures(atlStorms2005)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addPolygons(data = gadmCHE)
leaflet() %>% addProviderTiles("OpenStreetMap") %>% addFeatures(gadmCHE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.