Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add setUserTrackingMode with completionHandler #6663

Closed
bsudekum opened this issue Oct 11, 2016 · 2 comments
Closed

Add setUserTrackingMode with completionHandler #6663

bsudekum opened this issue Oct 11, 2016 · 2 comments
Labels
feature iOS Mapbox Maps SDK for iOS

Comments

@bsudekum
Copy link

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

@bsudekum bsudekum added feature iOS Mapbox Maps SDK for iOS labels Oct 11, 2016
@incanus
Copy link
Contributor

incanus commented Oct 12, 2016

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.

@1ec5
Copy link
Contributor

1ec5 commented Oct 18, 2016

Duplicate of #5840.

@1ec5 1ec5 closed this as completed Oct 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

3 participants