Skip to contents

Delete an existing element

Usage

felt_delete_map_elements(map_id, element_id)

Arguments

map_id

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

element_id

element identifier, as returned by felt_get_map_elements() or felt_add_map_elements()

Value

response code

Examples

if (FALSE) { # has_felt_key()
elem <- felt_add_map_elements(map_id = 'Rockland-2024-Districts-TBI8sDkmQjuK2GX9CSiHiUA',
                    elements = fs::path_package('feltr',  'bbox.geojson'))
elem
# and delete layer
felt_delete_map_elements(map_id = 'TBI8sDkmQjuK2GX9CSiHiUA', element_id = elem$felt_id)
}