Skip to content

Commit 6bbf952

Browse files
committed
PR Feedback
1 parent fc6e1ae commit 6bbf952

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

Shared/Samples/Create and edit geometries/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
# Create and edit geometries
22

3-
Use the Geometry Editor to edit or sketch a new point, multipoint, line, or polygon geometry on a map.
3+
Use the Geometry Editor to create new point, multipoint, polyline, or polygon geometries or to edit existing geometries by interacting with a map view.
44

5-
![Image of sketch on map 1](sketch-on-map-1.png)
6-
![Image of sketch on map 2](sketch-on-map-2.png)
5+
![Image of create and edit geometries 1](create-and-edit-geometries-1.png)
6+
![Image of create and edit geometries 2](create-and-edit-geometries-2.png)
77

88
## Use case
99

10-
A field worker could annotate features of interest on a map (via the GUI) such as location of dwellings (marked as points), geological features (polylines), or areas of glaciation (polygons).
10+
A field worker can mark features of interest on a map using an appropriate geometry. Features such as sample or observation locations, fences or pipelines, and building footprints can be digitized using point, multipoint, polyline, and polygon geometry types. Polyline and polygon geometries can be created and edited using a vertex-based creation and editing tool (i.e. vertex locations specified explicitly via tapping), or using a freehand tool.
1111

1212
## How to use the sample
1313

14-
Tap the pencil button to choose a geometry editor tool. Begin interactively sketching on the map view. Tap the pencil button again for editing options or to save or cancel a sketch.
14+
Tap the pencil button to choose a geometry editor tool. Begin interactively sketching on the map view. Tap the pencil button again for editing options.
1515

1616
## How it works
1717

1818
1. Create an `GeometryEditor` and assign it to a map view with the `geometryEditor` view modifier.
1919
2. Set the tool of the geometry editor to the preferred tool.
2020
3. Use the `start(withType:)` method on the `GeometryEditor` to start interactively sketching on the map view.
2121
4. Use various methods and properties of the `GeometryEditor` to undo, redo, delete a selected element, clear the sketch, and cancel the sketch.
22-
5. Save a sketch as a `Graphic` to a `GraphicsOverlay` displayed on the map view.
22+
5. Edit a tool's `InteractionConfiguration` to set the `GeometryEditorScaleMode` to allow either uniform or stretch scale mode.
23+
6. Save a sketch as a `Graphic` to a `GraphicsOverlay` displayed on the map view.
2324

2425
## Relevant API
2526

Shared/Samples/Create and edit geometries/README.metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"description": "Use the Geometry Editor to edit or sketch a new point, multipoint, line, or polygon geometry on a map.",
44
"ignore": false,
55
"images": [
6-
"sketch-on-map-1.png",
7-
"sketch-on-map-2.png"
6+
"create-and-edit-geometries-1.png",
7+
"create-and-edit-geometries-2.png"
88
],
99
"keywords": [
1010
"draw",
142 KB
Loading
146 KB
Loading
-38.1 KB
Binary file not shown.
-52 KB
Binary file not shown.

0 commit comments

Comments
 (0)