mapbox / mapbox/mapbox-gl-js

Too many shield symbols placed on some roads at high pitch

Open
#10,273 2 comments 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

The section of highway 280 on the right most portion of the screen has very frequent placement of the highway icon. This is possible related to the style, but it hasnt' been possible to pitch so high in the past, which means distance between placements might need to take into account screen space distance or terrain/slope along which the symbols are being placed. Zooming in and out slowly also shows a lot more symbol flickering than seems warranted.

http://localhost:9966/debug/terrain-debug.html#18.29/37.651606/-122.452433/135.8/78

![image](https://user-images.githubusercontent.com/11619675/104084599-68195b00-51fd-11eb-873f-121e918d53ca.png)

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 shield placement and flickering at the terrain-debug.html URL, focusing on highway 280 at the supplied pitch and zoom. Trace the terrain-aware symbol placement and collision behavior; done means shield spacing remains reasonable at high pitch and zooming no longer causes excessive flickering.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.