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

Account for asynchronous event generation in ol maps when synchronizing with the 2d map #1178

Conversation

tschuege9008
Copy link

@tschuege9008 tschuege9008 commented Mar 12, 2024

When paning and zooming the 3d map, the pitch (tilt) and the heading of the camera were continuosly adapted by small steps in an unpredictable way.
There is a guard flag in Camera.updateView() which causes the events from the ol map to be ignored, while the ol map is adjusted. Unfortunately the ol map events are generated asynchronously and the guard flag was already reset right at the end of Camera.updateView(). This was too early and so events would be handled which should have been ignored.

Copy link
Member

@gberaudo gberaudo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@gberaudo gberaudo merged commit 2fb8787 into openlayers:master Mar 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants