Georeferencing API
    Preparing search index...

    Function attachMapLibre

    • Attach owned image, marker, residual, draft and reference layers and interactions to an existing MapLibre map. Prefer maplibre with the React Georeferencer.

      MapLibre displays raster overlays in Web Mercator only, so the controller renders previews in EPSG:3857 while the binding is attached; fitting and exports keep using the working CRS. Layers are added once the style has loaded and re-added after the host replaces the style. Drawing uses the optional terra-draw and terra-draw-maplibre-gl-adapter peers, loaded on first use.

      Parameters

      • map: Map$1

        Host-owned MapLibre map.

      • controller: GeoreferencerController

        Authoritative editor store.

      • options: MapLibreOptions = {}

        References, projections, snapping and optional initial framing.

      Returns MapBinding

      The binding; detach removes everything it added.