Skip to main content

FeatureCardProps

Props for FeatureCard.

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

Signature​

import type { FeatureCardProps } from "@mapcairn/map";

interface FeatureCardProps

Properties​

formatters​

readonly formatters: FormatterRegistry;

The formatters the layer's card template may name.

headingLevel​

readonly headingLevel: 3 | 4 | 5 | 6;

The level of the card's heading, below the heading of the section that holds it.

headingRef​

readonly headingRef?: Ref<HTMLHeadingElement>;

Receives the card's heading element.

layers​

readonly layers: DataLayers;

The layers state the card reads and acts on, such as showing the affected area.

onShowOnMap​

readonly onShowOnMap: () => void;

Centres the map on the feature.

selected​

readonly selected: SelectedFeature;

The feature to show, with its layer.

See also​

Source: packages/map/src/layers/FeatureCard.tsx:37