showGroup | R Documentation |
Hide groups of layers without removing them from the map entirely. Groups are
created using the group
parameter that is included on most layer
adding functions.
showGroup(map, group)
hideGroup(map, group)
map |
the map to modify |
group |
character vector of one or more group names to show or hide |
addLayersControl()
to allow users to show/hide layer
groups interactively
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.