View source: R/get_current_providers.R
use_providers | R Documentation |
Use a custom leaflet_providers
object, e.g. providers data fetched with
get_providers, with the leaflet
package.
use_providers(providers_info = NULL)
providers_info |
A custom |
if (require("V8") && require("jsonlite")) {
# Set providers to latest providers
use_providers(get_providers())
# Set providers to a custom providers object (specific version number)
use_providers(get_providers("1.4.0"))
use_providers("1.4.0")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.