Skip to main content

layerZoomLimit

Which way to zoom for a layer to show at a normalised zoom, or null when the zoom is inside its window or it has none. Built from the definition alone, so it names no layer.

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

Signature​

import { layerZoomLimit } from "@mapcairn/core";

function layerZoomLimit(definition: LayerDefinition, zoom: number): ZoomLimit | null;

Parameters​

  • definition (LayerDefinition)
  • zoom (number)

Returns​

ZoomLimit | null

See also​

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