# 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

```ts
import type { MapVectorSourceLayer } from "@mapcairn/core";
 
interface MapVectorSourceLayer
```

## Properties

### geometry

```ts
readonly geometry: "area" | "line";
```

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

### label

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

Draws the property's value on each feature.

### maxzoom

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

The normalised zoom from which this layer is hidden.

### minzoom

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

Visible from and to these normalised zoom levels.

### rule

```ts
readonly rule: MapLookRule;
```

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

### sourceLayer

```ts
readonly sourceLayer: string;
```

The layer's name inside the tiles.

## See also

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

Source: [packages/core/src/ports/map.ts:234](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/map.ts#L234)
