Open Pioneer Trails Packages
    Preparing search index...

    Interface EditingService

    The editing service allows to start and handle editing workflows.

    Inject an instance of this service by referencing the interface name "editing.EditingService".

    interface EditingService {
        createFeature(
            map: MapModel,
            ogcApiFeatureLayerUrl: URL,
        ): EditingWorkflow;
        reset(map: MapModel): void;
        reset(mapId: string): void;
        stop(map: MapModel): void;
        stop(mapId: string): void;
        updateFeature(
            map: MapModel,
            ogcApiFeatureLayerUrl: URL,
            feature: Feature,
        ): EditingWorkflow;
    }

    Hierarchy

    • DeclaredService<"editing.EditingService">
      • EditingService
    Index

    Methods

    • Resets the unfinished geometry from an existing EditingWorkflow without leaving the edit mode.

      Parameters

      Returns void

    • Resets the unfinished geometry from an existing EditingWorkflow without leaving the edit mode.

      Parameters

      • mapId: string

      Returns void

      Use the reset(map: MapModel) method instead.

    • Stops the edit mode and removes an existing EditingWorkflow.

      Parameters

      Returns void

    • Stops the edit mode and removes an existing EditingWorkflow.

      Parameters

      • mapId: string

      Returns void

      Use the stop(map: MapModel) method instead.