Skip to main content

MapVectorSourceLayer

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 { MapVectorSourceLayer } from "@mapcairn/core";

interface MapVectorSourceLayer

Properties​

geometry​

readonly geometry: "area" | "line";

Whether the layer is drawn as polygons (area) or lines (line).

label​

readonly label?: {
readonly field: string;
readonly minzoom?: number;
};

Draws the property's value on each feature.

maxzoom​

readonly maxzoom?: number;

The normalised zoom from which this layer is hidden.

minzoom​

readonly minzoom?: number;

Visible from and to these normalised zoom levels.

rule​

readonly rule: MapLookRule;

How each feature's look is picked from its properties.

sourceLayer​

readonly sourceLayer: string;

The layer's name inside the tiles.

See also​

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