-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Introducing a "maximumTilt" property for the Camera #9147
Conversation
Introduced a maxTilt property for the Camera, that, if present, limits the camera's tilt.
Added Business Geografic/fnicollet
Thanks for the pull request @fnicollet!
Reviewers, don't forget to make sure that:
|
I can confirm we've received your corporate CLA. |
Hello, Thanks, |
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
1 similar comment
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Hello, |
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Hello @OmarShehata , could this PR get reviewed please ? Thanks, |
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with |
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
1 similar comment
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
Might fix #9689? |
Thanks again for your contribution @fnicollet! No one has commented on this pull request in 90 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 90 days. If you'd like me to stop, just comment with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @fnicollet. From the discussions, this seems like a feature a lot of users might like. I have a small suggestion regarding the public API for this. Additionally, we expect all new features to have good test coverage, so it would be helpful if you could add those too.
* @type {Number} | ||
* @default undefined | ||
*/ | ||
this.maximumTilt = undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to maximumZoomAmount
and minimumZoomAmount
, any interaction related limitations are better suited for the ScreenSpaceCameraController
.
Hello and thanks for your message, This PR was added in September 2020 and since then, we are in the process or switching to another 3D library, so I won't really have time to work on those changes you ask for, especially since I have no idea how to write tests for Cesium for this specific use case. Fabien |
Thanks for letting us know @fnicollet. I'm going to close this PR then. If another member of the community is interested in picking this up, please let us know here! Meanwhile, we are aware that the camera API is not the most user friendly, so we are evaluating improvements the Cesium team could make in the relative future. Thanks for your patience. |
Introduced a maximumTilt property for the Camera, that, if present, limits the camera's tilt.
Here is a sandbox sample to showcase this behaviour:
The camera's pitch is limited (wether you use mousewheel-click + up/down or Ctrl+mouse up/down), which is currently impossible to do with the Cesium public API unless you re-code all the mouse/keyboard/touch gestures.
The maximumTilt value is expressed in radians. Degrees might have been more dev-friendly but most things seem to be expressed in radians in Cesium.
Follows-up on this PR which was never completed:
#7428
Added Business Geografic/fnicollet to the Contributors
The CLA for Business Geografic has been signed today.
Added a line in the CHANGES.md file. Should I wait for the PR to be created and update the file with the PR link or someone from Cesium will?