gpsOptions: Options for the GPS Control
Description
Options for the GPS Control
Add a gps to the Map.
Removes the GPS Control
Activate the GPS Control.
You should have already added the GPS control before calling this method.
Deactivate the GPS Control.
You should have already added the GPS control before calling this method.
Usage
gpsOptions(position = "topleft", activate = FALSE, autoCenter = FALSE,
maxZoom = NULL, setView = FALSE)addControlGPS(map, options = gpsOptions())
removeControlGPS(map)
activateGPS(map)
deactivateGPS(map)
Arguments
activate
If TRUE activates the GPS on addition.
autoCenter
If TRUE auto centers the map when GPS location changes
maxZoom
If set zooms to this level when auto centering
setView
If TRUE sets the view to the GPS location when found
options
Options for the GPS control.
Examples
Run this code# NOT RUN {
leaflet() %>%
addTiles() %>%
addControlGPS()
# }
Run the code above in your browser using DataLab