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

mapboxgl.util.getJSON missing #4393

Closed
schwanksta opened this issue Mar 9, 2017 · 1 comment
Closed

mapboxgl.util.getJSON missing #4393

schwanksta opened this issue Mar 9, 2017 · 1 comment

Comments

@schwanksta
Copy link
Contributor

mapbox-gl-js version: 0.33.0

Steps to Trigger Behavior

  1. Attempt to call mapboxgl.util.getJSON

Expected Behavior

As in previous version, perform an XHR request and get the JSON data.

Actual Behavior

Uncaught TypeError: Cannot read property 'getJSON' of undefined

Appears mapboxgl.util is not longer accessible in the latest release.

@jfirebaugh
Copy link
Contributor

Appears mapboxgl.util is not longer accessible in the latest release.

That's correct; see #1408. You'll now need to provide your own utility for Ajax, or use browser built-ins.

I've added this change to the CHANGELOG for 0.33.0.

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