L.esri.Layers.BasemapLayer
Quickly access Esri published map tiles from ArcGIS Online or ArcGIS Server in Leaflet.
Inherits from L.TileLayer
Constructor
Constructor | Description |
---|---|
L.esri.basemapLayer( |
key refers to the specific basemap you'd like to add. The options parameter can accept the same options as L.TileLayer . |
Basemaps
These maps have worldwide coverage at a variety of zoom levels.
Streets
Topographic
NationalGeographic
Oceans
Gray
DarkGray
Imagery
ShadedRelief
Terrain
Optional Labels
These are optional layers that add extra text labels to the basemaps.
OceansLabels
- Labels to pair with theOceans
basemapGrayLabels
- Labels to pair with theGray
basemapDarkGrayLabels
- Labels to pair with theDarkGray
basemapImageryLabels
- Labels including political boundaries to pair with theImagery
basemapImageryTransportation
- Street map labels for pairing with theImagery
basemapShadedReliefLabels
- Labels for pairing with theShadedRelief
base mapTerrainLabels
- Labels for pairing with theTerrain
base map
Options
L.esri.TiledMapLayer
accepts all L.TileLayer
options.
Methods
L.esri.BasemapLayer
inherits all methods from L.TileLayer
.
Events
L.esri.TiledMapLayer
fires all L.TileLayer
events.
Example
var map = L.map('map').setView([37.75,-122.45], 12);
L.esri.basemapLayer("Topographic").addTo(map);
Esri Leaflet is a project from the Esri PDX R&D Center and the Esri Community