line-gap-width produces overlapping lines on acute angles
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
This issue was reported in https://github.com/mapbox/mapbox-gl-native/issues/13227 as a cross-platform bug so I'm creating a corresponding JS ticket here.
**mapbox-gl-js version**:
v0.50.0
**browser**:
any
### Steps to Trigger Behavior
1. Add a GeoJSON line with angles less than 90° (it's not clear what exactly the threshold might be)
2. Set `line-gap-width`for the line (the bug seems to occur regardless of the values set for `line-width`, `line-gap-width` and `line-join`)
### Link to Demonstration
https://jsbin.com/sicomij/edit?html,output
### Expected Behavior
Line gap outlines should not intersect at a line join regardless of the join's angle
### Actual Behavior
Line gap outlines do intersect at line joins less than 90°
### Line Join Values
Round

Miter

Bevel

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
Start with the linked JSBin reproduction and inspect the line-gap-width behavior at acute line joins, comparing the round, miter, and bevel cases. Done means gap outlines no longer intersect for angles below 90°; the issue names no repository file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, 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