Skip to main content

AttributionProps

Props for Attribution.

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

Signature​

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

interface AttributionProps

Properties​

readonly aboutLink?: AttributionAboutLink;

A link to the host's About page, listed after the credits, so a visitor who arrives on the map from a shared link can find the product behind it. The credits button is on every screen, so the link is always one press away. It opens in the same tab.

basemap​

readonly basemap: BasemapDefinition;

The active basemap. Its credits, plus the engine's, are listed.

introHeld​

readonly introHeld?: boolean;

Holds the first showing back while the host has another card on the map (its first-visit tour), so the two are not on screen together. The host decides when that matters, for instance by layout. The hold ends by itself on the first zoom the person makes, the first time the map moves, or after ATTRIBUTION_HOLD_MAX_MS, and the credits then show for the full time. The button opens them at any moment, and opening them counts as the first showing.

layerCredits​

readonly layerCredits?: readonly LayerAttribution[];

Credits of the data layers that are on, listed after the map's own.

See also​

Source: packages/map/src/chrome/Attribution/Attribution.tsx:168