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
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
If I start out at zoom level A and invoke mbgl::Map::flyTo() with a zoom level B, such that B > A, the viewpoint ends up at zoom level A. Moreover, the trajectory isn’t capped at the minimum zoom level. So when flying from San Francisco at about z7 to Washington, D.C., at z18, the zoom level quickly goes into NaN territory:
As @adam-mapbox pointed out, we aren’t calculating quite the right zoom levels. After removing the zoom level clamp I added in #3301, I was able to fly from California to D.C., causing the zoom level to vary from 6.475008 to -8.283377 to 23.004506.
Activity
lucaswoj commentedon Dec 15, 2015
[core] Corrected flying trajectory; pitched flight
1ec5 commentedon Dec 16, 2015
As @adam-mapbox pointed out, we aren’t calculating quite the right zoom levels. After removing the zoom level clamp I added in #3301, I was able to fly from California to D.C., causing the zoom level to vary from 6.475008 to -8.283377 to 23.004506.
1ec5 commentedon Dec 18, 2015
For my own reference,
flyTo()was originally introduced in mapbox/mapbox-gl-js@da42a4a as an implementation of van Wijk 2003 “optimal path” animations.[core] Refined and commented flyTo
[core] Refined and commented flyTo