Description Usage Arguments Examples
View source: R/add_blank_layers.R
Add an empty layer of amenity density to a map (created via map_toronto). The purpose of this function is to allow for toggling the layer on and off, via toggle_layer_visible and toggle_layer_invisible (with the id "amenity_density").
1 |
map |
Map created via map_toronto |
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.