-
-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change altitude of look at point? #3683
Comments
What's preventing you from doing it now? |
I can't find where I would do this today? |
This is probably similar to what's here, maybe with a few different parameters: maplibre-gl-js/src/ui/camera.ts Line 919 in 90a9463
|
Does this change the altitude of the focal point? |
Not sure I understand the question. Play with it and see if it helps. |
This demo looks nice! While I'm sure you already know that, changing the elevation in the transform class can lead to a lot of unexpected behaviors, and while it might solve this specific case, it might create problem with other features. |
Yes, I was thinking about that, changing this in the transform class might cause a lot of problems in other places. There is some automated tests today that you can run to test this? For a bigger feature like this, a design post/document would be smart, where do you have that stuff today? |
There are a lot of tests, opening a PR would run them all and you can look into the readme scattered in this repo to better understand how to run all kind of tests. |
Played around with it a bit more and found this so far: Issue on terrain example today: As said before, these or other issues are exaggerated when I add more altitude and I get some different bugs depending on if I set add the elevation variable or only use the pivotelevation in the _calcMatrices function. |
Yes, we have some bugs related to zoom and terrain unfortunately which appear to be hard to solve, see: |
I think the following PR will allow this requirement. |
User Story
As a developer where I am making 3d buildings with toggleable floors I would benefit from having a way of changing the altitude of camera look at/rotation around point, I think it is called the focal point of the camera.
Rationale
Because having a 3d map with toggleable floors, either tough extrusions or three js, it would be nice to be able to change the altitude of the camera look at point. I know this is possible today because of the terrain and when you have different altitudes in the terrain this works. I would appreciate if someone who is more familiar with the codebase could help me find where this calculations of the altitude happens and maybe I can work to implement something myself from there.
Impact
Would make 3d worlds more enjoyable and easier to navigate for everyone!
The text was updated successfully, but these errors were encountered: