Description Usage Arguments Examples
View source: R/add_blank_layers.R
Add empty aggregate layers to a map (created via map_toronto). The purpose of this function is to allow for toggling the layers on and off, via toggle_layer_visible and toggle_layer_invisible. This function adds the following layers (accessed via IDs): estimated proportion low-end of market rentals (lem_percent), rental supply (primary - rental_supply_primary; condo - rental_supply_condo; non-condo secondary - rental_supply_non_condo; non-market - rental_supply_non_market), core housing need (core_housing_need), eviction filings rate (eviction_rate), and all neighbourhood outline / click / etc layers. Note that LEM is visible by default.
1 |
map |
Map created via map_toronto |
1 2 3 4 5 | library(sf)
map_toronto() %>%
add_blank_aggregate_layers() %>%
toggle_layer_visible("lem_percent")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.