SlideShare a Scribd company logo
Building lightweight mapping apps
with Esri Leaflet
Andy Gup, Esri
Agenda!
Overview of Esri-Leaflet API
Introduce basic coding patterns
Who am I?
Andy Gup
Mobile Developer
Developer Outreach Team
Practice what I preach
U.S.F.S Volunteer Backcountry Ranger
Open Source mapping API
Used by OpenStreetMap, Mapbox, Data.gov
Small – just 33KB!
Extensible thru plug-ins
Esri-Leaflet – a brief history
Simplicity: Leaflet + ArcGIS Online + Services
Goal is to be lightweight
Grown in capabilities, contributors and stability
Esri’s most popular open source project
http://esri.github.io/esri-leaflet/
Esri-Leaflet = Lightweight!
CDN
Current release: v2.0.0-beta.5
http://esri.github.io/esri-leaflet/download/
Dependencies
Esri Leaflet 1.x -> Leaflet v0.7.x
Esri Leaflet 2.x -> Leaflet 1.0.0-beta1
Github master branch -> Leaflet 1.0.x
Capabilities (Part 1 of 2)
Layers
–Base maps (of course!)
–Feature Layer overlay
–Custom Tile Layers (non-mercator)
–Dynamic Map Layers
–Image Map Layers
–Clustering & Heatmaps
Capabilities (Part 2 of 2)
Tasks - Query, Find, Identify
FeatureLayer – display, editing
ArcGIS Authentication
Geocoding
Geoprocessing
Rendering
Basic Esri-Leaflet coding pattern
L.esri.XYZ
For example…
L.esri.basemapLayer
Demo - Hello World
Leaflet Map Constructor
Create map and manipulate
L.map(<HTMLElement|String>, {
options?
});
Leaflet Map Constructor
var map = L.map(“mapDiv”)
.setView([40, -96], 4);
Leaflet Map Constructor
var map = L.map(“mapDiv”)
.setView([40, -96], 4);
jQuery-style Chaining
Basemaps
var layer = L.esri.basemapLayer('Topographic')
.addTo(map);
Basemaps
var layer = L.esri.basemapLayer('Topographic')
.addTo(map);
jQuery-style Chaining
Basemaps
Streets
Topographic
NationalGeographic
Oceans
Gray
DarkGray
Imagery
ShadedRelief
Terrain
Basemaps – optional labels
OceansLabels
GrayLabels
DarkGrayLabels
ImageryLabels
ImageryTransportation
ShadedReliefLabels
TerrainLabels
Demo - Hello World
FeatureLayer
var featureLayer =
L.esri.featureLayer({
url: “http://services.xyz.com…”
})
.addTo(map);
Demo - FeatureLayer
Clustered FeatureLayer
//Uses L.markercluster plugin
var featureLayer =
L.esri.clusteredFeatureLayer({
url: “http://services.xyz.com…”
})
.addTo(map);
Demo - Clustered FeatureLayer
Heatmap FeatureLayer
//Uses L.heat plugin
var featureLayer =
L.esri.heatmapFeatureLayer({
url: “http://services.xyz.com…”,
radius: 12
})
.addTo(map);
Demo - Heatmap FeatureLayer
https://services.arcgis.com/rOo16HdIMeOBI4Mb/ArcGIS/rest/services/Graffiti_Reports/FeatureServer/0
Clustered Not Clustered
Demo – FeatureLayer Editing!
You can add, update or delete
Demo – FeatureLayer Popups
Demo – Geocoding Control
Basic Renderer
Inherits FeatureService’s renderer
Defines a set of symbols used by graphics
FeatureService’s Renderer
Renderer
Demo – Basic Renderer
https://github.com/Esri/esri-leaflet-renderers
Smackdown!
Esri Leaflet vs. ArcGIS JavaScript API
Who wins?
No One!
Choose the right API for the job.
ArcGIS API for JavaScript
Officially maintained by a large team
Supports most all ArcGIS functionality
Many UI components
Many helper components from Dojo
Esri Leaflet
Need fast performance
Integrating into existing apps
Already familiar with Leaflet
Simpler, focused toolset
Want to leverage Leaflet plugins
Easier integration into frameworks
Andy Gup, Esri
Developer Evangelist
http://www.andygup.net
agup@esri.com
@agup

More Related Content

ODP
OpenLayers vs. Leaflet
PDF
Web Mapping with Drupal
PDF
Getting Oriented with MapKit: Everything you need to get started with the new...
PDF
ソーシャルアプリでの Amazon Elastic MapReduce 活用事例
PDF
What's new in ar kit 2
PDF
GitHub + Mapping Apps in 100 lines or less using the ArcGIS API for JavaScript
PDF
2013 PLSC Track, Combined Adjusted Factors, Custom Projections and GPS Locali...
PDF
2013 Geospatial Data and Project Management Track, Mobile Big Data by Genie Hays
OpenLayers vs. Leaflet
Web Mapping with Drupal
Getting Oriented with MapKit: Everything you need to get started with the new...
ソーシャルアプリでの Amazon Elastic MapReduce 活用事例
What's new in ar kit 2
GitHub + Mapping Apps in 100 lines or less using the ArcGIS API for JavaScript
2013 PLSC Track, Combined Adjusted Factors, Custom Projections and GPS Locali...
2013 Geospatial Data and Project Management Track, Mobile Big Data by Genie Hays

