Camera positionning #1521
Replies: 6 comments
-
Can you add some context? Problem statement? How would this work with the terrain 3d branch etc... |
Beta Was this translation helpful? Give feedback.
-
Well, it's just something very useful for me, so I would like to share. |
Beta Was this translation helpful? Give feedback.
-
Converting to a discussion... |
Beta Was this translation helpful? Give feedback.
-
Looks like the logic up there is missing the bearing, am I right? |
Beta Was this translation helpful? Give feedback.
-
2022-09-09 Google is using heading instead of bearing. It would equate the following code:
Basically the call
generates a link which will replicate the current view in Google Maps. I find the functions provided by @cigone-openindoor pretty helpful, they do add value. 2022-09-10 There's an issue with the location hash. While it gets updated, the previous one isn't retained in the browser's history so there's no back button functionality available. There's another issue in the sense that |
Beta Was this translation helpful? Give feedback.
-
Updated version:
|
Beta Was this translation helpful? Give feedback.
-
I suggest this code to easily manipulate maplibre camera position:
Example of usage here: https://open-indoor.github.io/examples/immersive-camera/
Beta Was this translation helpful? Give feedback.
All reactions