-
Notifications
You must be signed in to change notification settings - Fork 799
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
Uncaught SyntaxError: Unexpected token : when loading an Esri Basemap #1142
Comments
thanks for the report. my hunch is that this is a bug introduced during yesterday's ArcGIS Online release, but i'll need to confirm. related: #1064 |
it turns out we made a conscious choice to turn off JSONP support on static.arcgis.com to retire some old infrastructure and optimize our CDN. in Esri Leaflet land we should have been using thanks for opening this issue to bring it to my attention! |
@jgravois Thx for the quick fix, as well as this additional info on the AGOL change:
|
@jgravois Thanks for the quick fix ! |
Chrome 51
L.version
):^1.3.3
L.esri.VERSION
):^2.2.3 updated today to the last version
Steps to reproduce the error:
instanciate the map with a
featureLayer
.Until today i do not have any problem, but today, it seems like the attribution url doesn't send the same data anymore, because in the library script, we have the
_getAttributionData
that send ajsonp
request to arcgis, but now the given url https://static.arcgis.com/attribution/World_Topo_Map?callback=window._EsriLeafletCallbacks.c0&f=pjson returns a json, and this json isn't recognize (header text/plain).I think that we should now use an http request to get data instead of jsonp..
The text was updated successfully, but these errors were encountered: