LayerDefinitionBase
The fields every layer definition has, whatever its kind.
This is an interface exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { LayerDefinitionBase } from "@mapcairn/core";
interface LayerDefinitionBase
Properties
attribution
readonly attribution: readonly LayerAttribution[];
The credits that are shown while the layer is on.
controls
readonly controls: readonly LayerControlDefinition[];
What the person can adjust, such as a date or a time window.
description
readonly description: DefinitionText;
One sentence on what the layer shows.
disclaimer
readonly disclaimer?: DefinitionText;
Shown on every card, for example that alerts are automatic estimates.
group
readonly group: DefinitionText;
A heading the layer is listed under, such as Hazards.
id
readonly id: string;
Lowercase letters, digits and hyphens, starting with a letter. Used in the permalink.
name
readonly name: DefinitionText;
The layer's name in the list and the key.
variables
readonly variables?: readonly DerivedVariable[];
URL variables computed from control values.