Skip to main content

templateValues

The values a URL template can use, from values already resolved with resolveControlValues: every control value (a date and time as its ISO instant, the form a provider names it by) plus each derived variable, looked up in its table. A disabled control counts as its default in a lookup, so a hidden choice never changes the request. A combination missing from a table leaves its variable out, which validation prevents.

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

Signature​

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

function templateValues(definition: LayerDefinition, values: ControlValues): Readonly<Record<string, string>>;

Parameters​

  • definition (LayerDefinition)
  • values (ControlValues)

Returns​

Readonly<Record<string, string>>

See also​

Source: packages/core/src/layers/controls.ts:184