Open Pioneer Trails Packages
    Preparing search index...

    Interface EditingWorkflow

    EditingWorkflows are created by the EditingService and represent a currently ongoing editing workflow.

    interface EditingWorkflow {
        getState(): EditingWorkflowState;
        reset(): void;
        stop(): void;
        triggerSave(): void;
        whenComplete(): Promise<Record<string, string> | undefined>;
    }
    Index
    • Resets this workflow to its initial state.

      Returns void

    • Stops this editing operation.

      Returns void

    • Trigger saving the currently drawn/updated feature.

      Returns void

    • Wait for the editing to be finished. The returned promise resolves with an object containing the feature ID ({ featureId }) when saving was successful and rejects if saving the feature failed. It resolves with undefined when the editing was stopped.

      Returns Promise<Record<string, string> | undefined>