This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
Map content insets do not offset attribution on inset change #10627
Labels
iOS
Mapbox Maps SDK for iOS
Platform: iOS
Mapbox SDK version: Mapbox-iOS-SDK (3.7.0)
I am creating an experience similar to HotelTonight where the user at first sees only a small window of the map view at the top of the screen centered to that area and the rest is hidden under other views until tap where it expands.
This isn't exact because I found these online but they illustrate the point: Step 1, Step 2
And in my app, we want to go from first screen to second screen:
I also want to show the user's location so I have enabled that.
The way I accomplish this is view contentInset.
The above works as shown in the first screen shot.
On map tap (i have added a gesture recognizer), I want to animate a change in center and zoom level. Side note - if you have a better suggestion on how to do this, I would love to know.
The above results in the second screen shot where the center has been updated but not the attribution or info button.
The text was updated successfully, but these errors were encountered: