mapboxer
mapboxer copied to clipboard
geolocate
Hello is it possible to use geolocateControl of mapbox?
Hi @bonushenricus,
yes this is possible with the generic add_control
function:
mapboxer() %>%
add_control("GeolocateControl", trackUserLocation = TRUE)
# More options
mapboxer() %>%
add_control(
"GeolocateControl",
trackUserLocation = TRUE,
positionOptions = list(enableHighAccuracy = TRUE)
)