FeatureCard
The card for one feature, drawn from its definition's card template (a
feed's own, or the identify card of a tile layer): the title, for a feed
layer the words for its colour (with the same glyph as the map), its lines,
a link to the provider, the layer's disclaimer, "Show on map" and, for
layers with a detail source, "Show affected area" with what it costs. A
feature found by a tap has no style, so its card has no glyph or class
line. Renders nothing for a layer whose features have no card.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { FeatureCard } from "@mapcairn/map";
function FeatureCard(input: FeatureCardProps): JSX.Element | null;
Parameters
{ layers, selected, formatters, headingLevel, headingRef, onShowOnMap, }input(FeatureCardProps)
Returns
JSX.Element | null