mapboxer(
center = c(9.5, 40.5),
zoom = 7
) %>%
add_navigation_control() %>%
add_draw_control(
displayControlsDefault = FALSE,
controls = list(
polygon = TRUE,
trash = TRUE
)
)
mapboxer() %>%
add_draw_control()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.