Arbitrary data attributes.
NOTE: The component may use data properties for its own behavior. Make sure not to overwrite required attributes.
Optional ReadonlydrawingOptions for drawing new geometries.
Optional ReadonlyfailureDuration in milliseconds to display failure notifications.
Controls how long error messages are shown to the user. By default, notifiers will never disappear.
Use false to hide the notification altogether.
Optional ReadonlyhighlightingOptions for highlighting features during modification.
OptionalmapThe map model to use.
Optional ReadonlymodificationOptions for modifying feature geometries.
Optional ReadonlyonOptional callback invoked when the editing step changes.
Called whenever the editing workflow transitions between steps (e.g., from drawing to attribute editing, or from attribute editing back to the initial state).
Use this to track or respond to changes in the editing workflow state.
Optional ReadonlyresolveOptional function to provide custom form templates for features.
When specified, this function is called to determine which form template to use when editing an existing feature. If not provided, the first feature template matching the feature's layer ID will be used.
The form template to use for editing the feature's properties, or undefined if no
template is available.
Optional ReadonlyselectableLayers from which features can be selected for editing.
When not specified, the layer IDs from the feature templates are used to determine which layers are selectable. Only specify layers that contain features you want to allow users to edit.
Optional ReadonlyselectionOptions for selecting existing features from layers.
Optional ReadonlyshowWhether to show the action bar with undo/redo/finish/reset controls during drawing.
When false, the action bar is hidden. Only applies to templates with geometry types
that support these actions (e.g., Polygon, LineString).
Optional ReadonlysnappableLayers to which drawn geometries will snap.
Enables snapping to features in these layers during drawing and modification operations. Defaults to selectableLayers if not specified.
Optional ReadonlysnappingOptions for snapping to nearby features during drawing or modification.
Optional ReadonlysuccessDuration in milliseconds to display success notifications.
Controls how long success messages (e.g., "Feature saved") are shown to the user. By default, notifiers will never disappear.
Use false to hide the notification altogether.
ReadonlytemplatesFeature templates defining the types of features that can be created or edited.
Each template specifies the geometry type, drawing options, and form configuration for a specific feature type.
ReadonlywriterResponsible for persisting changes to your data source.
Props for the FeatureEditor component.