# isControlEnabled

Whether a control can be used with the other controls' current values.

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

## Signature

```ts
import { isControlEnabled } from "@mapcairn/core";
 
function isControlEnabled(control: LayerControlDefinition, values: ControlValues): boolean;
```

## Parameters

- `control` (`LayerControlDefinition`)
- `values` (`ControlValues`)

## Returns

`boolean`

## See also

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

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