Replies: 1 comment
-
It is possible to supply your own In the long term the easiest solution is to make a feature request for deck.gl to support center offset out of the box. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using a Mapbox map with a Deck.gl overlay, which I synchronize by setting
viewState
whenever the Mapbox map moves.Mapbox allows offsetting the camera vanishing point, which is very useful when toggling a sidebar. I have not been successful at synchronizing the Deck.gl overlay to this camera change. My guess is that I need to apply Mapbox' projection matrix in addition to updating the view state properties but I am not able to access and apply the right matrix.
Can somebody help me out with this? I don't know how important Mapbox compatibility is for Deck.gl but this may even be a candidate for a Deck.gl feature request.
Demo
Notice how in the video below, the arc layer gets out of sync with the marker positions when the sidebar is opened:
Bildschirmvideo.aufnehmen.2021-01-20.um.11.41.02.mov
Beta Was this translation helpful? Give feedback.
All reactions