Skip to content
Guides API

GeometryEditorProps

GeometryEditorProps = object

Defined in: src/ExpoArcgis.types.ts:2429

optional active?: boolean

Defined in: src/ExpoArcgis.types.ts:2433

When true (default) editing is started with type; set false to stop.


optional onGeometryChange?: (geometry) => void

Defined in: src/ExpoArcgis.types.ts:2437

Called as the sketch geometry changes (null when empty / cleared).

Geometry | null

void


optional onInteractionPreview?: (preview) => void

Defined in: src/ExpoArcgis.types.ts:2444

Called while a gesture is in flight with the geometry it would produce, and null once it ends (ArcGIS 300.1). onGeometryChange only fires once the edit is committed, so this is what to use for live feedback — validating a shape mid-drag, or enabling a control only when the pending result is acceptable.

GeometryEditorInteractionPreview | null

void


optional tool?: GeometryEditorTool

Defined in: src/ExpoArcgis.types.ts:2435

Interaction tool (default vertex). Shape tools (arrow/ellipse/…) sketch by dragging.


type: GeometryEditorType

Defined in: src/ExpoArcgis.types.ts:2431

The kind of geometry to sketch.