# TileSource

Raster tiles drawn as an overlay, such as WMTS imagery or a WMS map.

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

## Signature

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

## Properties

### bounds

```ts
readonly bounds?: readonly [number, number, number, number];
```

The box the service has real tiles for, as `[west, south, east, north]`
in degrees, west less than east. The engine asks for no tile that lies
wholly outside it; a tile that straddles an edge is still drawn whole.
Set it when a provider fills the rest with blank or opaque filler: on a
globe the engine stretches a tile at the edge of the world over the pole,
so filler there becomes wedges meeting at the pole.

### kind

```ts
readonly kind: "tiles";
```

Tells a raster tile source from the other source kinds.

### maxzoom

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

The deepest tile level the service has; the engine scales beyond it.

### tiles

```ts
readonly tiles: string;
```

A URL template over control values. `{z}`, `{x}`, `{y}` and
`{bbox-epsg-3857}` are left for the map engine to fill.

### tileSize

```ts
readonly tileSize: 256 | 512;
```

The tiles' size in pixels, 256 or 512.

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