Skip to main content

CardSpec

What a feature's card shows. Templates read decoded fields.

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

Signature​

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

interface CardSpec

Properties​

lines​

readonly lines: readonly LayerTemplate[];

One line each, such as {depthKm|km} deep. Lines whose fields are all missing are left out.

readonly link?: {
readonly field: string;
readonly label: DefinitionText;
};

A link to the provider's page for the feature.

title​

readonly title: LayerTemplate;

The card's heading, a template over the feature's decoded fields.

See also​

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