add_draw_control {mapboxer}R Documentation

Add a draw control to the map (experimental)

Description

Add a draw control to the map (experimental)

Usage

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.


[Package mapboxer version 0.4.0 Index]