Skip to main content

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​

import type { TileLayerDefinition } from "@mapcairn/core";

interface TileLayerDefinition extends LayerDefinitionBase

Properties​

identify​

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​

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

What the colours on the overlay mean, if anything.

source​

readonly source: TileSource;

Where the raster tiles come from.

See also​

Source: packages/core/src/layers/definition.ts:680