Skip to main content

MapImageView

The area an image shows: a box to fit, or a centre and a normalised zoom. Either way the image is north-up.

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

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

type MapImageView = {
readonly bounds: Bounds;
} | {
readonly center: LatLng;
readonly zoom: number;
};

See also​

Source: packages/core/src/ports/map.ts:357