felt_add_map_layers_url | R Documentation |
See Felt "Upload Anything" documentation for detailed examples of potential URLs.
felt_add_map_layers_url(map_id, url, name = NULL)
map_id |
map identifier from url, from |
url |
Link to layer to include |
name |
Name of the layer |
a tibble::tibble for the created layer
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.