View source: R/get_current_providers.R
get_providers | R Documentation |
Fetch leaflet providers from Leaflet.js.
get_providers(version_num = NULL)
version_num |
Version number with which to update leaflet providers.
If |
leaflet_providers
object containing providers_version_num
, providers_data
,
providers_details_data
, src
if (
interactive() &&
requireNamespace("V8", quietly = TRUE) &&
requireNamespace("jsonlite", quietly = TRUE)
) {
get_providers()
get_providers("1.8.0")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.