Skip to main content

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​

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

function isControlEnabled(control: LayerControlDefinition, values: ControlValues): boolean;

Parameters​

  • control (LayerControlDefinition)
  • values (ControlValues)

Returns​

boolean

See also​

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