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.js script and css tag version too old for current studio maps. #68

Open
jackwilmerding opened this issue Oct 22, 2024 · 0 comments

Comments

@jackwilmerding
Copy link

jackwilmerding commented Oct 22, 2024

<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v2.11.0/mapbox-gl.css' rel='stylesheet' />

in index.html needs to be updated to

<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v3.7.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v3.7.0/mapbox-gl.css' rel='stylesheet' />

so that current mapbox studio maps will work with it. With 2.11.0, I could load streets v11 but my map I had just created showed up blank. Changing the version to 3.7.0 (current listed in documentation for MapboxGL) fixed the issue immediately.

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

1 participant