Skip to content

[Bug] Deck with Maplibre Globe synchronization issue #9466

@Hooterr

Description

@Hooterr

Description

Looks like deck is not synchronizing correctly with maplibre when switching between globe view and map/mercator.

https://stackblitz.com/edit/vitejs-vite-saw2aejs

Here we have 2 images. One rendered by maplibre (white background), the other (yellow background) by deck.gl through bitmap layer.

  • If you add MapboxOverlay before turning on globe view, the layer will render correctly in mercator and it will be deformed after switching to globe. We're using built-in maplibre GlobeControl to switch between projections.

  • If you add MapboxOverlay from inside style.load callback after setting projection to globe we get this. It looks like deck is recognizing globe view correctly but images are not rendered with the same projection.

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS

Expected Behavior

When projection changes, deck should synchronize it correctly.

Steps to Reproduce

https://stackblitz.com/edit/vitejs-vite-89hlykfp?file=src%2Fmain.js

Environment

  • Framework version: deck 9.1.3, maplibre 5.1.1
  • Browser: any
  • OS: any

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions