mapbox / mapbox/mapbox-gl-js

Unexpected collision behavior after adding mapbox-terrain-dem-v1 (hidden symbols with ZoomLevel >=15.0 )

Open
#13,380 0 comments 0 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

Hi
not sure if this is a bug or a wrong understanding on my side ;-)

Situation:

I have a map with a (self implemented) vector source for point features.
I'm using a symbol layer to show maki symbols (Points of interest)

I get a unexpected behavior, in the moment when I set the terrain to mapbox://mapbox.mapbox-terrain-dem-v1

Using the terrain features HIDES all my symbols on ZoomLevels >= 15.0
Without the terrain feature I can see my symbols until ZoomLevel 22.

Using the "showCollisionBoxes" feature on the map, it looks like the symbols are not visible for some collision!
Bug ? Feature ?

Any way to workaround this ?
Collision properties for symbols and labels seems NOT helping in this case (smoketestet)

**3.9.2 and older**:

**Chrome, Safari**:

Thank you in advance!
Werner

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

No file or test is named. First reproduce the symbol-collision behavior with mapbox-terrain-dem-v1 enabled and disabled in Chrome or Safari at zoom levels 15 and above, then trace the terrain and symbol-collision entry points. Done means the cause is identified and the reported symbol visibility behavior is corrected or documented with a verified workaround.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.