You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Setting your storyboard up with the map view at the base level of the hierarchy like this:
Leads to the attribution button and logo bug being squashed after the initial load — i.e., load the MBGL view controller, switch to a different view controller, come back to MBGL and this happens:
Work around is to place the map view within another view, remembering to reset to suggested constraints:
The logo (and attribution button) both have intrinsic width and height constraints that are removed whenever the MGLMapView moves to a new superview, as is the case when returning to the tab view containing the MGLMapView. The compass is unaffected because it has a container view whose constraints are removed.
Also, on iOS 8.0+, use `+[NSLayoutConstraint activateConstraints:]` and `+deactivateConstraints:` to efficiently prevent redundant constraints from lingering.
Fixes#1779.
Setting your storyboard up with the map view at the base level of the hierarchy like this:
Leads to the attribution button and logo bug being squashed after the initial load — i.e., load the MBGL view controller, switch to a different view controller, come back to MBGL and this happens:
Work around is to place the map view within another view, remembering to reset to suggested constraints:
/cc @1ec5
The text was updated successfully, but these errors were encountered: