@kayahr/etchmap
    Preparing search index...

    Interface FitPointsOptions

    Options for fitting source-coordinate points into the map viewport.

    interface FitPointsOptions {
        animated?: boolean;
        margin?: number;
        maxZoom?: number;
    }
    Index
    animated?: boolean

    Whether to animate the camera transition. Defaults to false.

    margin?: number

    Non-negative inset from every viewport edge in CSS pixels.

    Defaults to five percent of the shorter viewport dimension.

    maxZoom?: number

    Maximum zoom used for this fit operation. Defaults to the map's current maximum zoom.