Add a draw control to the map (experimental)

add_draw_control(map, ..., pos = NULL, data = NULL)

Arguments

map

A mapboxer object.

...

The options of the control.

pos

The position of the control. One of top-left, top-right, bottom-right or bottom-left.

data

A GeoJSON or sf object.

See also

https://github.com/mapbox/mapbox-gl-draw/blob/main/docs/API.md for available options for the draw control.