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 has been archived by the owner on Aug 8, 2023. It is now read-only.
Currently, it's not possible to know when the map is done animating after setting the user tracking mode. This makes it impossible to know when you can modify the map state without interrupting setting the tracking mode type.
I propose we had a new method- -setUserTrackingMode:animated:completionHandler: which returns a callback after the tracking mode has been set and animation has completed.
Per chat, I'm generally 👍 on this, but we should be prepared for complexities like possibly canceling the callback if:
the map gets moved or zoomed before animation completion
the user location moves before animation completion
user tracking mode changes or is disabled before animation completion
This differs from normal animation callbacks since there is a implicit contract here that upon completion firing, the user will be in the center of the map view.
Platform: iOS
Mapbox SDK version: N/A
Currently, it's not possible to know when the map is done animating after setting the user tracking mode. This makes it impossible to know when you can modify the map state without interrupting setting the tracking mode type.
I propose we had a new method-
-setUserTrackingMode:animated:completionHandler:
which returns a callback after the tracking mode has been set and animation has completed./cc @incanus @1ec5
The text was updated successfully, but these errors were encountered: