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.
Transform::flyTo loses more precision than Transform::easeTo when animating. Example:
Given point A LatLng { -45, -135 } and point B LatLng { 45, 135 }: Transform::easeTo from point A to B: LatLng { 44.999999999695532, 135.00000000038369 }
Latitude precision loss: 45 - 44.999999999695532 = 3.0446756E-10
This regression was caused by the additional point-latLng-point round trip added in #3301. I wonder how GL JS gets better precision out of that approach.
Finally, the point interpolation is tweaked so that at the end of the flying (when k === 1) it ends up at the exact end point. I didn't see any bugs related to this, but it seems like a good thing to have explicitly.
This changes the consequences of this bug: instead of ending up at the slightly wrong position at the end of flyTo, it animates to the wrong position, then suddenly snaps to the correct position at the very end.
I guess one way to alleviate this issue would be converting the geographical coordinate all the way into tile coordinates, and keep using that when interpolating.
To be honest, I'd love to see easeTo and flyTo outside of the GL Native core code, and implemented externally as part of a client-side animation interface. /cc @tmpsantos
Reacted by Thiago Marcos P. Santos and Mikhail Pozdnyakov
Activity
1ec5 commentedon Mar 13, 2016
This regression was caused by the additional point-latLng-point round trip added in #3301. I wonder how GL JS gets better precision out of that approach.
jfirebaugh commentedon Jun 7, 2017
From #9199:
This changes the consequences of this bug: instead of ending up at the slightly wrong position at the end of
flyTo, it animates to the wrong position, then suddenly snaps to the correct position at the very end.stale commentedon Nov 30, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
stale commentedon Jun 2, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.
brunoabinader commentedon Jun 4, 2019
I guess one way to alleviate this issue would be converting the geographical coordinate all the way into tile coordinates, and keep using that when interpolating.
To be honest, I'd love to see
easeToandflyTooutside of the GL Native core code, and implemented externally as part of a client-side animation interface. /cc @tmpsantosstale commentedon Dec 1, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.