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 has been archived by the owner on Aug 8, 2023. It is now read-only.
With the upcoming 5.1.0 release we have changed the way we handle LatLngBounds in #8765. Feel free to test out the SNAPSHOT or any of the beta releases. More information on those here.
For reference: no map or latlngbounds padding:
Map padding, no latlngbounds padding:
Map and latlngbounds padding:
Thank you for reaching out but closing this as resolved.
Platform: Android
Mapbox SDK version: 5.0.2
Steps to trigger behavior
mapBoxMap.setPadding(400, 0, 0, 0)
CameraBoundsUpdate
, e.g.mapBoxMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 30))
Expected behavior
The map should move the camera to the provided bounds (respecting the map-padding) so that the bounds are completely visible.
Actual behavior
The bounds are not completely visible. The map center is displaced too much on the x-axis while it has the right zoom-level to show the bounds.
Note
We were able to fix this by writing our own
CameraBoundsUpdate
with following changes ingetCameraPosition(MapboxMap mapboxMap)
:The text was updated successfully, but these errors were encountered: