Skip to content

[Bug] MapLibre Globe Integration #9592

@brandonjpierce

Description

@brandonjpierce

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-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:

Image

Image

Flavors

  • React
  • MapboxOverlay

Steps to Reproduce

https://github.com/brandonjpierce/deckgl-maplibre-bug

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.

Environment

  • Framework version: 9.1.10
  • Browser: Chrome
  • OS: MacOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions