Skip to contents

Allows for updates to the name, ordering key, and subtitle.

Usage

felt_update_layer_group_details(
  map_id,
  layer_group_id,
  name = NULL,
  ordering_key = NULL,
  subtitle = NULL,
  clean = TRUE
)

Arguments

map_id

character, map identifier from url, from https://felt.com/map/Readable-Name-map_id

layer_group_id

character, layer group identifier from url, from felt_get_map().

name

Name of the layer group. Required.

ordering_key

Integer to order by. Defaults to NULL.

subtitle

Subtitle for the layer group. Defaults to NULL.

clean

logical, whether to turn the API response into a tibble::tibble

Value

response data

Examples

if (FALSE) { # has_felt_key()
felt_update_layer_group_details(map_id = 'TBI8sDkmQjuK2GX9CSiHiUA',
                               layer_group_id = 'rHxyTef7S9CO8W7n1PvBVwC',
                               name = 'Polling Sites 2020',
                               subtitle = paste0('tested ', Sys.Date()))
}