[Bug] Mapbox Standard Style draws buildings above deck gl
Nobody has claimed this yet.
- 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
3D
Flavors
- Script tag
- React
- Python/Jupyter notebook
- MapboxOverlay
- GoogleMapsOverlay
- CARTO
- ArcGIS
Expected Behavior
Deck gl content should be on top of 2D buildings.
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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