Camera inertia after flyTo/setView

Hi Guys,

It appears that there is no way to cancel camera inertia?

If a user is panning, I want to be able to teleport their view to a point and cancel any inertia they have.

I have been unable to find a way to do this. If you fly to a location you would expect that inertia would be cancelled, but the camera will still keep panning.


Press the F key to change the view to San Diego instantly. Note that inertia remains if you pan the camera and then press the F key while the camera is still moving. The end result is the camera being off-center.

What do I need to add to the flyToSanDiego() function to cancel any inertia that the camera had before the change of view?


Thanks for the great code example! This looks like a bug. I filed a new GitHub issue here so we can look into it:



Thanks Hannah, I appreciate it!