Open Pioneer Trails Packages
    Preparing search index...
    FeatureEditor: FC<FeatureEditorProps> = FeatureEditorImpl

    React component that provides a complete editing interface for creating and modifying map features.

    The Editor component manages the entire editing workflow, including feature creation, selection, modification, and deletion. It renders different UI states based on the current editing step:

    • An action selector for choosing feature templates and initiating drawing, or selecting existing features.
    • A property editor for modifying feature attributes and geometry.
    <Editor
    map={mapModel}
    templates={featureTemplates}
    storage={{
    addFeature: async (feature) => { ... },
    updateFeature: async (feature) => { ... },
    deleteFeature: async (feature) => { ... }
    }}
    selectableLayers={[myLayer]}
    />