maptalks / maptalks/maptalks.js

Vertical lines disappear at certain camera angles

Open
#2,493 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
HTML
Stars
4.5k
Forks
511
Avg merge
3d 58m
Merged PRs (30d)
1

Description

# maptalks's version and what browser you use?

maptalks-gl v0.105.4
chrome

# Issue description

Vertical lines in GL are flat rectangles, that disappear at certain camera angles (sloped/horizontal lines affected too).
It looks especially bad when there are many lines, the whole map sections disappear.
They should be either line primitives (GL_LINES/GL_LINE_STRIP) or decals facing camera (billboards).

https://github.com/user-attachments/assets/922fa757-08d0-427e-992d-dbd91f98e36d

# Please provide a reproduction URL (on any jsfiddle like site)

https://joric.github.io/stalker/

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 reproduction at https://joric.github.io/stalker/ in Chrome and observe the vertical lines while changing camera angles. Trace the map rendering path responsible for these lines; done means vertical, sloped, and horizontal lines remain visible at affected angles, including in dense map sections.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.