-
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
Camera setView / flyTo rectangle doesn't work as expected in 2D when rectangle overlaps antimeridian #6936
Comments
Thanks for reporting this @pjaustin! Changes will need to be made to this function: https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/Camera.js#L2330 I think we can check if Would you be interested in opening a pull request? You can find our contributors documentation here: https://github.com/AnalyticalGraphicsInc/cesium/tree/master/Documentation/Contributors |
Sounds good, thanks @pjaustin! |
I believe this is the same issue reported on the forum again here. |
Fixed in #7909 |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/d/msg/cesium-dev/p5ygxIQA490/mbAYcjUlBgAJ If this issue affects any of these threads, please post a comment like the following:
|
When in 2D mode, calling camera.setView({ destination: rectangle }); or camera.flyTo({ destination: rectangle }); results in a view of the whole world when the rectangle overlaps the antimeridian, rather than a view containing only the rectangle.
Note these both work fine in 3D. In CV they also result in a view of the whole world, which seems reasonable because the globe is not wrapped in CV. However in 2D, when the globe is wrapped, it seems reasonable to expect that these should result in a "correct" view of the rectangle regardless of whether it crosses the anitmeridian.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: