felt_add_map_layers_url {feltr} | R Documentation |
Add Layers to Existing Map from URL
Description
See Felt "Upload Anything" documentation for detailed examples of potential URLs.
Usage
felt_add_map_layers_url(map_id, url, name = NULL)
Arguments
map_id |
map identifier from url, from |
url |
Link to layer to include |
name |
Name of the layer |
Value
a tibble::tibble for the created layer
Examples
# split the URL for length reasons
url <- paste0(
'https://www.rocklandgis.com/portal/sharing/rest/',
'content/items/73fc78cb0fb04580b4788937fe5ee697/data'
)
layer <- felt_add_map_layers_url(
map_id = 'Rockland-2024-Districts-TBI8sDkmQjuK2GX9CSiHiUA',
url = url,
name = 'Parks')
layer
# and delete the new layer
felt_delete_map_layer(map_id = 'TBI8sDkmQjuK2GX9CSiHiUA', layer_id = layer$id)
[Package feltr version 0.0.4 Index]