Georeferencing API
    Preparing search index...

    Function captureOpenLayersMap

    • Capture the currently rendered canvas layers of an OpenLayers map for PDF reports, without changing the view. Does not await outstanding tiles or capture DOM overlays.

      Parameters

      • map: Map

        Visible initialized host map.

      • Optionalattribution: string

        Attribution override; defaults to the map's attribution text.

      Returns Promise<MapCapture>

      "@georeferencing/core".GeoreferenceError If the viewport is unavailable or a source taints canvas export.