mapbox / mapbox/mapbox-gl-js

Dashed Lines comes to a solid line when lines overlapps

Open
#11,576 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :lady_beetle:
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.
![image](https://user-images.githubusercontent.com/76100214/157294225-779f345e-7538-4b0c-883d-1a9534b971b1.png)

**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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.