import SplitFeatureWorkflowData from "@arcgis/core/widgets/Editor/SplitFeatureWorkflowData.js";const SplitFeatureWorkflowData = await $arcgis.import("@arcgis/core/widgets/Editor/SplitFeatureWorkflowData.js");- Inheritance:
- SplitFeatureWorkflowData→
Accessor
- Since
- ArcGIS Maps SDK for JavaScript 4.34
This object contains data for the SplitFeatureWorkflow. This is accessed via the property SplitFeatureWorkflow.data.
Constructors
Constructor
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| properties | | |
Properties
| Property | Type | Class |
|---|---|---|
declaredClass readonly inherited | ||
editorItem readonly | | |
| | ||
| | ||
| | ||
| | ||
| |
editorItem
- Type
- EditorItem
The EditorItem object from EditorViewModel corresponding to the
layer being updated.
existingFeatureEdits
Information about the feature to be updated as a result of the split operation.
A split workflow results in two edits: the existing feature is updated to have one of the geometries resulting from the split, and a new feature is created with the other geometry. This property references the feature that will be updated.
- See also
feature
- Type
- Graphic
The feature to be split.
This feature's Graphic.attributes object must contain all fields for which values are set on the feature, and its Graphic.geometry must be full resolution. If the Graphic was obtained from a layer view query, it is likely that the geometry is not full resolution and that the attributes do not contain all fields.
splitterGeometry
- Type
- SplitterGeometry | null | undefined
The geometry to be used to split the geometry of the initial feature.
Methods
| Method | Signature | Class |
|---|---|---|
getEditsForFeature(feature: Graphic): Edits | null | | |
getRoleForFeature(feature: Graphic): "existing" | "new" | null | |
getEditsForFeature
- Signature
-
getEditsForFeature (feature: Graphic): Edits | null
Returns the instance of Edits corresponding to the given feature. Returns
the value of either existingFeatureEdits or
newFeatureEdits, depending on which feature is
passed. If feature is not one of the two
Graphics generated by the workflow, this method
returns null.
The primary way of accessing the Graphics generated by the workflow is through the Edits.feature property of the Edits objects referenced by existingFeatureEdits and newFeatureEdits. This method is useful if you obtain one of the Graphics outside of this context and need to access the Edits object it belongs to.
getRoleForFeature
- Signature
-
getRoleForFeature (feature: Graphic): "existing" | "new" | null
Identifies whether the given Graphic represents the feature to be updated or the feature to be created.