@ml2drender/wasm
    Preparing search index...

    Interface View

    A camera, of Web Mercator (MapRenderer.renderView) or of a CRS (ProjectedRenderer.renderView).

    interface View {
        center: [lng: number, lat: number];
        zoom: number;
        bearing?: number;
        width: number;
        height: number;
        pixelRatio?: number;
        margin?: number;
    }
    Index
    center: [lng: number, lat: number]

    Longitude and latitude of the image center, in degrees.

    zoom: number

    MapLibre GL JS zoom: the world (in a CRS: tile 0/0/0 of its grid) is 512 × 2^zoom CSS pixels wide.

    bearing?: number

    Degrees clockwise from north (in a CRS: from its y axis) of the direction that is up. Default: 0.

    width: number

    Positive integer CSS pixels.

    height: number

    Positive integer CSS pixels.

    pixelRatio?: number

    Output pixels per CSS pixel. Default: 1.

    margin?: number

    Non-negative integer CSS pixels of extra coverage, cropped from the output. Default: 0.