Esri Developer
Documentation
Features
Maps and scenes
Portal and content management
Data hosting
Data visualization
Spatial analysis
Place search
Geocoding addresses
Routing and directions
Data enrichment
Security and authentication
Offline mapping apps
Find datasets
SDKs and APIs
SDKs and APIs
Products
Explore developer products
Support
Explore help resources
Sign in
Search
Search
Sign in
Esri Leaflet
Sample Code
Home
Sample Code
API Reference
Plugins
GitHub
Featured
Basemap layers
Display a basemap layer
Display a basemap layer with labels
Add two basemap layers
Switch between basemap layers
Switch between basemap layers (
Control.
Layers)
Display a RT
L label language
Basemap places
Change the worldview
Feature layers
Display a feature layer
Style points
Style lines
Style polygons
Display a popup
Simplify complex features
Zoom to all features
Zoom to a subset of features
Add static text labels
Control feature layer drawing order
Add and delete features
Draw and edit shapes
Add a dynamic chart (
Chart.js)
Visualization
Display a heat map
Style a heat map
Cluster points
Style clusters
Display feature layer symbols
Tile layers
Display a tile layer
Display a custom tileset
Dynamic map layers
Display a dynamic map layer
Identify features
Display a popup
Filter by date range (map service)
Image map layers
Display an image map layer
Define a rendering rule
Define a mosaic rule
Identify imagery
Display a popup with pixel data
Filter by date range (image service)
Projection
Project and display a tile layer
Project and display a feature layer
Project and display a dynamic map layer
Query
Query a feature layer
Query a feature layer (advanced)
Display a feature layer snapshot
Perform a spatial query
Perform a spatial query (no map)
Filter by date range (feature service)
Query client and server-side (
Turf.js)
Geocoding
Search with a geocoding control