Skip to main content

VectorShapeLayer

One layer of a vector tile source, drawn as polygons or lines.

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

Signature​

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

interface VectorShapeLayer

Properties​

maxzoom​

readonly maxzoom?: number;

The normalised zoom from which the layer is hidden.

minzoom​

readonly minzoom?: number;

Visible from and to these normalised zoom levels.

sourceLayer​

readonly sourceLayer: string;

The layer's name inside the tiles.

style​

readonly style: ShapeStyle;

How it is drawn. The colour rule's field is a tile property, and a label template may name only a single property, such as {name}.

See also​

Source: packages/core/src/layers/definition.ts:740