Esri/esri-leaflet — a frontend project — sits at 1.7k GitHub stars in the Frontend space. A lightweight set of tools for working with ArcGIS services in Leaflet. :rocket:
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Leaflet plugins for working with a handful of the most popular ArcGIS Service types. This includes Esri basemaps and feature services, as well as tiled map, dynamic map and image services.
This project is maintained with :heart: by folks on multiple teams at Esri, but we provide no guarantee of individual features, nor a traditional product lifecycle to support planning.
The goal of this project is not to replace the ArcGIS Maps SDK for JavaScript but rather to provide small components for only some aspects of the ArcGIS platform for developers who prefer to build mapping applications with Leaflet.
We are proud to facilitate a project which requires participation from our diverse user community in order to thrive and we welcome contributions from those just getting their feet wet in open-source.
Support for Geocoding services and Geoprocessing services, as well as service defined rendering are available as well (via additional plugins).
If you'd like to display Esri services in any Leaflet application, we ask that you adhere to our Terms of Use and attribution requirements.
Table of Contents
Getting Started
Quick Start
Samples, Tutorials, and API Reference
Additional Plugins
Frequently Asked Questions
Issues
Dependencies
Going Deeper
Development Instructions
Versioning
Contributing
Terms
Credit
License
Quick Start
The easiest way to get started is to load Esri Leaflet via CDN. Here is an example you can copy/paste into your own .html file: Esri Leaflet Quick Start
Samples, Tutorials, and API Reference
Samples, tutorials, and the API reference can be found at developers.arcgis.com/esri-leaflet.
If you notice any issues or would like to propose a change to the documentation, please let us know by creating an issue in this repository.
Additional Plugins
Many folks have written plugins to customize and extend Leaflet.
http://leafletjs.com/plugins.html
You can also pick and choose additional Esri Leaflet plugins.
What are the terms of use for ArcGIS Online services?
What exactly is Esri Leaflet? Is it a replacement for Leaflet?
Will Esri Leaflet replace the ArcGIS Maps SDK for JavaScript?
What is the benefit of using Esri Leaflet over using Leaflet all by itself?
What are the goals of Esri Leaflet?
Can I use Esri Leaflet with Leaflet Version 1.0.x?
How do you decide what features get included in Esri Leaflet?
I have an idea! What should I do?
When will you support "x"?
Can you implement feature "x"?
I want to contribute. How can I help?
I built something with Esri Leaflet can I show you?
I built a reusable component (layer type, api wrapper, ui control etc...) can I contribute it to Esri Leaflet?
Which services require authentication?
What are some good Leaflet Plugins?
What browsers does Esri Leaflet support?
What versions of ArcGIS Server does Esri Leaflet support?
Upgrading the version of Esri Leaflet used in my app broke everything!
Does Esri Leaflet support IE 'compatibility mode'?
I'm into TypeScript, but Esri Leaflet seems to be a vanilla JS thing. Can I find typings somewhere?
When exactly do I need to use a paid Esri developer account to deploy to production?
Issues
If something isn't working the way you expected, please take a look at previously logged issues that resolve common problems first. Have you found a new bug? Want to request a new feature? We'd love to hear from you. Please let us know by submitting an issue.
If you're looking for help you can also find answers on Stack Overflow and GeoNet.
Going Deeper
Development Instructions
If you'd like to inspect and modify the source of Esri Leaflet, follow the instructions below to set up a local development environment.
Fork and clone Esri Leaflet
cd into the esri-leaflet folder
Install the package.json dependencies by running npm install
Run npm start from the command line. This will compile minified source in a brand new dist directory, launch a tiny webserver and begin watching the raw source for changes.
Run npm test to make sure you haven't introduced a new 'feature' accidentally.
Make your changes and create a pull request
Dependencies
Esri Leaflet 1.x (available on CDN) can be used in apps alongside:
Leaflet version 0.7.x.
Esri Leaflet 2.x (available on CDN) can be used in apps alongside:
Leaflet version 1.x.
The master branch of this repository is only compatible with Leaflet 1.x.
Versioning
For transparency into the release cycle and in striving to maintain backward compatibility, Esri Leaflet is maintained under Semantic Versioning guidelines and will adhere to these rules whenever possible.
For more information on SemVer, please visit http://semver.org/.
Contributing
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Terms
If you're using Esri content and services, you'll need to license your usage with an API key or an ArcGIS identity. Full details can be found here: Deployment guidelines.
If you display an ArcGIS Online service in any Leaflet application, we require that you include Esri attribution and recognize data providers. Using this plugin, it couldn't be easier to follow the terms. Just select your basemap and the appropriate credits will be displayed dynamically in Leaflet's own Attribution control as users pan/zoom.
L.esri.basemapLayer("Topographic").addTo(map);
Esri Attribution Requirements
Licensing & Attribution
Credit
L.esri.DynamicMapLayer originally used code from AGS.Layer.Dynamic.js
L.esri.TiledMapLayer adapts some code from arcgis-level-fixer
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
A copy of the license is available in the repository's LICENSE file.
The most recent commit recorded on Esri/esri-leaflet was 1.2 years ago, based on the GitHub push timestamp. The repository has 800 forks — one of the better signals of community interest.
Is Esri/esri-leaflet open source?
Yes — Esri/esri-leaflet ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/Esri/esri-leaflet.
What license does Esri/esri-leaflet use?
Esri/esri-leaflet is released under the Apache-2.0 license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
What topics is Esri/esri-leaflet associated with?
GitHub's repository topics for Esri/esri-leaflet: "arcgis", "esri", "esri-leaflet", "javascript", "leaflet-plugin", "leaflet-plugins", "web-development". TopGit's editorial category is Frontend.
Where can I see Esri/esri-leaflet in action?
The project maintains a homepage at https://developers.arcgis.com/esri-leaflet/. The README tab on this page also usually contains screenshots and a quickstart.
Where do I read more about Esri/esri-leaflet?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/Esri/esri-leaflet is the definitive source.
Read full README in the tab above.
Curious whether esri-leaflet is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about esri-leaflet.