Extends L.
L.esri.basemap
is used to display classic raster tiled Esri hosted basemaps and attributes data providers appropriately. The Terms of Use for Esri hosted services apply to all Leaflet applications.
Constructor
Constructor | Description |
---|---|
L.esri.basemapLayer(<String> key, <Object> options) | key refers to the specific basemap you'd like to add. The options parameter can accept the same options as L. . |
Basemaps
These maps have worldwide coverage at a variety of zoom levels.
Streets
Topographic
National
Geographic Oceans
Gray
Dark
Gray Imagery
Imagery
(added in 2.1.3)Clarity Imagery
(added in 2.2.0)Firefly Shaded
Relief Terrain
USA
(added in 2.0.0)Topo Physical
(added in 2.2.0)
Optional Labels
These are optional layers that add extra text labels to the basemaps.
Oceans
- Labels to pair with theLabels Oceans
basemapGray
- Labels to pair with theLabels Gray
basemapDark
- Labels to pair with theGray Labels Dark
basemapGray Imagery
- Labels including political boundaries to pair with anyLabels Imagery
basemapImagery
- Street map labels for pairing with anyTransportation Imagery
basemapShaded
- Labels for pairing with theRelief Labels Shaded
basemapRelief Terrain
- Labels for pairing with theLabels Terrain
orPhysical
basemap
Options
L.esri.basemap
also accepts all L.
options.
Option | Type | Default | Description |
---|---|---|---|
token | String | null | Will use this token to authenticate all calls to the service. |
ignore | boolean | null | When true , will not show the deprecation warning in the developer console. |
Methods
L.esri.
inherits all methods from L.
.
Events
L.esri.
fires all L.
events.
Example
var map = L.map('map').setView([37.75, -122.45], 12);
L.esri.basemapLayer('Topographic').addTo(map);