# OpacityControlDefinition

How opaque a tile overlay is, from 0.1 to 1. Its value is a decimal string
such as `0.8`. It never changes a URL, so it costs no data.

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

## Signature

```ts
import type { OpacityControlDefinition } from "@mapcairn/core";
 
interface OpacityControlDefinition extends ControlBase
```

## Properties

### default

```ts
readonly default: number;
```

The opacity used until the person changes it, 0.1 to 1.

### kind

```ts
readonly kind: "opacity";
```

Tells an opacity control from the other kinds.

## See also

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

Source: [packages/core/src/layers/definition.ts:148](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/layers/definition.ts#L148)
