Skip to content
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

Zooming and Panning in Orthographic Projection #18542

Closed
magdalena-gut opened this issue Feb 20, 2023 · 3 comments · Fixed by #18666
Closed

Zooming and Panning in Orthographic Projection #18542

magdalena-gut opened this issue Feb 20, 2023 · 3 comments · Fixed by #18666

Comments

@magdalena-gut
Copy link
Member

Current behavior

Panning after zooming resets the zoom to the default. The issue only occurs with orthographic projection.

Live demo with steps to reproduce

Zoom the chart and then rotate the globe.
https://jsfiddle.net/BlackLabel/8wu2167a/

Expected behavior

https://jsfiddle.net/BlackLabel/hqzu9sLo/

Last working version

10.1.0

@magdalena-gut
Copy link
Member Author

The 10.0.0 vesrion (and 10.1.0 as well) doesn't seem stable too:
OrthographicPanning

@hubertkozik hubertkozik self-assigned this Mar 9, 2023
@hubertkozik
Copy link
Member

It seems, that the bug is not related to Orthographic projection, but to mapView.update method, which is overwriting the actual zoom of the map. The issue is reproducible on every projection, but only orthographic is firing the mapView.update to set a proper new projection rotation - that's why we have discovered this bug.

Demo with the issue on another projection: https://jsfiddle.net/BlackLabel/hae9wmz4/
Steps:

  1. Zoom in by using the plus button.
  2. Click the button under the map chart - the map will be zoomed out, but it shouldn't.

@hubertkozik
Copy link
Member

hubertkozik commented Mar 10, 2023

Also, there is a problem, that you cannot rotate the world, when there are few series shapes, like in this demo: https://jsfiddle.net/BlackLabel/c6szh74d/

EDIT:
It seems, that this issue is more complicated. I have submitted a new issue regarding getting stuck while panning in Orthographic projection, it can be found here: #18664

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

3 participants