Skip to main content

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​

import type { OpacityControlDefinition } from "@mapcairn/core";

interface OpacityControlDefinition extends ControlBase

Properties​

default​

readonly default: number;

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

kind​

readonly kind: "opacity";

Tells an opacity control from the other kinds.

See also​

Source: packages/core/src/layers/definition.ts:148