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
The flyTo animation should continue, and the pitch should also be updated without breaking current animation.
Actual Behavior
Using setPitch cancels current animation (other methods too, like setBearing and so on).
This is the intended behavior of the current API. For simplicity's sake, we don't support queued or overlapping camera animations. I think this feature should be considered in the scope of #2801
PS. I'm also looking for a way to know if an event has been triggered manually (eg. scroll to zoom) or programmatically (eg. flyTo) as a workaround.
You can use the event.originalEvent property to determine this
lucaswoj
changed the title
setPitch stops current animation
Support overlapping and/or queued Camera animations
Jul 8, 2016
mapbox-gl-js version: 0.20.1
Steps to Trigger Behavior
See demo 1: https://jsfiddle.net/tn4yqcp2/
Try to zoom (level > 7.5): the pitch is set according to current level of zoom. The flyTo button isn't working.
See demo 2: https://jsfiddle.net/tn4yqcp2/1/
Try to zoom (level > 7.5): the pitch is not set according to current level of zoom. The flyTo button is working.
flyTo
)Expected Behavior
The
flyTo
animation should continue, and the pitch should also be updated without breaking current animation.Actual Behavior
Using
setPitch
cancels current animation (other methods too, likesetBearing
and so on).PS. I'm also looking for a way to know if an event has been triggered manually (eg. scroll to zoom) or programmatically (eg. flyTo) as a workaround.
The text was updated successfully, but these errors were encountered: