You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ℹ Caveat up front: I know Globe integration is technically experimental still, this is mostly to document some findings I am seeing in the wild.
When utilizing the @deck.gl/mapbox-overlay extension there appears to be an issue with the canvas interleaving (and technically when not interleaving per example 3 below). I have tried adjusting the parameters prop at the Deck level and layer level but cannot find a combination that draws things correctly. Notably depthCompare: 'always' kind of gives the result I am looking for but effectively removes culling so layers are drawn behind the globe still.
Video of issue:
Kapture.2025-04-17.at.23__42pct_smaller.mp4
Additional oddities:
Text is rendered upside down and has a similar culling/depth type issue:
pnpm i
pnpm run example1
pnpm run example2
pnpm run example3
pnpm run example4
Example 1: @deckg-fiber-renderer/dom + maplibre-gl w/ interleaving
Example 2: react-map-gl/maplibre + @deck.gl/mapbox-overlay w/ interleaving
Example 3: react-map-gl/maplibre + @deck.gl/mapbox-overlay w/ no interleaving
Example 4: react-map-gl/maplibre only, no Deck
Examples 1, 2, and 3 each have a different setup just to sanity check things. Examples 2 and 3 in particular are effectively taken directly from the website example. Example 4 is just Maplibre in isolation to ensure there was nothing wrong with the underlying basemap renderer.
I also tried the beforeId and parameters: { cullMode: 'none' } tricks.
Description
ℹ Caveat up front: I know Globe integration is technically experimental still, this is mostly to document some findings I am seeing in the wild.
When utilizing the
@deck.gl/mapbox-overlayextension there appears to be an issue with the canvas interleaving (and technically when not interleaving per example 3 below). I have tried adjusting theparametersprop at the Deck level and layer level but cannot find a combination that draws things correctly. NotablydepthCompare: 'always'kind of gives the result I am looking for but effectively removes culling so layers are drawn behind the globe still.Video of issue:
Kapture.2025-04-17.at.23__42pct_smaller.mp4
Additional oddities:
Text is rendered upside down and has a similar culling/depth type issue:
Flavors
Steps to Reproduce
https://github.com/brandonjpierce/deckgl-maplibre-bug
@deckg-fiber-renderer/dom+maplibre-glw/ interleavingreact-map-gl/maplibre+@deck.gl/mapbox-overlayw/ interleavingreact-map-gl/maplibre+@deck.gl/mapbox-overlayw/ no interleavingreact-map-gl/maplibreonly, no DeckExamples 1, 2, and 3 each have a different setup just to sanity check things. Examples 2 and 3 in particular are effectively taken directly from the website example. Example 4 is just Maplibre in isolation to ensure there was nothing wrong with the underlying basemap renderer.
I also tried the
beforeIdandparameters: { cullMode: 'none' }tricks.Environment