add_draw_control: Add a draw control to the map (experimental)

Description Usage Arguments See Also

View source: R/draw-control.R

Description

Add a draw control to the map (experimental)

Usage

1
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.


crazycapivara/mapboxer documentation built on Nov. 13, 2021, 3:22 a.m.