mapbox / mapbox/mapbox-gl-js

Use 'line-z-offset', lines cannot be vertical

Open
#13,612 3 comments 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

### mapbox-gl-js version

v3.17.0

### Browser and version

143.0.7499.170

### Expected behavior

I hope the lines can be vertical and look the same width in any direction
I think it's a bug that disappears vertically, and the issue of line width may be part of your design, but I also want to know if there's a way to set it up

### Actual behavior

In fact, when the line is completely vertical, it disappears, and the width of the line varies from different angles

### Link to the demonstration

_No response_

### Steps to trigger the unexpected behavior

The lines in the following code are vertical, but they are not displayed
Modifying latitude or longitude lines may result in varying widths when viewed from different angles
`

`

### 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 by tracing the rendering path for the line-z-offset and line-elevation-reference layout properties, then reproduce the vertical and changing-width cases described in the issue. Compare the behavior with nonvertical lines and determine whether the fix belongs in line rendering or property handling; add regression coverage for the confirmed behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
computer-graphics, frontend
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.