make_icon_adders: Create the icons for a map

Description Usage Arguments

View source: R/utils_rcoleo_site.R

Description

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.

Usage

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"
)

Arguments

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


ReseauBiodiversiteQuebec/mapselector documentation built on Feb. 22, 2022, 3:13 p.m.