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

Reposition map to fit callouts - #2412

Closed
maciekish wants to merge 1 commit into
mapbox:masterfrom
Hitta:callout-reposition
Closed

maciekish wants to merge 1 commit into
mapbox:masterfrom
Hitta:callout-reposition

Conversation

@maciekish

Copy link
Copy Markdown
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

tmcw commented Oct 29, 2015

Copy link
Copy Markdown
Contributor

@incanus can you review this branch and post back?

@incanus

incanus commented Oct 30, 2015

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Zakay commented Feb 10, 2016

Copy link
Copy Markdown

+1

@1ec5

1ec5 commented Sep 6, 2016

Copy link
Copy Markdown
Contributor

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.

6 participants