Georeferencing API
    Preparing search index...
    • Create a provider for one L.tileLayer.wms layer.

      Requests use the layer's endpoint and WMS parameters (layers, styles, version, time, filters and vendor parameters) with the selected extent, CRS and resolution, so the reference never depends on the visible tiles. A {s} subdomain placeholder resolves to the layer's first subdomain.

      Parameters

      • references: LeafletReference[]

        Configured eligible layers with opaque IDs and revisions.

      • Optionalrequest: (url: string, signal?: AbortSignal) => Promise<Blob>

        Optional authenticated WMS request callback; defaults to fetch.

      Returns ReferenceProvider

      Browser-only pixel provider; matching itself can also run in Node.

      Acquisition rejects with SOURCE when the selection names unknown, several or non-WMS layers, or for transport/decoding failures, and with BUDGET when the selection exceeds the WMS provider's pixel limits.

      const wms = L.tileLayer.wms("https://example.org/wms", { layers: "ortho" });
      const provider = createLeafletProvider([
      { id: "ortho", layer: wms, revision: "2026" },
      ]);
      const reference = await provider.acquire(leafletSelection(map, ["ortho"]));