mapbox / mapbox/mapbox-gl-js

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

Open
#10,229 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle: needs investigation :mag:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**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](https://user-images.githubusercontent.com/6266456/102622929-64d50700-414a-11eb-8742-600f2cef3f2d.png)

### Expected Behavior
As claimed in the [issue](https://github.com/mapbox/mapbox-gl-js/issues/1800) tilesets should return 204 (No Content) for such cases
### Actual Behavior
404 (Not Found) is returned

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked JSFiddle and inspect the network responses while viewing the ocean coordinates [0, 0]. Compare the Terrain RGB-encoded DEM datasource behavior with the expectation in issue #1800, then determine whether the 404 is handled in mapbox-gl-js or returned by the tileset service. Done means empty terrain regions no longer produce the reported 404 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.