-
Notifications
You must be signed in to change notification settings - Fork 35
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
Cut geometry sample #302
Cut geometry sample #302
Conversation
583a944
to
ab9bc97
Compare
ab9bc97
to
5737b4d
Compare
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.
Sample works quite nicely @darryl-lynch. Just a few suggestions & considerations.
samples/cut-geometry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/MainActivity.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
Change order of graphics add so the polyline lays on top of the polygon
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, only a few quibbles.
}.toGeometry() | ||
} | ||
// get a polygon corresponding to Lake Superior | ||
private val lakeSuperiorPolygon = makeLakeSuperior() |
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.
Not 100% sure on the function name here, but I've not got an immediate suggestion.
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.
I see where you're coming from
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
Co-authored-by: Oliver Smith <67012037+01smito01@users.noreply.github.com>
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.
@darryl-lynch Looks good. A couple of minor quibbles to consider.
Also, a couple of things re the screenshot:
- The Contribution Guide says
Screenshots should not contain the "Licensed for developers" watermark
and points at some license keys that can be used to achieve that. - Personally I'd prefer our screenshots to include significant UI components, in this case the 2 buttons. Here's what I did for one I worked on recently. That said, I'm not sure others have done that consistently.
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
...etry/src/main/java/com/esri/arcgismaps/sample/cutgeometry/components/CutGeometryViewModel.kt
Outdated
Show resolved
Hide resolved
Fix one method level comment being unaligned Add full stop to the end of sentences
I've mostly just been reusing the old screenshots, which contain the watermark and don't have the buttons. There does seem to be inconsistency regarding inclusion of buttons even within the more recently migrated or created samples, though I agree the watermark is not ideal and the guidance is clear on it so I will get a new screenshot without it at least. |
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.
@darryl-lynch I'm approving this so as not to delay merging when you're ready. I assume you'll create a screenshot without the watermark.
Description
Migrate the cut geometry sample from XML to Compose
Links and Data
Issue: https://devtopia.esri.com/runtime/kotlin/issues/4974
vTest: https://runtime-kotlin.esri.com/view/all/job/vtest/job/sampleviewer/70/
What To Review
README.md
andREADME.metadata.json
filesHow to Test
Run the sample on the sample viewer or the repo.