addEsriTiledMapLayer: Access tiles from ArcGIS Online and ArcGIS Server to...

Description Usage Arguments Examples

View source: R/tiledMapLayers.R

Description

If you have published a Feature Service in ArcGIS Online, it can be used to create a static set of tiles as well. You can find details about that process in the ArcGIS Online Help. Your map service must be published using the Web Mercator Auxiliary Sphere tiling scheme (WKID 102100/3857) and the default scale options used by Google Maps, Bing Maps and ArcGIS Online. Esri Leaflet will not support any other spatial reference for tile layers.

Usage

1
2

Arguments

map

The leaflet map

url

URL of the Map Service with a tile cache.

options

options for the tiledmap layer.

layerId

A unique ID for the layer.

group

The name of the group this layer should be added to.

Examples

1
2
3
4
5
6
leaflet() %>% setView(-81.47, 30.70, 12) %>%
  addEsriTiledMapLayer(
    url = "https://services.arcgisonline.com/ArcGIS/rest/services/USA_Topo_Maps/MapServer")

## for more examples see
# browseURL(system.file("examples/tiledMapLayers.R", package = "leaflet.esri"))

Example output

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

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