Skip to main content

creditsLine

The credits of a basemap and the layers drawn over it as one line of text, for a saved image that keeps its sources.

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

Signature​

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

function creditsLine(basemap: BasemapDefinition, layerCredits?: readonly {
readonly text: string;
}[]): string;

Parameters​

  • basemap (BasemapDefinition)
  • layerCredits? (readonly { readonly text: string; }[])

Returns​

string

See also​

Source: packages/core/src/basemaps/basemaps.ts:321