Add terrain support for flyTo and easeTo
mapbox-gl-js version: 2.0.0
Camera functions flyTo and easeTo are not taking terrain elevation properly into account leading to bumpy and jittery camera movement. The approach used in our camera system to use separate elevation reference (sea level or terrain) could be used as a starting point for enabling smoother camera movement that is independent of the terrain.
https://github.com/mapbox/mapbox-gl-js/issues/10256 (@fxi) reports that the final end position of easeTo is inconsistent and has a good example that reproduces this: https://codepen.io/fxi/full/WNGJMVN
+1
Would be good to see this fixed. A workaround for this is to use the FreeCameraAPI but this adds a lot more complexity to flying from one position to another. Also it is very tricky to smoothly transition between using the FreeCameraAPI and CameraOptions used for setting the non-free camera.
This issue makes applications that use flyTo over terrain look very buggy.
I would prefer not to advise to use the FreeCameraAPI instead.
@mourner any chance that this can get fixed soon?
Thank you!