Skip to main content

LayerAttribution

A credit line a provider asks for.

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

Signature​

import type { LayerAttribution } from "@mapcairn/core";

interface LayerAttribution

Properties​

text​

readonly text: string;

The credit. {year} stands for the current year, for a provider whose notice asks for it, so the credit is never out of date.

url​

readonly url?: string;

An https link to the provider or its terms.

Source: packages/core/src/layers/definition.ts:24