visgl / visgl/deck.gl

[Bug] Mapbox Standard Style draws buildings above deck gl

Open
#10,101 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Description

When using deck gl in interleaved mode with Mapbox Standard Style, (2D) buildings are occluding deck gl layers content.
It seems that Mapbox has changed something in later versions as it works OK in v3.9.3.

Examples:
2D
Image

3D
Image

Flavors
  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS
Expected Behavior

Deck gl content should be on top of 2D buildings.

Image

See correct behavior of Mapbox v3.9.3:
https://codepen.io/Truplic/pen/bNwWbxG

Steps to Reproduce

See this codepen that uses Mapbox v3.20.0:
https://codepen.io/Truplic/pen/YPGVKOJ
Note: setting slot variable doesn't seem to make any difference.

Environment
  • Framework version: 9.2.11
  • Browser: Chromium
  • OS: Windows
Logs

No response

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 MapboxOverlay interleaved-mode integration and compare the provided CodePens using Mapbox 3.9.3 and 3.20.0. Reproduce the occlusion in Chromium, then verify that deck.gl content appears above 2D buildings without relying on the slot variable.

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
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.