openlayers / ol-cesium

OpenLayers - Cesium integration
http://openlayers.org/ol-cesium/
BSD 2-Clause "Simplified" License
968 stars 321 forks source link

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

Closed tschuege9008 closed 3 months ago

tschuege9008 commented 3 months ago

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.