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
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
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.
MapboxOverlaybefore 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 maplibreGlobeControlto switch between projections.MapboxOverlayfrom insidestyle.loadcallback after setting projection toglobewe get this. It looks like deck is recognizing globe view correctly but images are not rendered with the same projection.Flavors
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
Logs
No response