|
1 | 1 | # Create and edit geometries |
2 | 2 |
|
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. |
4 | 4 |
|
5 | | - |
6 | | - |
| 5 | + |
| 6 | + |
7 | 7 |
|
8 | 8 | ## Use case |
9 | 9 |
|
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. |
11 | 11 |
|
12 | 12 | ## How to use the sample |
13 | 13 |
|
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. |
15 | 15 |
|
16 | 16 | ## How it works |
17 | 17 |
|
18 | 18 | 1. Create an `GeometryEditor` and assign it to a map view with the `geometryEditor` view modifier. |
19 | 19 | 2. Set the tool of the geometry editor to the preferred tool. |
20 | 20 | 3. Use the `start(withType:)` method on the `GeometryEditor` to start interactively sketching on the map view. |
21 | 21 | 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. |
23 | 24 |
|
24 | 25 | ## Relevant API |
25 | 26 |
|
|
0 commit comments