Skip to main content

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​

import { creditLines } from "@mapcairn/core";

function creditLines(attribution: readonly LayerAttribution[], year: string): string[];

Parameters​

  • attribution (readonly LayerAttribution[])
  • year (string)

Returns​

string[]

See also​

Source: packages/core/src/layers/saveFeatures.ts:85