visgl / visgl/deck.gl

[Bug] Having two Mapbox layers with the same scenegraph values causes only on layer to show

Open
#7,950 2 comments 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 there are two Mapbox layers in a map with the same scenegraph value it causes one of the layers to disappear. Even though they are two separate Mapbox layers.

I assume this is not desired behaviour, if it is, is there a way around it?

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

That all layers are visible on the map

Steps to Reproduce

I have created a JSBin to show the example. When you click the change model button you can see that 3 of models disappear when the jeep model changes to the car model.

https://jsbin.com/xaqohit/edit?html,output

Environment
  • Framework version: Latest
  • Browser: Chrome 114.0.5735.134 (Official Build) (64-bit)
  • OS: Windows 11
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 linked JSBin reproduction and inspect how the script-tag Mapbox layers use the scenegraph value when the jeep model changes to the car model. Confirm that separate layers with the same scenegraph value can remain visible, then verify the behavior against the reported Chrome environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
data-visualization, 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.