Now it's even easier to look into the source of Esri Leaflet!

10-18-2014 03:15 PM
Frequent Contributor
0 0 1,449

We just pushed out a new version of Esri-Leaflet and now its easier than ever to get familiar with the source code of the API.


  1. navigate to and download the Source code (zip) associated with Release Candidate 2

Screenshot 2014-10-18 17.59.13.png

  1. unzip the folder on your own machine
  2. navigate to the ‘debug’ folder and open ‘sample.html’

Screenshot 2014-10-18 18.03.40.png

This application points at local source files that are organized in the same directory structure as the GitHub repository itself.  This means that you can use the developer tools inside your browser to inspect the API source.

Screenshot 2014-10-18 18.04.42.png

I’ve always found that setting breakpoints and stepping through the code slowly makes the logic that’s being employed to talk to ArcGIS Server and ArcGIS Online hosted content a lot easier to understand.

Screenshot 2014-10-18 18.01.39.png

  1. Ideally, you should probably consider configuring a local web server like Apache or IIS to develop with (so that you can load your applications using ‘http://’ protocol in a browser instead of relying on ‘file:///’), but it's just cool to say that digging into the source is as easy as 1, 2, 3
About the Author
ArcGIS Hub, anything open, JavaScript and baking bread.