mapbox / mapbox/mapbox-gl-js

fix triangulation issue in projected tile

Open
#11,131 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

![Screen Shot 2021-10-15 at 8 27 26 PM](https://user-images.githubusercontent.com/1421652/137566582-0c18bd15-7b1a-40d9-a6b5-d521722c0e19.png)

**mapbox-gl-js version**: `projections` branch

**browser**:

### Steps to Trigger Behavior

1. open `http://localhost:9966/debug/#7.27/38.039/-122.234`
2. `map.setProjection('winkelTripel')`

### Expected Behavior

No triangulation error.

### Actual Behavior

Triangulation error.

---

Either our reprojection and resampling is making the geometry invalid or there is an issue in earcut.

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

Reproduce the failure on the projections branch using the debug URL and `map.setProjection('winkelTripel')`. Trace the reprojection and resampling output into triangulation, then determine whether the geometry is invalid or earcut is responsible; done means the projection produces no triangulation error.

Written by the indexing model from the issue text.

Assessment

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