-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor!: make LatLngBounds
mutable & depend less on 'latlong2'
#1834
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, except for the one thing around constructor naming.
Ready for another review. I think this pull request is now non-breaking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Still breaking, but only for implementers of LatLngBounds
, which should be no-one.
LatLngBounds
LatLngBounds
mutable & depend less on 'latlong2'
This pr is probably a bit controversial.
LatLngBounds.fromCorners()
and adds a new default raw constructor for better performance. Even though values get provided directly it uses asserts to catch potential implementation errors.Very similar would be Bounds if I'm not mistaken.