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

setVisibleCoordinates:count:edgePadding:animated: fails on newly instantiated map #2100

Closed
picciano opened this issue Aug 17, 2015 · 2 comments
Labels
bug iOS Mapbox Maps SDK for iOS

Comments

@picciano
Copy link

I set a line annotation and two point annotations, then call:

[self.mapView setVisibleCoordinates:coordinates count:route.points.count edgePadding:UIEdgeInsetsMake(25, 10, 45, 10) animated:NO];

The map fails to zoom properly. However, navigating away, then calling [self.mapView setVisibleCoordinates:coordinates count:route.points.count edgePadding:UIEdgeInsetsMake(25, 10, 45, 10) animated:NO]; again, zooms correctly.

Video:
http://tinypic.com/r/taqaa1/8

@incanus
Copy link
Contributor

incanus commented Aug 17, 2015

/cc @1ec5

@incanus incanus added bug iOS Mapbox Maps SDK for iOS labels Aug 17, 2015
@picciano
Copy link
Author

Ignore this, my fault. viewDidAppear was getting called before viewDidLayoutSubviews.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

2 participants