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

Terrain (RGB-encoded DEM) datasource returns 404 for empty tiles #10229

Open
sukhanovr opened this issue Dec 18, 2020 · 1 comment
Open

Terrain (RGB-encoded DEM) datasource returns 404 for empty tiles #10229

sukhanovr opened this issue Dec 18, 2020 · 1 comment
Labels
bug 🐞 needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else)

Comments

@sukhanovr
Copy link

sukhanovr commented Dec 18, 2020

mapbox-gl-js version: 2.0.0

browser: Chrome, Firefox

Steps to Trigger Behavior

  1. Use style with Terrain (RGB-encoded DEM) source and layer
  2. Navigate to any sea area

Link to Demonstration

https://jsfiddle.net/m6k791hj/6/
Coordinates are set to [0, 0], middle of the ocean, and there is of course no tiles for that region so tileset returns multiple 404.

image

Expected Behavior

As claimed in the issue tilesets should return 204 (No Content) for such cases

Actual Behavior

404 (Not Found) is returned

@mourner mourner added bug 🐞 needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else) labels Dec 21, 2020
@JuanIrache
Copy link

If this happens the "idle" event does not fire, so if our program depends on it it gets stuck. Any workarounds? Any way to make these failed requests fire the "error" event?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 needs investigation 🔍 Issues that require further research (e.g. it's not clear whether it's GL JS or something else)
Projects
None yet
Development

No branches or pull requests

3 participants