This repository has been archived by the owner on Sep 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
addEsriTiledMapLayer.Rd
32 lines (27 loc) · 1.63 KB
/
addEsriTiledMapLayer.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tiledMapLayers.R
\name{addEsriTiledMapLayer}
\alias{addEsriTiledMapLayer}
\title{Access tiles from ArcGIS Online and ArcGIS Server to visualize and identify features.}
\usage{
addEsriTiledMapLayer(map, url, options = tiledMapLayerOptions(),
layerId = NULL, group = NULL)
}
\arguments{
\item{map}{The leaflet map}
\item{url}{URL of the \href{http://resources.arcgis.com/en/help/arcgis-rest-api/#/Map_Service/02r3000000w2000000}{Map Service} with a tile cache.}
\item{options}{options for the tiledmap layer.}
\item{layerId}{A unique ID for the layer.}
\item{group}{The name of the group this layer should be added to.}
}
\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 \href{http://doc.arcgis.com/en/arcgis-online/share-maps/publish-tiles.htm#ESRI_SECTION1_F68FCBD33BD54117B23232D41A762E89}{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 \href{http://resources.arcgis.com/en/help/arcgisonline-content/index.html#//011q00000002000000}{ArcGIS Online}. Esri Leaflet will not support any other spatial reference for tile layers.
}
\examples{
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"))
}