# AttributionProps

Props for [`Attribution`](https://docs.mapcairn.com/api/map/Attribution.md).

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

## Signature

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

## Properties

### aboutLink

```ts
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

```ts
readonly basemap: BasemapDefinition;
```

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

### introHeld

```ts
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

```ts
readonly layerCredits?: readonly LayerAttribution[];
```

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

## See also

- [`AttributionAboutLink`](https://docs.mapcairn.com/api/map/AttributionAboutLink.md)
- [`BasemapDefinition`](https://docs.mapcairn.com/api/core/BasemapDefinition.md)
- [`LayerAttribution`](https://docs.mapcairn.com/api/core/LayerAttribution.md)

Source: [packages/map/src/chrome/Attribution/Attribution.tsx:168](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/chrome/Attribution/Attribution.tsx#L168)
