# TileLayerDefinition

A raster overlay. It loads no features and has no list. Without an
`identify` block it has no card either; with one, a tap on it asks a
service for features, which open a card (the block's `card`).

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

## Signature

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

## Properties

### identify

```ts
readonly identify?: IdentifySource;
```

How a tap on the layer finds features. Its card is nested here, not on
the layer, so `isFeedLayer` and `loadsFeatures` still treat the layer
as one that loads nothing.

### legend

```ts
readonly legend?: readonly {
        readonly label: DefinitionText;
        readonly colour: PaletteSlot;
    }[];
```

What the colours on the overlay mean, if anything.

### source

```ts
readonly source: TileSource;
```

Where the raster tiles come from.

## See also

- [`LayerDefinitionBase`](https://docs.mapcairn.com/api/core/LayerDefinitionBase.md)
- [`IdentifySource`](https://docs.mapcairn.com/api/core/IdentifySource.md)
- [`DefinitionText`](https://docs.mapcairn.com/api/core/DefinitionText.md)
- [`PaletteSlot`](https://docs.mapcairn.com/api/core/PaletteSlot.md)
- [`TileSource`](https://docs.mapcairn.com/api/core/TileSource.md)

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