Adds an sf object to the map.

add_sf(map, data = get_map_data(map), ...)

Arguments

map

a mapdeck map object

data

data to be used in the layer. All coordinates are expected to be EPSG:4326 (WGS 84) coordinate system

...

other argumetns passed to one of the plotting layers. See details

Details

The plotting layer is determined by the type of sf geometries.