Description Usage Arguments Examples
View source: R/custom-controls.R
Add a mouse position control to the map
1 2 | add_mouse_position_control(map, mustache_template = NULL, pos = NULL,
css_text = NULL)
|
map |
A mapboxer object. |
mustache_template |
A mustache template
that contains the mustache tags |
pos |
The position of the control. One of |
css_text |
A |
1 2 3 4 5 6 7 | 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.