addSpinner {leaflet.extras2} | R Documentation |
Add Spin Plugin
Description
Adds an animated loading spinning over the map.
Usage
addSpinner(map)
startSpinner(map, options = NULL)
stopSpinner(map)
Arguments
map |
A map widget object created from |
options |
Spin.js options. Named list. See http://spin.js.org |
Value
A leaflet map object
References
https://github.com/makinacorpus/Leaflet.Spin
https://github.com/fgnass/spin.js
Examples
library(leaflet)
library(leaflet.extras2)
leaflet(data = quakes) %>%
addTiles() %>%
addSpinner() %>%
startSpinner(options = list("lines" = 7, "length" = 20)) %>%
addMarkers(~long, ~lat, popup = ~as.character(mag), label = ~as.character(mag)) %>%
stopSpinner()
[Package leaflet.extras2 version 1.2.2 Index]