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
Hi, I'm using the latest version of Mapbox GL JS (0.20.1) and I have this issue where when I try to call rotateTo() after a moveend event fires nothing happens. If I try to call flyTo() instead, it works. I'm not sure if I'm doing anything silly, here are two simple examples demonstrating the issue.
lucaswoj
changed the title
rotateTo not working after 'moveend' event fires
Fix bug preventing animated "Map#rotateTo" operations inside "moveend" event listener
Jul 29, 2016
This bug can be avoided by setting duration to 0 or placing the call to rotateTo within a setTimeout(..., 0) block. I suspect we are getting tripped up by the inability to have multiple overlapping camera animations.
There is likely an easy fix to this issue by ending the camera animation before emitting the "moveend" event.
Hi, I'm using the latest version of Mapbox GL JS (0.20.1) and I have this issue where when I try to call
rotateTo()
after amoveend
event fires nothing happens. If I try to callflyTo()
instead, it works. I'm not sure if I'm doing anything silly, here are two simple examples demonstrating the issue.http://jsbin.com/demecovehi/1/edit?html,console,output - Fly after move end
http://jsbin.com/komaloceci/1/edit?html,console,output - Rotate after move end
The text was updated successfully, but these errors were encountered: