I am not sure I have understood the co-existence of arcgis javascript api with the esri-leaflet library.

Can I use leaflet together with the javascript api.

For example can I have my map built with the javascript api (new esri.Map(...) ) and then add an L.esri.Dynamic layer ?

If not, I suppose I will have to choose which of the two different paths I want to follow.

1 Answer 1


esri leaflet is an alternative to the ArcGIS API for JavaScript, not something that makes much sense to try and combine.

L.esri.DynamicMapLayer provides comparable functionality (within Leaflet) for loading dynamic map services published to ArcGIS Server to the class 'esri/layers/ArcGISDynamicMapServiceLayer' in the JSAPI

please check out the esri leaflet FAQ for more info.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.