mapbox / mapbox/mapbox-gl-js

When the line width is set to a large value, the tile edges of the line layer in the dynamic source will present rendering anomalies

Open
#13,608 1 comment 2 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

Hello, I have noticed that the latest official version 3.17.0 has fixed the issue of vertex calculation for polygons at tiled edges when the dynamic property of the source set to true. However, I have found that the rendering at tiled edges still has problems when the line width is set to a large value.
### mapbox-gl-js version

v3.17.0

### Browser and version

Chorme 143.0.7499.147

### Expected behavior

Render the line layer with large line width normally.

Image

### Actual behavior

When the line width is set to a large value, the tile edges of the line layer in the dynamic source will present rendering anomalies

### Link to the demonstration

https://codepen.io/dimayzy/pen/QwNeOBq

### Steps to trigger the unexpected behavior

Set the line width to a large value and zoom to a higher level.

### Relevant log output

```shell

```

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

Start with the linked CodePen reproduction, using a dynamic source, a line layer with a large width, and a high zoom level. Trace the line-layer rendering behavior at tile edges and compare it with the expected normal rendering; done means the demonstrated anomaly no longer appears.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.