Closed mercy-monica closed 6 years ago
my best guess is that you are encountering an error because the specific service you're trying to load using esri leaflet doesn't support CORS.
see https://github.com/Esri/esri-leaflet-doc/issues/79 for more information.
without you taking the time to identify the versions of Leaflet and Esri Leaflet you're using and sharing either a live reproducible test case or code snippet, there's not much additional assistance i can provide.
closing as a duplicate of https://gis.stackexchange.com/questions/291084/cors-issue-in-leaflet-using-arcgis-server
ie: Chrome 51, IE11
L.version
):0.7.7, 1.0.0?
L.esri.VERSION
):1.0.4, 2.0.3,
master
?Steps to reproduce the error:
What happens is [X].
I was expecting [Y].
(if possible, create a jsbin that demonstrates the problem)
webpack, browserify, RequireJS?