VectorTileSource
Vector tiles drawn by the map engine, styled per source layer. Features stay in the tiles, so a layer of this kind has a key but no cards or list.
This is an interface exported by @mapcairn/sdk/browser, checked against version 0.2.0.
Signature
import type { VectorTileSource } from "@mapcairn/sdk/browser";
interface VectorTileSource
Properties
encoding
readonly encoding?: VectorTileEncoding;
How the service encodes its tiles: mvt (Mapbox Vector Tiles, the
default) or mlt (MapLibre Tile). Core only carries the value; the map
engine decodes. A server that answers in the other encoding makes the
layer report that its tiles are in another format.
kind
readonly kind: "vector-tiles";
Tells a vector tile source from the other source kinds.
maxzoom
readonly maxzoom: number;
The deepest tile level the service has; the engine scales beyond it.
minzoom
readonly minzoom?: number;
The shallowest tile level the service has. Defaults to 0.
tiles
readonly tiles: string;
A URL template over control values. {z}, {x} and {y} are left for the engine.