TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CaptureOptions

    Options for MapEffects.capture.

    type CaptureOptions = {
        pixelRatio?: number;
    }
    Index
    pixelRatio?: number

    Device pixels per CSS pixel to render at. It defaults to the map's current ratio. 2 or 3 gives a print-grade capture of the same view. MapLibre clamps to its maxCanvasSize, so measure the ratio you got from the returned canvas rather than assuming.