GeoLeaf Core API - v3.19.0
    Preparing search index...
    • Bakes the "pending" badge on an entity queued in THIS session, if its layer holds it.

      🛑 THE RESTORE WAS THE ONLY ONE TO SET IT, at boot. A capture made since was owed to the server and drawn like any other entity, until the page was reloaded — the badge told the truth about yesterday's work and nothing about today's.

      Same property as the restore's, on purpose: clearRestoredStatus lifts either one when the entity is pushed, and a re-read of the layer carries either one over.

      Never throws: a decoration must not fail the write that asked for it.

      Parameters

      • layerId: string

        The entity's layer.

      • id: string | number

        Its identity on that layer (layerIdentityOf).

      Returns boolean

      Whether the layer HOLDS the entity — marked now, or carrying the badge already. false means it is not there yet: the caller asks again when the layer is written.

      const id = await layerIdentityOf("sites", "loc:3f2…");
      if (!markPendingStatus("sites", id)) waiting.add("loc:3f2…");