mapbox / mapbox/mapbox-gl-js

fill-extrusion layer with large area polygon on terrain, It looks like it's broken

Open
#10,536 2 comments 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**: v2.2.0

**browser**: chrome v89.0.4389.114

### Steps to Trigger Behavior

1. add map with terrain
2. add fill-extrusion layer that have large area polygon

### Link to Demonstration

https://codepen.io/caelan/pen/ExZWpXN

### Expected Behavior
Expected as flat terrain behavior

### Actual Behavior
![QQ截图20210402165528](https://user-images.githubusercontent.com/20149400/113400444-63b3a700-93d4-11eb-9d68-b1190fd2d050.png)

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

Open the linked CodePen and reproduce the fill-extrusion layer with a large-area polygon on terrain in Chrome, then compare it with flat terrain behavior. Trace the terrain and fill-extrusion rendering paths; done means the polygon renders as expected rather than showing the broken appearance in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics, frontend
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.