You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terrain movement changes the zoom at the end, I guess the fact that there is a trasform being kept and then applied at the end collides with how terrain works.
Feel free to dig into it.
* Add test for camera jumps with terrain and transformCameraUpdate.
Test for #4233.
* Fix terrain jumps with transformCameraUpdate (#4233).
* Refactor test.
* Simplify terrain browser test.
* Add unit test for zoom recalculation with transformCameraUpdate.
* Fix expected value in unit test.
---------
Co-authored-by: Harel M <harel.mazor@gmail.com>
maplibre-gl-js version: 4.3.2
browser: Firefox 126, Chrome 125
Steps to Trigger Behavior
Link to Demonstration
https://jsbin.com/pobidixeqa/1/edit?html,output
Expected Behavior
The empty
((tr)=>({})
or identity(tr)=>tr
transformCameraUpdate option should never have an effect on the camera movement.Actual Behavior
The camera jumps to a different location when drag panning with triggered inertia and terrain targeted.
The text was updated successfully, but these errors were encountered: