Georeferencing API
    Preparing search index...

    Function captureMapLibreMap

    • Capture the currently rendered MapLibre canvas for PDF reports, without changing the view. The capture is taken during the next render, so it works without preserveDrawingBuffer; tile sources must allow CORS.

      Parameters

      • map: Map$1

        Visible MapLibre map.

      • Optionalattribution: string

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

      Returns Promise<MapCapture>