leaflet.esri (version 1.0.0)

addEsriBasemapLayer: Adds a ArcGIS Basemap layer

Description

Adds a ArcGIS Basemap layer

Usage

addEsriBasemapLayer(map, key, autoLabels = FALSE, layerId = NULL,
  group = NULL, options = NULL)

Arguments

map

The leaflet map

key

ID of the layer

autoLabels

whether to show corresponding labels layer

layerId

Unique ID for the layer

group

The group this layer belongs to.

options

Basemap Layer Options. You can pass tileOptions().

Examples

Run this code
# NOT RUN {
leaflet() %>%
   addEsriBasemapLayer(esriBasemapLayers$Oceans, autoLabels = TRUE)
# }

Run the code above in your browser using DataLab