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.
StreetsTopographicNationalGeographic OceansGrayDarkGray ImageryImagery(added in 2.1.3)Clarity Imagery(added in 2.2.0)Firefly ShadedRelief TerrainUSA(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 OceansbasemapGray- Labels to pair with theLabels GraybasemapDark- Labels to pair with theGray Labels DarkbasemapGray Imagery- Labels including political boundaries to pair with anyLabels ImagerybasemapImagery- Street map labels for pairing with anyTransportation ImagerybasemapShaded- Labels for pairing with theRelief Labels ShadedbasemapRelief Terrain- Labels for pairing with theLabels TerrainorPhysicalbasemap
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.basemap inherits all methods from L..
Events
L.esri.tiled fires all L. events.
Example
var map = L.map('map').setView([37.75, -122.45], 12);
L.esri.basemapLayer('Topographic').addTo(map);