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

Reposition map to fit callouts #2412

Closed
wants to merge 1 commit into from
Closed

Reposition map to fit callouts #2412

wants to merge 1 commit into from

Conversation

maciekish
Copy link
Contributor

Fixes #1089

Example usage:

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];

    self.mapView.calloutInsets = UIEdgeInsetsMake(self.topLayoutGuide.length,
                                                  0,
                                                  self.bottomLayoutGuide.length,
                                                  0);
}

@friedbunny friedbunny added feature iOS Mapbox Maps SDK for iOS labels Sep 25, 2015
@tmcw
Copy link
Contributor

tmcw commented Oct 29, 2015

@incanus can you review this branch and post back?

@incanus
Copy link
Contributor

incanus commented Oct 30, 2015

Thanks for this @maciekish. We need to do some internal testing on it, and there are a couple questions about the code here in particular:

  • Why is the .mason submodule altered?
  • We haven't yet used delayForRepositionWithSize in this SDK due to some complications around not dismissing the callout, even for such legitimate moves. Is it possible for you to write some tests around this behavior to ensure that we are capturing all scenarios?

@maciekish
Copy link
Contributor Author

@incanus Sorry about the .mason submodule. Looks like a merge issue, i removed the change.

Could you try to explain the issue around the callout please? What kind of test would you expect?

@Zakay
Copy link

Zakay commented Feb 10, 2016

+1

@1ec5
Copy link
Contributor

1ec5 commented Sep 6, 2016

Thanks for this pull request! Unfortunately, we later generalized the callout API to allow for custom callout views that don’t necessarily have the same methods or feature set as SMCalloutView (#3456). Additionally, we’re planning to revamp the callout API in #4392, which will remove the dependency on SMCalloutView. We’ll definitely want to address issues like #3154 and #3249, so we’ll revisit the #1089 at that time. Thanks again!

@1ec5 1ec5 closed this Sep 6, 2016
@maciekish maciekish deleted the callout-reposition branch September 14, 2016 08:52
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

Successfully merging this pull request may close these issues.

None yet

6 participants