Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: L.esri.Request undefined? #793

Closed
bassena opened this issue Jun 29, 2016 · 2 comments
Closed

Question: L.esri.Request undefined? #793

bassena opened this issue Jun 29, 2016 · 2 comments

Comments

@bassena
Copy link

bassena commented Jun 29, 2016

I couldn't find a definitive answer online. Is there a specific time in the file load process at which L.esri.Request is defined? It seems that at anytime I try to use L.esri.Request (i.e. to force L.esri.get to be set to use JSONP, such as described here). I get an undefined error on L.esri.Request. I tried creating a new blank project with only leaflet + esri-leaflet and this still occurs. Am I being silly and missing something? If it's worth anything, I'm in the process of updating scripts from previous versions of Leaflet and esri-leaflet.

This issue is while using Leaflet 1.0.0-rc.1 and esri-leaflet v2.0.0. Any insight would be great, thanks!

@jgravois
Copy link
Contributor

We removed L.esri.Request() in 2.0.0-beta.1. L.esri.request() is defined immediately.

From the Changelog:

L.esri.Request has been removed. Please use L.esri.get, L.esri.get.CORS, L.esri.get.JSONP, L.esri.post or L.esri.request directly.

@bassena
Copy link
Author

bassena commented Jun 30, 2016

I see, thanks! I think the website should be updated to reflect these new changes to avoid future confusion, seeing as 2.0.0 seems to be the current stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants