Mapbox provides a API to get the latlong bounds of the visible region.
mapboxMap.projection.visibleRegion.latLngBounds
However if the user scrolls horizontally to the left of the world map. The bounds are going out of range. Basically, the longitudeWest and longitudeEast are changed to values greater than 180.
Platform: Android
Mapbox SDK version: 9.0.0
Steps to trigger behavior
Load mapbox map on android
get latlong bounds from visible region on onCameraIdle callback or any other callback.
Observe when the map is between California and Japan. The latlongbounds east and west reset to positive values. Ideally it should have negative values
Expected behavior
Latlong -> east value should be proper. It should go to negative values as panned left.
Mapbox provides a API to get the latlong bounds of the visible region.
mapboxMap.projection.visibleRegion.latLngBounds
However if the user scrolls horizontally to the left of the world map. The bounds are going out of range. Basically, the longitudeWest and longitudeEast are changed to values greater than 180.
Platform: Android Mapbox SDK version: 9.0.0
Steps to trigger behavior
Expected behavior
Actual behavior