Skip to contents

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

Usage

felt_update_layer_details(
  map_id,
  layer_id,
  layer_group_id = NULL,
  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_id

character, layer identifier from url, from felt_get_map()

layer_group_id

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

name

Name of the layer. Defaults to NULL.

ordering_key

Integer to order layers. Defaults to NULL.

subtitle

Subtitle for the layer. 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_details(map_id = 'TBI8sDkmQjuK2GX9CSiHiUA',
                          layer_id = 'eufG5hWKRRSURHE8YcGGXA',
                          subtitle = paste0('tested ', Sys.Date()))
}