fix triangulation issue in projected tile
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description

**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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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