felt_add_map_layers {feltr}R Documentation

Add Layers to Existing Map

Description

Add Layers to Existing Map

Usage

felt_add_map_layers(
  map_id,
  name = NULL,
  file_names = NULL,
  fill_color = NULL,
  stroke_color = NULL
)

Arguments

map_id

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

name

Name of the layer

file_names

Files to include

fill_color

Color to fill shape with, typically a hexcode. Defaults to NULL.v

stroke_color

Color to outline shape with, typically a hexcode. Defaults to NULL.

Value

a string with the id for the created layer

Examples


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)


[Package feltr version 0.0.4 Index]