-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
mapbox gl version 51. The user aborted a request #7614
Comments
A screenshot is not a link to demonstration. Unless this can be reproduced on a live minimal example (like this one), we won't be able to diagnose the issue. Also, are you seeing anything wrong with the map behavior, or is it just about developer tools network tab indications? |
Hi @mourner. I can't give you more information, because it happens just when the map is loading.... Before the update it worked fine, without any error. |
Since I'm not able to reproduce this on public examples, and you're refusing to provide a minimal test case, I'll have to close the issue because it's impossible to diagnose. Will reopen if there's enough information provided in the comments. |
Noting that I received this same error in the console when I set a style in the map constructor then immediately changed the style with a call to map.setStyle. Clearly user error though and if anything it could just use a different error message :) var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/streets-v9'
});
map.setStyle("mapbox://styles/mapbox/satellite-v9"); |
Thank you @Eldrac! |
@mourner Here's a minimal test case: https://jsfiddle.net/p48q0mvd/1/ What's interesting is that sometimes you need to click
Let me know if this helps for reproducing this issue. |
using map.once("styledata", () => {
map.setStyle("mapbox://styles/mapbox/satellite-v9");
}); |
@cs09g I still can hit the |
mapbox-gl-js version: 51
browser: Firefox,Edge and Chrome
Steps to Trigger Behavior
Link to Demonstration
Expected Behavior
the map should load without any error
Actual Behavior
When the map is created, it cancel one of the request to get the style. It happens after update to version 51
The text was updated successfully, but these errors were encountered: