use_providers {leaflet.providers}R Documentation

Use custom tile provider

Description

Use a custom leaflet_providers object, e.g. providers data fetched with get_providers, with the leaflet package.

Usage

use_providers(providers_info = NULL)

Arguments

providers_info

A custom leaflet_providers object. If NULL, uses default providers.

Examples


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")
}


[Package leaflet.providers version 2.0.0 Index]