Similar to 2015 FOSS4G Track - Building Lightweight Mapping Apps with Esri Leaflet by Andy Gup (20)

PPTX
Building Web Apps with the Esri-Leaflet Plugin - Dubai DevSummit 2013
PDF
Building Maps with Leaflet
PDF
Esri Map App Builders
PPTX
Intro to Apache Spark by Marco Vasquez
PDF
Core Android
KEY
JavaScript Growing Up
PPTX
MySQL 5.7 GIS
PDF
Integrating PostGIS in Web Applications
PDF
Lighthouse: Large-scale graph pattern matching on Giraph
PDF
Lighthouse: Large-scale graph pattern matching on Giraph
PDF
Play framework
PDF
Of Nodes and Maps (Web Mapping with Drupal - Part II)
PPT
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
PDF
Node Interactive: Node.js Performance and Highly Scalable Micro-Services
PDF
iOS Swift application architecture
PPT
PDF
Dmytro Safonov "Open-Source Map Viewers"
PPT
principles of gis 2007 Lecture2_BGTD.ppt
PPT
Open Source GIS
PDF
Power and Elegance - Leaflet + jQuery
Building Web Apps with the Esri-Leaflet Plugin - Dubai DevSummit 2013
Building Maps with Leaflet
Esri Map App Builders
Intro to Apache Spark by Marco Vasquez
Core Android
JavaScript Growing Up
MySQL 5.7 GIS
Integrating PostGIS in Web Applications
Lighthouse: Large-scale graph pattern matching on Giraph
Lighthouse: Large-scale graph pattern matching on Giraph
Play framework
Of Nodes and Maps (Web Mapping with Drupal - Part II)
Performance and Scalability for Maps API Sites (Dev Fest '10 Mexico)
Node Interactive: Node.js Performance and Highly Scalable Micro-Services
iOS Swift application architecture
Dmytro Safonov "Open-Source Map Viewers"
principles of gis 2007 Lecture2_BGTD.ppt
Open Source GIS
Power and Elegance - Leaflet + jQuery
Ad

More from GIS in the Rockies (20)

PPTX
GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
PPTX
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
PPTX
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
PDF
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
PDF
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
PDF
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
PDF
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
PDF
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
PDF
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
PDF
2018 GIS in Recreation: The Making of a Trail
PDF
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
PDF
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
PDF
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
PDF
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
PDF
2018 GIS in Recreation: A Creek Runs Through It
PDF
2018 GIS in Recreation: Virtually Touring the National Trails
PDF
2018 GIS in the Rockies PLSC Track: Turning Towards the Future
PDF
2018 GIS in the Rockies PLSC: Intro to PLSS
PDF
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
PDF
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
GISCO Fall 2018: Bike Network Equity: A GIS and Qualitative Analysis of Ameri...
GISCO Fall 2018: Colorado 811: Changes and Challenges – Brian Collison
GISCO Fall 2018: Senate Bill 18-167 and GIS – Dave Murray
2018 GIS in the Rockies Workshop: Coordinate Systems and Projections
2018 GIS in Emergency Management: Denver Office of Emergency Management Overview
2018 GIS in the Rockies Vendor Showcase (Th): The Data Driven Government
2018 GIS in the Rockies Vendor Showcase (Th): Solving Real World Issues With ...
2018 GIS in the Rockies Vendor Showcase (Th): ERDAS Imagine What's New and Ti...
2018 GIS in the Rockies Vendor Showcase (Th): Building High Performance Gover...
2018 GIS in Recreation: The Making of a Trail
2018 GIS in Recreation: The Latest Trail Technology Crowdsourcing Maps and Apps
2018 GIS in the Rockies: Riparian Shrub Assessment of the Mancos River Canyon...
2018 GIS in Development: Partnerships Lead to Additional Recreational Content...
2018 GIS in Recreation: Adding Value to Colorado the Beautiful Initiative carr
2018 GIS in Recreation: A Creek Runs Through It
2018 GIS in Recreation: Virtually Touring the National Trails
2018 GIS in the Rockies PLSC Track: Turning Towards the Future
2018 GIS in the Rockies PLSC: Intro to PLSS
2018 GIS in the Rockies PLSC Track: Grid to Ground NATRF2022
2018 GIS in Development: USGS and Citizen Science Success and Enhancements fo...
Ad

Recently uploaded (20)

PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Architecture types and enterprise applications.pdf
PPT
What is a Computer? Input Devices /output devices
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Hybrid model detection and classification of lung cancer
PPTX
TLE Review Electricity (Electricity).pptx
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
STKI Israel Market Study 2025 version august
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Group 1 Presentation -Planning and Decision Making .pptx
O2C Customer Invoices to Receipt V15A.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Architecture types and enterprise applications.pdf
What is a Computer? Input Devices /output devices
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Final SEM Unit 1 for mit wpu at pune .pptx
OMC Textile Division Presentation 2021.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
1. Introduction to Computer Programming.pptx
Hybrid model detection and classification of lung cancer
TLE Review Electricity (Electricity).pptx
A contest of sentiment analysis: k-nearest neighbor versus neural network
A comparative study of natural language inference in Swahili using monolingua...
STKI Israel Market Study 2025 version august
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Getting started with AI Agents and Multi-Agent Systems
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

2015 FOSS4G Track - Building Lightweight Mapping Apps with Esri Leaflet by Andy Gup