Dashed Lines comes to a solid line when lines overlapps
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
when using two overlapping dashed lines they are looking at same zoomlevel like a solid line without dash.
This only happens when the line is a big polygon. If i only take some coordinates like in the linked example it looks normal.

**mapbox-gl-js version**: 2.7.0
**browser**: chrome
### Steps to Trigger Behavior
1. use the first link for the normal behaviour.
2. use the second link for the bad behaviour.
3. at zoom in you should see at the place where boath overlapps a solid line.
### Link to Demonstration
good
https://jsfiddle.net/8mc6psue/2/
bad
https://jsfiddle.net/ua1nfzrq/14/
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
No project files or tests are named. Start by comparing the good and bad JSFiddle reproductions at the reported zoom level, then trace the dashed-line rendering path for large overlapping polygons. Done means overlapping dashed lines remain visibly dashed rather than becoming solid.
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
- 42/100