Skip to main content

RequestedImage

A request with every default filled in and its size checked.

This is an interface exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { RequestedImage } from "@mapcairn/core";

interface RequestedImage

Properties​

pixelHeight​

readonly pixelHeight: number;

The image's height in pixels, as the engine rounds it.

pixelRatio​

readonly pixelRatio: number;

How many image pixels there are for each CSS pixel.

pixelWidth​

readonly pixelWidth: number;

The image's width in pixels, as the engine rounds it.

size​

readonly size: MapImageSize;

The map's size in CSS pixels.

view​

readonly view: MapImageView;

The view the image shows.

See also​

Source: packages/core/src/imageExport/plan.ts:46