This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
[ios] Make MGLCoordinateInCoordinateBounds() public - #5053
Merged
Merged
Conversation
friedbunny
force-pushed
the
fb-coordInBounds-public
branch
from
May 17, 2016 13:11
f39272d to
b383248
Compare
friedbunny
force-pushed
the
fb-coordInBounds-public
branch
from
May 17, 2016 14:22
b383248 to
04a475e
Compare
Contributor
Author
|
One potential issue I’ve encountered with this simplified function is that it strictly requires the bounds to be NE, SW. The old function would fix screwy bounds (e.g., where NW/SE was used) by creating a convex hull from that bounds’ points — essentially, always recreating the bounds. |
Contributor
|
Looks good to me.
We've also discussed flipped coordinates as a way of indicating a bounds that spans the antimeridian. Whatever the case, perhaps we need an MGLCoordinateBoundsStandardize(), by analogy with CGRectStandardize(). |
friedbunny
added a commit
that referenced
this pull request
Jun 10, 2016
Added in #5053 but didn't categorize it for Jazzy.
friedbunny
added a commit
that referenced
this pull request
Jun 22, 2016
Added in #5053 but didn't categorize it for Jazzy.
friedbunny
added a commit
that referenced
this pull request
Jul 1, 2016
Added in #5053 but wasn't categorized for jazzy.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the formerly-private
MGLCoordinateInCoordinateBounds()function publicly available.MGLCoordinateBounds→mbgl::LatLngBoundsandCLLocationCoordinate2D→mbgl:LatLng.CLLocationCoordinate2DandMGLCoordinateBoundsdirectly./cc @1ec5