-
Notifications
You must be signed in to change notification settings - Fork 1.3k
LatLngBounds.contains(LatLong) can return always 'false' #11137
Comments
@osana would you be able 👀 this issue? You have recently worked on this class and its business logic. |
@klblk what are the LatLng bounds that are passed into contains() method of LatLngBounds object with values that you specified? |
Sorry, I did not understand the question. For Mapbox 5.0.2 and less, i use VisibleRegion.latLngBounds, and contains() method. But this broken in 5.4.0 if rotate map (not tested other version). My current solution for 5.4.0:
|
@klblk Thank you for clarifying. I thought that the bug was against incorrectly working |
@klblk I am confirming that indeed this is reproducible in master. |
@tobrun The source of the problem is a combination of implementation of Line 106 in 63eb511
and implementation of Line 292 in 63eb511
If map is rotated topLeft of the VisibleRegion will not be the actual northWest, and so on. |
@tobrun A couple of action items / further discussions out of this
|
Platform: Android
Mapbox SDK version: 5.4.0 (not reproduced on 5.0.2)
Steps to trigger behavior
4.method: LatLngBounds.contains(ILatLng latLng) return always 'false', because latitudeNorth < latitudeSouth
The text was updated successfully, but these errors were encountered: