Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

bounds can go over the antimeridian / date line. #10892

Merged
merged 1 commit into from
Feb 15, 2018

Conversation

osana
Copy link
Contributor

@osana osana commented Jan 10, 2018

LatLngBounds did not have an option to specify going over date line bounds.
Stilll need to fix Builder.build() method which should calculate shortest span as new pointe is considered.

@osana osana added the Android Mapbox Maps SDK for Android label Jan 10, 2018
@osana osana added this to the android-v6.0.0 milestone Jan 10, 2018
@osana osana requested a review from tobrun January 10, 2018 18:43
@osana osana force-pushed the osana-latlngbounds-10843 branch from 9ae50e3 to 5e801cf Compare January 10, 2018 18:52
@osana osana force-pushed the osana-latlngbounds-10843 branch from 5e801cf to a417835 Compare January 11, 2018 14:25
@osana
Copy link
Contributor Author

osana commented Jan 11, 2018

I updated the PR to have LatLngBounds.fromLatLngs() take into consideration that the shortest span could be going over the antimeridian. Added a bunch of tests as well.

There is still work left in regards to #10892 as union() and intersects() are not taking antimeridian case into account.

@osana osana force-pushed the osana-latlngbounds-10843 branch 4 times, most recently from d9ca3e6 to 805a23a Compare January 26, 2018 20:12
@tobrun
Copy link
Member

tobrun commented Feb 15, 2018

@osana what is the state of this PR? is the work around union() and intersects() finalised?

@osana osana force-pushed the osana-latlngbounds-10843 branch from 805a23a to d3ff517 Compare February 15, 2018 14:19
@osana
Copy link
Contributor Author

osana commented Feb 15, 2018

closes #10843

@osana
Copy link
Contributor Author

osana commented Feb 15, 2018

@tobrun union and intersects still need to be updated

@osana
Copy link
Contributor Author

osana commented Feb 28, 2018

#11308 takes care of union() implementation that takes date line into account

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants