-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Wrong attribution positioning after resizing MGLMapView via constraints #6568
Comments
This may be related to the ambiguous constraint warnings we’re seeing for the ℹ️ button, compass view, etc.: #5549. |
@u10int - did you ever find a way to improve that animation? |
@1ec5 - sadly, hiding those (even permanently to test properly), didn't work. |
@frederoni Any sense if #7084 (or other related changes) address this issue? |
#7084 most likely resolved this issue but there's a lot going on #6568 (comment) here with custom transitions so another test using the latest beta version of the SDK would be great. Though it's not only the attribution that's misaligned/missing but the speed of the animation when resizing the map view's frame is not in sync with the constraints if I'm not mistaken? (#6568 (comment)) |
Yes, the issue is the discrepancy between frame animations, which makes the map reveal the background. |
Closing due to ticket age. If this is still a problem, please re-open |
There seems to be an issue when resizing an MGLMapView via AutoLayout constraints during a custom view controller transition animation that breaks the layout of the attribution views that are normally at the bottom corners. My view controller transition consists of expanding the map view full screen from a smaller frame in the presenting profile/detail controller.
During the transition, the MGLMapView instance from the detail/profile controller is added as a subview of the destination/target view controller after which the necessary AutoLayout constraints are setup and then animated from the starting frame to the destination (full screen) frame. It appears that perhaps changing the map view's parent in this process may be breaking the position of the logo and attribution views at the bottom of the map.
When working with Mapbox support a few months ago on the issue, it was believed the cause was related to this issue. But the latest SDK versions still have the issue.
Here's a screen capture of the issue:
Platform: iOS 8.0+
Mapbox SDK: 3.3.4
Here's condensed version of the code that performs this presentation transition animation via the UIViewControllerAnimatedTransitioning protocol:
Expected behavior
The map view's attribution views should remain pinned to the bottom corners of the map when animating its layout constraints.
Actual behavior
The map view's attribution views break their layout when animating the map view's layout constraints.
The text was updated successfully, but these errors were encountered: