View source: R/funs-add_if_exists.R
addIfExistPolygons | R Documentation |
Add polygons to a leaflet map if there is sufficient data.
addIfExistPolygons(map = NULL, data, map_format = "pdf", ...)
map |
a map widget object created from leaflet() |
data |
the data object from which the argument values are derived. |
... |
additional arguments passed to addPolygons() |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.