Skip to content

@eodash/eodash / Widgets / EodashLayerControl

Class: EodashLayerControl ​

Guide: EodashLayerControl

Properties ​

cssVars? ​

CSS custom-property overrides forwarded to the underlying eox-layercontrol element via its style attribute.

ts
optional cssVars?: Record<string, string> = {};

datetimeDebounce? ​

Milliseconds to wait before applying a datetime change from the layer control.

ts
optional datetimeDebounce?: number = 500;

layoutIcon? ​

ts
optional layoutIcon?: string = mdiViewDashboard;

layoutTarget? ​

ts
optional layoutTarget?: string;

map? ​

Which map instance this control is bound to. Use "second" in a compare-mode layout.

ts
optional map?: "first" | "second" = "first";

title? ​

Heading rendered above the layer list. Set to false to hide it.

ts
optional title?: string | false = "Layers";

tools? ​

Tool tabs shown inside eox-layercontrol. Remove entries to hide individual tabs.

ts
optional tools?: string[] = ["datetime", "info", "config", "legend", "opacity"];