Adds an animated loading spinning over the map.
Arguments
- map
A map widget object created from
leaflet
- options
Spin.js options. Named list. See http://spin.js.org
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()