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.
Center calculated incorrectly when resetting north with contentInset #14150
With contentInset set with different top and bottom values, if you reset north either by rotating the map or tapping the compass the map jumps either up or down depending on the bigger inset value
Since this only happens when userTrackingMode == .none it led me here
I can't figure out why we have that line but I think it's causing this. The only possible explanation I could find was about macOS having a different coordinate system origin
I can't figure out why we have that line but I think it's causing this. The only possible explanation I could find was about macOS having a different coordinate system origin
Unless something has changed recently, mbgl assumes an origin at the top-left, just like iOS does natively. Only macOS puts the origin at the bottom-left, but the macOS implementation of MGLMapView compensates by flipping the coordinates in Objective-C.
Activity
1ec5 commentedon Mar 19, 2019
Unless something has changed recently, mbgl assumes an origin at the top-left, just like iOS does natively. Only macOS puts the origin at the bottom-left, but the macOS implementation of MGLMapView compensates by flipping the coordinates in Objective-C.
mapbox-gl-native/platform/macos/src/MGLMapView.mm
Lines 2900 to 2901 in 41b25e2
/ref #3574 #3583
TimWatson commentedon Mar 19, 2019
Yeah that's what I found. So why are we flipping it for iOS in easeTo there?
TimWatson commentedon Apr 23, 2019
This was fixed with the last update (4.10)
julianrex commentedon Apr 23, 2019
@TimWatson thank you for confirming!
TimWatson commentedon Jun 20, 2019
This is happening again in 5.1.0
stale commentedon Dec 18, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.