Hide groups of layers without removing them from the map entirely. Groups are
created using the
group parameter that is included on most layer
1 2 3
the map to modify
character vector of one or more group names to show or hide
addLayersControl to allow users to show/hide layer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.