visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.25k stars 2.08k forks source link

[Bug]Using @deck.gl/arcgis@8.9.33,Abnormal display of multiple DeckLayers #8396

Closed gdnwr closed 9 months ago

gdnwr commented 10 months ago

Description

When using the latest version @deck.gl/arcgis@8.9.33: Two DeckLayers were created separately, with the first layer displaying correctly and the second layer not displaying. However, when using @deck.gl/arcgis@8.1.6 and earlier versions, both layers display correctly. Upon comparison, it was found that starting from @deck.gl/arcgis@8.1.7, the parameter "depthTest=true" has been added.

// deck.gl\modules\arcgis\src\commons.js
parameters: {
      depthTest: true
}

Flavors

Expected Behavior

Hope to have multiple DeckLayers loaded in ArcGIS, all displaying correctly. Or provide parameters to set depthTest.

Steps to Reproduce

https://codesandbox.io/p/sandbox/arcgis-deck-xz57ww?file=%2Findex.html%3A17%2C76

The above example is a simple modification of:https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=custom-lv-deckgl

The introduction of " Githubissues.

  • Githubissues is a development platform for aggregating issues.