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

Allow implicit animation of annotation views#6215

Merged
friedbunny merged 1 commit into
masterfrom
fb-reanimate-user-dot
Aug 31, 2016
Merged

Allow implicit animation of annotation views#6215
friedbunny merged 1 commit into
masterfrom
fb-reanimate-user-dot

Conversation

@friedbunny
Copy link
Copy Markdown
Contributor

We were disabling the implicit animation of position changes for annotation views (bb2f627 in #5550), but this meant that UIView animations were also being canceled. Once the user location annotation started inheriting from MGLAnnotationView, this meant that non-tracking changes to the user dot became unanimated.

This change shouldn’t affect the sync between map view and annotation views, as we already disable implicit animations when we update their position in -[MGLMapView updateAnnotationViews].

This also removes redundant implicit animation disabling in MGLUserLocationAnnotationView.

@incanus, I could definitely use some help confirming that this doesn’t actually regress any of our annotation view sync/performance improvements. 😁

Fixes #6203.

/cc @1ec5

@friedbunny friedbunny added bug iOS Mapbox Maps SDK for iOS annotations Annotations on iOS and macOS or markers on Android release blocker Blocks the next final release labels Aug 30, 2016
@friedbunny friedbunny added this to the ios-v3.4.0 milestone Aug 30, 2016
@friedbunny friedbunny self-assigned this Aug 30, 2016
@mention-bot
Copy link
Copy Markdown

@friedbunny, thanks for your PR! By analyzing this pull request, we identified @1ec5, @boundsj and @incanus to be potential reviewers.

@incanus
Copy link
Copy Markdown
Contributor

incanus commented Aug 30, 2016

I could definitely use some help confirming that this doesn’t actually regress any of our annotation view sync/performance improvements.

We really haven't made any recently, and based on my testing, we are 👌 here.

@incanus
Copy link
Copy Markdown
Contributor

incanus commented Aug 30, 2016

Shouldn't we also just get rid of the bounds disable, too?

@1ec5
Copy link
Copy Markdown
Contributor

1ec5 commented Aug 30, 2016

Yeah, I don’t think we need the override at all.

@friedbunny
Copy link
Copy Markdown
Contributor Author

Removed the bounds override — we’re ✈️ by the seat of our 👖 now.

@friedbunny friedbunny changed the title Allow implicit animation of annotation view position Allow implicit animation of annotation views Aug 31, 2016
@friedbunny friedbunny force-pushed the fb-reanimate-user-dot branch from 0420eab to a39ef54 Compare August 31, 2016 01:38
@friedbunny friedbunny force-pushed the fb-reanimate-user-dot branch from a39ef54 to 44ff7c4 Compare August 31, 2016 17:42
@friedbunny
Copy link
Copy Markdown
Contributor Author

After passing yesterday several times, the rebase is failing because of unrelated Android and Qt issues.

- Allows the user location annotation to again animate its movements while no tracking mode is enabled.
@friedbunny friedbunny force-pushed the fb-reanimate-user-dot branch from 44ff7c4 to fcee1a8 Compare August 31, 2016 19:55
@friedbunny friedbunny merged commit fcee1a8 into master Aug 31, 2016
@friedbunny friedbunny deleted the fb-reanimate-user-dot branch August 31, 2016 20:16
@friedbunny
Copy link
Copy Markdown
Contributor Author

Android build failure was fixed by #6225, while Qt remains open in #6226.

@friedbunny friedbunny removed the release blocker Blocks the next final release label Aug 31, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants