# ShapeLabel

Text drawn on each polygon or line, filled from the feature's fields.

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

## Signature

```ts
import type { ShapeLabel } from "@mapcairn/core";
 
interface ShapeLabel<T extends LayerTemplate = string>
```

## Type parameters

- `T?` (`LayerTemplate`)

## Properties

### minzoom

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

Labels appear from this normalised zoom, so a world view is not buried in text.

### template

```ts
readonly template: T;
```

A template such as `{name}` or `{name}: {population|number}`.

## See also

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

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