Georeferencing API
    Preparing search index...

    Function attachReferenceMap

    • Attach package-owned overlay, GCP, residual and draft layers/interactions to an existing OpenLayers map.

      Call only in a browser after map creation. Borrowed layers are read without taking ownership. Detach removes owned resources and aborts reference requests while preserving the host map, layers and view. Prefer openLayers with the React Georeferencer, which attaches its own binding.

      Invalid projection definitions or datum grids throw before any resource is attached. Later failures, such as an unknown map projection or a control point that cannot be projected, are reported through the controller error state instead of throwing.

      Parameters

      • map: Map

        Host-owned initialized map.

      • controller: GeoreferencerController

        Authoritative editor store.

      • options: BindingOptions = {}

        Providers, projections, snapping and optional initial framing.

      Returns OpenLayersBinding

      Binding controls and an idempotent detach method.