versatiles-svg-renderer
    Preparing search index...

    Interface PNGViewOptions

    The view to render as PNG: ViewOptions, plus the pixel density.

    interface PNGViewOptions {
        bearing?: number;
        height?: number;
        lat?: number;
        lon?: number;
        padding?: number | Padding;
        scale?: number;
        width?: number;
        zoom?: number;
    }

    Hierarchy (View Summary)

    Index
    bearing?: number

    The compass direction that is up, in degrees, as in MapLibre: 90 puts east at the top. The map turns around the image's center; labels stay upright.

    the style's bearing, else 0

    height?: number

    Height of the image in pixels.

    1024

    lat?: number

    Latitude of the map centre, in degrees.

    the latitude of the style's center, else 0

    lon?: number

    Longitude of the map centre, in degrees.

    the longitude of the style's center, else 0

    padding?: number | Padding

    Space around the map's center, in pixels, as MapLibre's padding: the center (lon, lat) sits in the middle of the area inside it, e.g. to keep it clear of a panel laid over the image. A number applies to all sides.

    0

    scale?: number

    Pixel density, like a device pixel ratio. The image is width * scale by height * scale pixels, while the map is laid out as if it were width by height. See RenderToPNGOptions.scale.

    1

    width?: number

    Width of the image in pixels.

    1024

    zoom?: number

    Zoom level, as in MapLibre: each step doubles the scale. Fractional values are allowed.

    the style's zoom, else 2