GeoLeaf Core API - v3.19.0
    Preparing search index...
    • Applies an edit locally and enqueues it — the edit plugins' entry point.

      Does not throw: every outcome is a report. A refusal names itself, because an edit that vanishes without a motive is indistinguishable from a recorded one, and that is the loss the contract exists to prevent.

      Parameters

      • input: EditInput

        The edit submitted by the plugin.

      Returns Promise<EditReport>

      The report of what was done.

      const report = await GeoLeaf?.Storage?.applyEdit?.({
      layerId: "sites_rosario", kind: "update", localId: "loc:abc", feature
      });
      if (report?.refused) console.warn("édition refusée :", report.refused);