Repository navigation
Draggable annotations - #753
Merged
Merged
Conversation
LukasPaczos
force-pushed
the
lp-703-draggable-annotations
branch
5 times, most recently
from
November 6, 2018 16:07
04bfc22 to
25d4b1c
Compare
Contributor
Author
LukasPaczos
force-pushed
the
lp-703-draggable-annotations
branch
from
November 9, 2018 12:02
25d4b1c to
7ebd641
Compare
tobrun
approved these changes
Nov 9, 2018
| */ | ||
| @NonNull | ||
| public LatLng getLatLng() { | ||
| Point point = (Point) geometry; |
Member
There was a problem hiding this comment.
not related to this PR, but something that comes to mind now, do we need type geometry with generics? (avoids casting in this case).
Contributor
Author
There was a problem hiding this comment.
we can possibly do it to clean up those casts 👍
| return Polygon.fromLngLats(resultingPoints); | ||
| } | ||
|
|
||
| return null; |
Member
There was a problem hiding this comment.
do we want nullability for this? Returning an empty list would suffice and would make the method @NonNull
Contributor
Author
There was a problem hiding this comment.
In this case, we are returning null to indicate that the resulting geometry is invalid and we should not set it, leaving the old one being displayed
LukasPaczos
force-pushed
the
lp-703-draggable-annotations
branch
from
November 9, 2018 12:48
7ebd641 to
adac5b1
Compare
This was referenced Nov 9, 2018
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Closes #703.