Skip to content

GeometryEditor

const GeometryEditor: ForwardRefExoticComponent<GeometryEditorProps & RefAttributes<GeometryEditorHandle>>

Defined in: src/GeometryEditor.tsx:16

Interactive geometry editor. Mirrors the native GeometryEditor — place it inside a <MapView> to let the user sketch a type geometry. Reports edits via onGeometryChange and exposes undo / redo / clear / stop through a ref.

The native SDK binds the editor to 2D map views only, so <GeometryEditor> has no effect inside a <SceneView>.