map <- mapboxer(zoom = 4) %>%
add_mouse_position_control(
mustache_template = "<b>Lng:</b>{{lng}}, <b>Lat:</b>{{lat}}",
pos = "bottom-left"
)
if (interactive()) map
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.