This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
[ios] fixes #5036 draggable annotation views - #5373
Merged
Merged
Conversation
Contributor
|
The macOS build failed because this branch is based on release-ios-3.3.0, which doesn't have the OS X-to-macOS renaming from #5343. I've added a special Bitrise workflow for that release branch, but macOS builds will continue to fail for new PRs made against that branch. @boundsj @friedbunny @kkaefer, maybe we should cherry-pick #5343 into the release branch to keep things sane. The macOS builds are important to iOS SDK development because the two SDKs share so much code. |
Contributor
|
I'm 👍 on cherry-picking macOS into the release branch. |
Contributor
|
I’ve cherry-picked #5343 into the release branch; the build failure should go away once you rebase. |
frederoni
force-pushed
the
5036-draggable-annotation-views
branch
from
June 21, 2016 13:27
5efaf14 to
cbee7ff
Compare
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5036
Setting MGLAnnotationView's
draggableproperty to YES will make it draggable.In order to make it stick to the location where it was dropped, you have to implement;
-mapView:didDragAnnotationView:toLocation:and update the
coordinateproperty of the associated annotation.Made a few changes compared to previous PR which didn't take center offset into account.
also updated doc in MGLMapViewDelegate, I hope it's more clear now.
/cc @1ec5 @boundsj @friedbunny