# templateValues

The values a URL template can use, from values already resolved with
[`resolveControlValues`](https://docs.mapcairn.com/api/core/resolveControlValues.md): 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

```ts
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

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

Source: [packages/core/src/layers/controls.ts:184](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/controls.ts#L184)
