addOverlays | R Documentation |
Helper for adding multiple overlays to a leaflet map at the same time, using grouped data.
Group names will be passed to fun
, which should be a function that actually adds an overlay, e.g. addPolygonOverlay()
.
addOverlays( map_object, data, fun, ..., verbose = getOption("verbose", default = FALSE) )
map_object |
leaflet map |
data |
grouped data |
fun |
function to add a single overlay, taking an argument |
... |
passed to |
verbose |
logical |
leaflet map, with overlays added
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.