When changing the pitch of the current camera to a different angle, and changing it back to the original angle, the map has moved from its original position. This does NOT happen when doing the same thing with a two finger pan.
From what I suspect it may have to do with the edge padding, caused by the difference between using CameraOptions' anchor and center properties. The pan method sets the anchor to the center coordinate, whereas in my programmatic camera change I can not access this property and use the current camera's center.
setCamera: on the map with the newly created camera.The map looks identical at step 1 and 3.
The map has moved substantially up north.
Mapbox SDK versions: 4.3
iOS/macOS versions: iOS 12.1.1
Device/simulator models: iPad Mini
Xcode version: 10.1
This might be related to #14150
@friedbunny is there anything I could do to help resolve this issue? Would a sample project help (I'm looking at the 'needs reproduction' label)?
@datwelk a reproduction sample project would be most welcome!
@julianrex here you go: https://github.com/datwelk/MapboxPerspectiveBug
It seems to only occur when edgePadding is provided when updating the map's camera. Perhaps I'm misinterpreting the meaning of the edge padding? See this line
@datwelk thanks.
Fix for this is part of PR #14664. I used this patch with iOS demo to reproduce/verify it.