| felt_add_map_layers | R Documentation | 
Add Layers to Existing Map
felt_add_map_layers(
  map_id,
  name = NULL,
  file_names = NULL,
  fill_color = NULL,
  stroke_color = NULL
)
map_id | 
 map identifier from url, from   | 
name | 
 Name of the layer  | 
file_names | 
 Files to include  | 
fill_color | 
 Color to fill shape with, typically a hexcode. Defaults to   | 
stroke_color | 
 Color to outline shape with, typically a hexcode. Defaults to   | 
a string with the id for the created layer
layer <- felt_add_map_layers(map_id = 'Rockland-2024-Districts-TBI8sDkmQjuK2GX9CSiHiUA',
                    file_names = fs::path_package('feltr',  'towns.geojson'),
                    name = 'Towns')
layer
# and delete layer
felt_delete_map_layer(map_id = 'TBI8sDkmQjuK2GX9CSiHiUA', layer_id = layer)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.