Install and set up

You can access Esri Leaflet modules on the CDN or you can install them with NPM. The builds are also available for download on GitHub. To find the latest release and to learn about older versions and compatibility, go to Releases.

Leaflet library

leaflet

leaflet is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
         
1
2
3
4
5
6
7
8
9
<script
  src="https://unpkg.com/leaflet@1.9.2/dist/leaflet.js"
  integrity="sha512-KMraOVM0qMVE0U1OULTpYO4gg5MZgazwPAPyMQWfOkEshpwlLQFCHZ/0lBXyviDNVL+pBGwmeXQnuvGK8Fscvg=="
  crossorigin=""></script>
<link
    rel="stylesheet"
    href="https://unpkg.com/leaflet@1.9.2/dist/leaflet.css"
    integrity="sha512-UkezATkM8unVC0R/Z9Kmq4gorjNoFwLMAWR/1yZpINW08I79jEKx/c8NlLSvvimcu7SL8pgeOnynxfRpe+5QpA=="
    crossorigin="" />

Esri Leaflet plugin

The main CDN and NPM references are listed below. To find other Esri and community plugins, go to Plugins.

esri-leaflet

Access the core mapping functionality to interact with ArcGIS location services.

esri-leaflet is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/esri-leaflet@3.0.8/dist/esri-leaflet.js"
  integrity="sha512-E0DKVahIg0p1UHR2Kf9NX7x7TUewJb30mxkxEm2qOYTVJObgsAGpEol9F6iK6oefCbkJiA4/i6fnTHzM6H1kEA=="
  crossorigin=""></script>

esri-leaflet-vector

Access and display vector tile layers and vector basemap layers.

esri-leaflet-vector is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/esri-leaflet-vector@4.0.0/dist/esri-leaflet-vector.js"
  integrity="sha512-EMt/tpooNkBOxxQy2SOE1HgzWbg9u1gI6mT23Wl0eBWTwN9nuaPtLAaX9irNocMrHf0XhRzT8B0vXQ/bzD0I0w=="
  crossorigin=""></script>

esri-leaflet-geocoder

A visual control for finding addresses and places that uses the geocoding service.

esri-leaflet-geocoder is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
         
1
2
3
4
5
6
7
8
9
<script
  src="https://unpkg.com/esri-leaflet-geocoder@3.1.3/dist/esri-leaflet-geocoder.js"
  integrity="sha512-mwRt9Y/qhSlNH3VWCNNHrCwquLLU+dTbmMxVud/GcnbXfOKJ35sznUmt3yM39cMlHR2sHbV9ymIpIMDpKg4kKw=="
  crossorigin=""></script>
<link
    rel="stylesheet"
    href="https://unpkg.com/esri-leaflet-geocoder@3.1.3/dist/esri-leaflet-geocoder.css"
    integrity="sha512-IM3Hs+feyi40yZhDH6kV8vQMg4Fh20s9OzInIIAc4nx7aMYMfo+IenRUekoYsHZqGkREUgx0VvlEsgm7nCDW9g=="
    crossorigin="" />

esri-leaflet-cluster

Display clusters for overlapping points in a feature layer.

esri-leaflet-cluster is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/esri-leaflet-cluster@3.0.0/dist/esri-leaflet-cluster.js"
  integrity="sha512-XFCzSxay1bEwLt/pTNuKEw11WbMGlWUqSLMGUtsle2Zbddt2C5uf18w0HeHbc0NP9BTFy1Mzhab7Bkr+nxp34g=="
  crossorigin=""></script>

esri-leaflet-heatmap

Constructs a heatmap layer from a feature layer that contains points.

esri-leaflet-heatmap is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/esri-leaflet-heatmap@2.0.1/dist/esri-leaflet-heatmap.js"
  integrity="sha512-lLo+xSNI2/unVl7Diwz+umq6xVFELYCt2kyhTSY5Gc07D62Uag68BZeXiqaN9sfnAwyq27uu912N06sRXweH2w=="
  crossorigin=""></script>

esri-leaflet-renderers

Display the renderer and symbols defined in the feature service for a feature layer.

esri-leaflet-renderers is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/esri-leaflet-renderers@3.0.0/dist/esri-leaflet-renderers.js"
  integrity="sha512-tqY7QUz7UHKLqhBX1SVYBsn6EKeadkSqYXsdj3RbzZdY8jUq1t0Hi+CS7vylbMIM/jcmN4PgelBhiKvCjTJ7GQ=="
  crossorigin=""></script>

esri-leaflet-gp

Simplifies making calls to geoprocessing tasks.

esri-leaflet-gp is distributed as both ES Modules and Common JS modules.

Use dark colors for code blocksCopy
    
1
2
3
4
<script
  src="https://unpkg.com/esri-leaflet-gp@3.0.0/dist/esri-leaflet-gp.js"
  integrity="sha512-eCye7787EK8BVBNsj7Azq0fSpj3TaUc++phMoSySv+qoJ+F8+uOQr97GKg/76R1kgdlbBIRst5Sd2/xxeuN+Xg=="
  crossorigin=""></script>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.