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<undefined | Record<string, string>>;
    }
    Index

    Methods

    • 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 the feature ID when saving was successful and rejects if saving the feature failed. It resolves with undefined when the editing was stopped.

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