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.
[Android] Camera position generated from LatLngBounds is off-center #11993
When the MapboxMap camera isn't at tilt 0 and you try to animate to a CameraUpdate created from a LatLngBounds with CameraUpdateFactory#newLatLngBounds, the final position is not centered above the bounds.
Resetting the tilt + bearing to 0 before animating to the bounds works fine
Platform: Android 7.1.1 API 25 Mapbox SDK version: 6.1.2
This position is produced when the camera bearing is set to 0 prior to animating to the bounds - tilt remaining the same (in this example, between 35-50):
Activity
LukasPaczos commentedon Jul 5, 2018
@danesfeder since #12290 landed, could you retest new
getCameraFor...methods and check if they resolve this issue? Thanks!tobrun commentedon Jul 6, 2018
I'm going ahead and call this issue resolved, please reopen if still an issue
mortezahosseinee commentedon Nov 28, 2018
I have exactly same issue in mapbox v 6.5.0.
LukasPaczos commentedon Nov 28, 2018
@milad7111 is there a chance that your issue is related to #2259?
mortezahosseinee commentedon Nov 30, 2018
Thanks, it relates but not it has not any good solution.