-
-
Notifications
You must be signed in to change notification settings - Fork 786
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
[WIP] Suppress error messages for missing raster tiles #161
Conversation
Bundle size report: Size Change: +37 B
ℹ️ View Details
|
Thanks @mactrem! I like the change, but it appears to have broken some unit tests. Would you be able to take a look at the test failures and fix the failing tests? |
@lseelenbinder |
@mactrem what's the status of this PR? any chance you can fix the tests? I would like to merge this, I don't see an issue with the code as long as the tests pass. |
We've just merged the typescript branch to |
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I rebased this branch on current main at https://github.com/xabbu42/maplibre-gl-js/tree/pull-160 and the |
I'm not sure what are you suggesting @xabbu42, if you think this is not the right direction in terms of fixing this issue we can and should reject this PR. |
After reading through mapbox/mapbox-gl-js#1800 this seems to actually implement the approach favored there, that is use 204 instead of 404 explicitely to allow for missing tiles (and the according behaviour of maplibre-gl-js to fall back on other zoom levels etc) without triggering the browser loging of 404. |
@HarelM I'm not suggesting anything yet as I'm still confused on the situation myself. My gut feeling would be that 204 should be equivalent to 200 with content-length 0 at least for vector tiles. I can see the logic behind treating 204 as an empty image for raster tiles. But the discussion in the mapbox issue seems to disagree with this takes. |
In the end compatiblity to other products fetching tiles is probably the most important concern here. So this pull request should only make it in if other consumers and especially mapbox-gl-js 2.x have the same behavior, that is they also fallback to higher zoomlevels on 204 responses. |
I see, thanks for the clarification! |
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This PR was closed because it has been stalled for 30 days with no activity. |
This PR adds explicit support for the 204 status code returned from a tileserver to get rid of
the large number of error messages in the dev console when requesting raster sources.
closes #160
Launch Checklist
maplibre-gl-js
changelog:<changelog></changelog>