Description Usage Arguments Examples
Toggle mapbox layer visible or invisible
1 2 3 | toggle_layer_visible(map, id)
toggle_layer_invisible(map, id)
|
map |
Map e.g. from map_toronto |
id |
ID of existing layer, added via e.g. add_blank_amenity_density_layer |
1 2 3 4 5 | library(sf)
map_toronto() %>%
add_blank_amenity_density_layer() %>%
toggle_layer_visible("amenity_density")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.