View source: R/leaflet.super.R
addSupClust | R Documentation |
Add a supercluster layer
addSupClust(map, path = "")
map |
a map widget object created from |
path |
relative path / absolute URL to an Arrow IPC stream file |
## Not run: map <- leaflet() %>% addProviderTiles(provider = providers$CartoDB.DarkMatter) %>% addSupClust( path = "data/big.arrow", ~lon, ~lat, layerId = ~ID, radius = 4, stroke = FALSE, fillOpacity = 0.8, label = ~paste("ID: ", ID, sep = ""), popupOptions = popupOptions(closeButton = FALSE), clusterOptions = markerClusterOptions() ) %>% setView(lng = 0, lat = 0, zoom = 2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.