
Last chance! 50% off unlimited learning
Sale ends in
Add a standard control to the map
add_control(map, control_name, ..., pos = NULL)add_navigation_control(map, ..., pos = NULL)
add_scale_control(map, ..., pos = NULL)
add_fullscreen_control(map, pos = NULL)
A mapboxer object.
The (class) name of the control.
The options of the control.
The position of the control. One of top-left
, top-right
,
bottom-right
or bottom-left
.
https://docs.mapbox.com/mapbox-gl-js/api/markers/ for available options for the used control.
# NOT RUN {
map <- mapboxer() %>%
add_navigation_control(
pos = "top-left",
showCompass = FALSE
) %>%
add_fullscreen_control() %>%
add_scale_control(
unit = "nautical"
)
if (interactive()) map
# }
Run the code above in your browser using DataLab