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

Update callout/popover when relocating annotation #8269

Conversation

1ec5
Copy link
Contributor

@1ec5 1ec5 commented Mar 3, 2017

When relocating a selected point annotation, update the associated callout (iOS) or popover (macOS) to reflect the annotation’s new coordinates rather than deselecting the annotation.

Fixes #6284.

/cc @frederoni

When relocating a selected point annotation, update the associated callout (popover) rather than deselecting the annotation.
@1ec5 1ec5 added annotations Annotations on iOS and macOS or markers on Android iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS labels Mar 3, 2017
@1ec5 1ec5 added this to the ios-v3.5.0 milestone Mar 3, 2017
@1ec5 1ec5 self-assigned this Mar 3, 2017
@1ec5 1ec5 requested a review from frederoni March 3, 2017 07:54
@mention-bot
Copy link

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

@incanus
Copy link
Contributor

incanus commented Mar 3, 2017

FYI the historical reason here was because SMCalloutView (when we used it) required a re-layout since it weights left or right when near the screen edges.

@1ec5
Copy link
Contributor Author

1ec5 commented Mar 3, 2017

We still use SMCalloutView, and it’s true that the anchor will remain weighted based on the original location on screen. But this affects all callouts, including the user dot’s callout. Due to how SMCalloutView encapsulates its layout code but doesn’t support dynamic layout, a fix would essentially entail replacing SMCalloutView with something better (#4392), since at that point we’d be unable to use almost anything that SMCalloutView provides as-is.

@1ec5 1ec5 merged commit 7e97012 into release-ios-v3.5.0-android-v5.0.0 Mar 4, 2017
@1ec5 1ec5 deleted the 1ec5-annotation-persist-coordinate-6284 branch March 4, 2017 06:09
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 iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants