addEsriBasemapLayer: Adds a ArcGIS Basemap layer

Description Usage Arguments Examples

View source: R/basemapLayers.R

Description

Adds a ArcGIS Basemap layer

Usage

1
2
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

1
2
leaflet() %>%
   addEsriBasemapLayer(esriBasemapLayers$Oceans, autoLabels = TRUE)

Example output

Loading required package: leaflet
Loading required package: leaflet.extras

leaflet.esri documentation built on May 2, 2019, 2:39 a.m.