You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
+
5
+

6
+

7
+
8
+
## Use case
9
+
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
+
12
+
## How to use the sample
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.
15
+
16
+
## How it works
17
+
18
+
1. Create a `GeometryEditor` and assign it to a map view with the `geometryEditor` view modifier.
19
+
2. Set the tool of the geometry editor to the preferred tool.
20
+
3. Use the `start(withType:)` method on the `GeometryEditor` to start interactively sketching on the map view.
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. 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.
Copy file name to clipboardExpand all lines: Shared/Samples/Create and edit geometries/README.metadata.json
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,18 @@
1
1
{
2
2
"category": "Maps",
3
-
"description": "Use the Geometry Editor to edit or sketch a new point, multipoint, line, or polygon geometry on a map.",
3
+
"description": "Use the Geometry Editor to create new point, multipoint, polyline, or polygon geometries or to edit existing geometries by interacting with a map view.",
0 commit comments