View source: R/utils_rcoleo_site.R
Take a site dataframe, select the icons that should go on it, and configure these with options. The most important is to define what value should be returned by a click.
1 2 3 4 5 6 | make_icon_adders(
site_info_sf,
site_icons = make_site_icons(),
habitat_col = "type",
site_id_col = "site_code"
)
|
site_info_sf |
dataset with site information. should be of type sf and have a column points in sf format |
habitat_col |
column name that holds the habitat type. defaults to "type" |
site_id_col |
column name that holds the value that gets returned when clicked. defaults to "site_code |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.