-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Including direction in setVisibleCoordinates calculates the viewport incorrectly #12075
Comments
Thanks for the report @TimWatson |
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions. |
lol what. Does that mean this isn't getting fixed? |
Still on our list! |
Hi @TimWatson. Thank you for using Mapbox. When you start the map it has a
|
Hi Fabian, thanks for getting back to me. I need both the direction and the visible bounds to change but when using this function it currently calculates the new map bounds to fit the required visible bounds and then it applies the rotation. That means that the calculation is now wrong since the required visible bounds now fit differently in the new, rotated, map viewport. Your suggestion doesn't solve this issue. |
Fixed in #13761 |
If you include direction when setting the visible coordinates it calculates the viewport first and then rotates the map resulting in an incorrect viewport.
Example:
iOS 11.4
Mapbox 4.0.1, 4.0.2
mapbox-gl-native/platform/ios/src/MGLMapView.h
Line 762 in 43efd61
The text was updated successfully, but these errors were encountered: