-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
d034330
to
bae2dfe
Compare
|
||
if (latNorth < latSouth) { | ||
throw new IllegalArgumentException("latNorth cannot be less than latSouth"); | ||
} |
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.
Why do we need to remove this check?
I think we should add a similar check for lonEast being always >= lonWest
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.
Also LatLngBounds union, intersect, getCenter, getLongitudeSpan, fromLatLngs can be simplified a lot as lonEast >= lonWest
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.
GeometryConstants for longitude need to be changed. Do we allow longitude to infinity ?
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.
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.
Another place that should be adjusted (I would think) is the Projection.getVisibleRegion() as it can go over dateline and be rotated (on top of that)
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.
@LukasPaczos I absolutely agree that #13419 and this one compliment one another. I can move over @tobrun's example or have both PRs merged - either way is fine by me
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.
Why do we need to remove this check?
my bad, this was re-added.
I think we should add a similar check for lonEast being always >= lonWest
sure, added in follow up commit
Also LatLngBounds union, intersect, getCenter, getLongitudeSpan, fromLatLngs can be simplified a lot as lonEast >= lonWest
Simplified, so not a requirement for this PR?
GeometryConstants for longitude need to be changed. Do we allow longitude to infinity ?
I went with Double.MAX_VALUE in a follow up commit, not seeing that infinity will unlock any use-cases.
bae2dfe
to
9248751
Compare
9248751
to
f48f86b
Compare
* [android] - don't wrap LatLngBounds * Update GeometryConstants.java * Update NativeMapTest
Closes #13186