mapbox / mapbox/mapbox-gl-js

After setting the "line-translate" property to the line layer, the line layer will break at some zoom levels in version 1.x.x

Open
#12,759 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug :lady_beetle:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

**mapbox-gl-js version**: v1.13.2
**browser**: Version 111.0.5563.147 (official version) (64-bit)

### Steps to Trigger Behavior
1. Add a line layer.
2. Change the line-translate property of the line layer.

### Link to Demonstration
https://codepen.io/SuperHuZhiPeng/pen/gOBpaMQ

### Expected Behavior
Line layers should not have breaks
### Actual Behavior
![230812195-8ad24d98-8976-4fdd-b5ee-16277d81ea67](https://github.com/mapbox/mapbox-gl-js/assets/96167408/98922f8a-8281-4478-b9bf-272562a4a0fe)
![230812227-418ab2e5-e806-48b0-9ae1-0fed0a15a9b2](https://github.com/mapbox/mapbox-gl-js/assets/96167408/7bdbfd63-6ffe-434a-a020-eb11bab16fcb)

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 by reproducing the break in the linked CodePen demo with mapbox-gl-js v1.13.2, focusing on the line layer after changing its line-translate property at different zoom levels. Compare the expected uninterrupted line with the actual rendering and verify that the line layer no longer breaks across the affected zoom levels.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.