# creditLines

A layer's credits as lines of text, `{year}` filled in and a link added in
brackets, so the credit and the terms it points to travel with the file.

This is a function exported by `@mapcairn/core`, checked against version 0.2.0.

## Signature

```ts
import { creditLines } from "@mapcairn/core";
 
function creditLines(attribution: readonly LayerAttribution[], year: string): string[];
```

## Parameters

- `attribution` (`readonly LayerAttribution[]`)
- `year` (`string`)

## Returns

`string[]`

## See also

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

Source: [packages/core/src/layers/saveFeatures.ts:85](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/saveFeatures.ts#L85)
