Skip to main content

ZoomLimit

Which way to zoom for a layer to show, and to which normalised zoom level. zoom-in means the view is wider than the layer's minimum, and zoom-out that it is closer than the layer's maximum.

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

Signature​

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

type ZoomLimit = {
readonly kind: "zoom-in";
readonly level: number;
} | {
readonly kind: "zoom-out";
readonly level: number;
};

Source: packages/core/src/layers/zoomLimit.ts:20