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 was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
In 3.2.0 beta 2 on iOS, the map view doesn't seem to respect the height of the view, meaning it doesn't show the full world map and the centre is off. So when zoomed in and you set the centre coordinate, it will not be visible.
The following screens illustrate the problem.
3.0.1
3.2.0 beta 2
The actual MGLMapView is of correct size in both instances according to frame.size.height.
What is the map view's contentInset at the time that this issue occurs? I wonder if it's incorrectly accounting for the top bar, even though the top bar doesn't overlap the map view.
Also, is the map view initialized with a non-zero-area frame?
This bug has to do with the map view’s .contentInset having negative values — only positive values should affect the positioning of features within the map. This bug affects centering, setting visible coordinates, tracking the user location annotation, and so on.
I think we’re going to have to check every case where we use .contentInset and then discard negative values, where appropriate.
Activity
1ec5 commentedon Mar 23, 2016
What is the map view's
contentInsetat the time that this issue occurs? I wonder if it's incorrectly accounting for the top bar, even though the top bar doesn't overlap the map view.Also, is the map view initialized with a non-zero-area frame?
millenbop commentedon Mar 23, 2016
The map is initialized via IB.
1ec5 commentedon Mar 25, 2016
Tagging with 3.2.0 milestone per #4476.
friedbunny commentedon Mar 25, 2016
This was introduced in v3.1.0.
friedbunny commentedon Mar 26, 2016
This bug has to do with the map view’s
.contentInsethaving negative values — only positive values should affect the positioning of features within the map. This bug affects centering, setting visible coordinates, tracking the user location annotation, and so on.I think we’re going to have to check every case where we use
.contentInsetand then discard negative values, where appropriate.friedbunny commentedon Mar 29, 2016
Fixed by #4504 and its dozen rebases.