# VectorTileLayerDefinition

A vector tile layer: one source, drawn from one or more of its source
layers, each with its own style and zoom window. The window of the whole
layer is the widest any source layer needs.

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

## Signature

```ts
import type { VectorTileLayerDefinition } from "@mapcairn/core";
 
interface VectorTileLayerDefinition extends LayerDefinitionBase
```

## Properties

### maxzoom

```ts
readonly maxzoom?: number;
```

The normalised zoom from which the layer is hidden.

### minzoom

```ts
readonly minzoom?: number;
```

The layer is visible from `minzoom` up to, but not including, `maxzoom` (normalised zoom levels), as the engine hides a layer from its `maxzoom`.

### source

```ts
readonly source: VectorTileSource;
```

Where the vector tiles come from.

### sourceLayers

```ts
readonly sourceLayers: readonly VectorSourceLayer[];
```

The layers of the tiles that are drawn, each with its own style and zoom window.

## See also

- [`LayerDefinitionBase`](https://docs.mapcairn.com/api/core/LayerDefinitionBase.md)
- [`VectorTileSource`](https://docs.mapcairn.com/api/core/VectorTileSource.md)
- [`VectorSourceLayer`](https://docs.mapcairn.com/api/core/VectorSourceLayer.md)

Source: [packages/core/src/layers/definition.ts:774](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L774)
