Esri Leaflet and ArcGIS location services
Esri Leaflet is lightweight set of JavaScript tools for accessing ArcGIS location services. Use this guide to learn how to develop mapping and location-based applications with Esri Leaflet and ArcGIS location services.
Audience: Developers building mapping, location-based, and spatial analysis solutions.
Maps
Learn how to create and display maps with basemap layers.
Layers
Learn how to add different types of data layers to maps.
Query and edit
Learn how to work with feature layers and feature services.
Style and data visualization
Learn how to style data layers and basemap layers for maps.
Geocode and search
Learn how to find addresses, businesses, and places with the geocoding service.
Route and directions
Learn how to find a route and directions and service areas with the routing service.
Demographic data
Learn how to get demographic data with the GeoEnrichment service.
Get started
To start building applications with location services, you need an account and an API key.
1. Sign in with your ArcGIS account
Access the developer dashboard and tools you need to start building applications.
Get a free developer account2. Start with an API key
The ArcGIS Platform supports different authentication methods. You can use an API key or OAuth 2.0 access token; we recommend starting with an API key. Learn more in Security and authentication.
Get an API key3. Quick start
Below is a simple example that shows how to create a map with Esri Leaflet and the basemap layer service.
To build this map:
Open the code in .
Replace the
apiKey
with your API key from the dashboard .Change line
4. Tutorials
Follow step-by-step tutorials to learn more about how to integrate Esri Leaflet with other location services.

Display a map
Create and display a map with the basemap layer service.

Search for an address
Find an address or place using a search box and the Geocoding service.

Find a route and directions
Find a route and directions with the route service.