@eox/layercontrol 0.28.2-dev.1736961804.0 → 0.28.2-dev.1737128144.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eox/layercontrol",
3
- "version": "0.28.2-dev.1736961804.0",
3
+ "version": "0.28.2-dev.1737128144.0",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@eox/map": "^1.16.0",
@@ -7,8 +7,8 @@ import _throttle from "lodash.throttle";
7
7
  import "./layer-legend";
8
8
  /**
9
9
  * @typedef {Partial<import("./layer-legend").LegendConfig> & {
10
- * range:string[];
11
- * domainProperties:string[]
10
+ * boundTo?:{key: string;value: string|number|boolean}
11
+ * domainProperties: string[]
12
12
  * }} layerConfigLegend
13
13
  **/
14
14
 
@@ -81,9 +81,9 @@ export class EOxLayerControlLayerConfig extends LitElement {
81
81
  * @type {{
82
82
  * schema: Record<string,any>;
83
83
  * element: string;
84
- * type?:"tileUrl"|"style";
85
- * style?:import("ol/layer/WebGLTile").Style
86
- * legend?: layerConfigLegend | (layerConfigLegend & { boundTo:{key:string;value:string|number|boolean} })[]
84
+ * type?: "tileUrl" | "style";
85
+ * style?: import("ol/layer/WebGLTile").Style
86
+ * legend?: layerConfigLegend | layerConfigLegend[]
87
87
  * }}
88
88
  */
89
89
  this.layerConfig = null;
@@ -135,6 +135,15 @@ export class EOxLayerControlLayerConfig extends LitElement {
135
135
  this,
136
136
  );
137
137
  }
138
+ this.dispatchEvent(
139
+ new CustomEvent("layerConfig:change", {
140
+ bubbles: true,
141
+ detail: {
142
+ jsonformValue: e.detail,
143
+ layer: this.layer,
144
+ },
145
+ }),
146
+ );
138
147
  this.requestUpdate();
139
148
  }
140
149
 
@@ -1,7 +1,6 @@
1
- import { LitElement, html, css } from "lit";
1
+ import { LitElement, html, css, nothing } from "lit";
2
2
  import { when } from "lit/directives/when.js";
3
3
  import { ifDefined } from "lit/directives/if-defined.js";
4
-
5
4
  /**
6
5
  * Legend configurations
7
6
  *
@@ -50,13 +49,6 @@ export class EOxLayerControlLayerLegend extends LitElement {
50
49
  */
51
50
  this.noShadow = false;
52
51
 
53
- /**
54
- * Legend configurations
55
- * @type {LegendConfig | LegendConfig[]}
56
- * @see {@link https://clhenrick.github.io/color-legend-element/}
57
- */
58
- this.layerLegend = null;
59
-
60
52
  /**
61
53
  * The native OL layer
62
54
  *
@@ -65,6 +57,38 @@ export class EOxLayerControlLayerLegend extends LitElement {
65
57
  */
66
58
  this.layer = null;
67
59
  }
60
+ /** @type {(LegendConfig & {id:string})[]}} */
61
+ #layerLegend = [];
62
+
63
+ get layerLegend() {
64
+ if (this.#layerLegend) {
65
+ return this.#layerLegend.length > 1
66
+ ? this.#layerLegend
67
+ : this.#layerLegend[0];
68
+ } else {
69
+ return null;
70
+ }
71
+ }
72
+ /**
73
+ * Legend configurations
74
+ * @param {LegendConfig | LegendConfig[]} value
75
+ * @see {@link https://clhenrick.github.io/color-legend-element/}
76
+ **/
77
+ set layerLegend(value) {
78
+ if (Array.isArray(value)) {
79
+ this.#layerLegend = value.map((config, idx) => ({
80
+ id: (this.layer?.get("id") ?? "") + idx,
81
+ ...config,
82
+ }));
83
+ } else {
84
+ this.#layerLegend = [
85
+ {
86
+ id: (this.layer?.get("id") ?? "") + 0,
87
+ ...value,
88
+ },
89
+ ];
90
+ }
91
+ }
68
92
 
69
93
  /**
70
94
  * Overrides createRenderRoot to handle shadow DOM creation based on the noShadow property.
@@ -74,19 +98,21 @@ export class EOxLayerControlLayerLegend extends LitElement {
74
98
  }
75
99
 
76
100
  firstUpdated() {
77
- // if the width is explicitly set, don't auto-update
78
- if (!this.layerLegend.width) {
101
+ if (this.layerLegend) {
79
102
  new ResizeObserver(() => {
80
- if (this.offsetWidth !== this.layerLegend.width) {
81
- this.layerLegend.width = this.offsetWidth;
82
- this.requestUpdate();
83
- }
103
+ this.#layerLegend = this.#layerLegend?.map((config) => {
104
+ if (this.offsetWidth !== config.width) {
105
+ config.width = this.offsetWidth;
106
+ }
107
+ return { ...config };
108
+ });
109
+ this.requestUpdate();
84
110
  }).observe(this.renderRoot.querySelector(".legend-container"));
85
111
  }
86
112
  }
87
113
 
88
114
  /**
89
- * Renders a Time Control for datetime options of a layer.
115
+ * Renders color legends based on the layerLegend property.
90
116
  */
91
117
  render() {
92
118
  if (!customElements.get("color-legend")) {
@@ -105,45 +131,26 @@ export class EOxLayerControlLayerLegend extends LitElement {
105
131
  () => html`
106
132
  <div class="legend-container">
107
133
  <!-- Render color-legend-->
108
- ${when(
109
- Array.isArray(this.layerLegend),
110
- () =>
111
- /** @type {LegendConfig[]} */ (this.layerLegend).map(
112
- (legend, idx) => html`
113
- <color-legend
114
- id="${this.layer.get("id") + idx}"
115
- width=${legend.width ?? 325}
116
- scaleType="${ifDefined(legend.scaleType)}"
117
- markType="${ifDefined(legend.markType)}"
118
- titleText="${ifDefined(legend.title)}"
119
- .range=${legend.range}
120
- .domain=${legend.domain}
121
- tickFormat="${ifDefined(legend.tickFormat)}"
122
- .ticks=${legend.ticks ?? 5}
123
- .tickValues=${legend.tickValues}
124
- .marginLeft=${0}
125
- .marginRight=${0}
126
- >
127
- </color-legend>
128
- <div></div>
129
- `,
130
- ),
131
- () => html`
134
+ ${this.#layerLegend.map(
135
+ (legend, idx, configs) => html`
132
136
  <color-legend
133
- id="${this.layer.get("id")}"
134
- width=${this.layerLegend.width ?? 325}
135
- scaleType="${ifDefined(this.layerLegend.scaleType)}"
136
- markType="${ifDefined(this.layerLegend.markType)}"
137
- titleText="${ifDefined(this.layerLegend.title)}"
138
- .range=${this.layerLegend.range}
139
- .domain=${this.layerLegend.domain}
140
- tickFormat="${ifDefined(this.layerLegend.tickFormat)}"
141
- .ticks=${this.layerLegend.ticks ?? 5}
142
- .tickValues=${this.layerLegend.tickValues}
137
+ id="${legend.id}"
138
+ width=${legend.width ?? 325}
139
+ scaleType="${ifDefined(legend.scaleType)}"
140
+ markType="${ifDefined(legend.markType)}"
141
+ titleText="${ifDefined(legend.title)}"
142
+ .range=${legend.range}
143
+ .domain=${legend.domain}
144
+ tickFormat="${ifDefined(legend.tickFormat)}"
145
+ .ticks=${legend.ticks ?? 5}
146
+ .tickValues=${legend.tickValues}
143
147
  .marginLeft=${0}
144
148
  .marginRight=${0}
145
149
  >
146
150
  </color-legend>
151
+ ${idx !== configs.length - 1
152
+ ? html`<div class="separator"></div>`
153
+ : nothing}
147
154
  `,
148
155
  )}
149
156
  </div>
@@ -153,6 +160,9 @@ export class EOxLayerControlLayerLegend extends LitElement {
153
160
  }
154
161
 
155
162
  #styleBasic = css`
163
+ .separator {
164
+ margin: 0 0 24px 0;
165
+ }
156
166
  color-legend {
157
167
  --cle-background: transparent;
158
168
  --cle-font-family: inherit;
@@ -6,38 +6,61 @@ import { flattenObject } from "../methods/layer-config";
6
6
  * @param {Record<string,unknown>} data
7
7
  */
8
8
  const getLegendConfig = (legendConfig, data) => {
9
- if (!legendConfig) return undefined;
10
- /** @type {import("../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]["legend"]} */
11
- let activeLegend;
9
+ if (!legendConfig) {
10
+ return undefined;
11
+ }
12
+
12
13
  const flatData = flattenObject(data);
13
- if (Array.isArray(legendConfig) && legendConfig.length) {
14
- activeLegend = legendConfig.find((legend) => {
15
- const propName = legend.boundTo.key;
16
- const expectedToMatch = legend.boundTo.value;
17
- return flatData[propName] == expectedToMatch;
18
- });
19
- if (!activeLegend) {
20
- activeLegend = legendConfig;
21
- }
14
+
15
+ /**
16
+ * legends config that will be shown
17
+ * @type {import("../components/layer-config").layerConfigLegend[]} */
18
+ let activeLegends;
19
+ /**
20
+ * legends config that are available
21
+ * @type {import("../components/layer-config").layerConfigLegend[]} */
22
+ let availableLegends;
23
+
24
+ if (Array.isArray(legendConfig)) {
25
+ availableLegends = structuredClone(legendConfig);
22
26
  } else {
23
- activeLegend = legendConfig;
24
- }
25
- if (!Array.isArray(activeLegend)) {
26
- activeLegend = [activeLegend];
27
+ availableLegends = [structuredClone(legendConfig)];
27
28
  }
28
- return activeLegend.map((lgnd) => {
29
- if (!("domainProperties" in lgnd) || "domain" in lgnd) {
30
- return { ...lgnd };
29
+
30
+ activeLegends = availableLegends.filter((legend) => {
31
+ // if the legend is not bound to a property, it will be shown
32
+ if (!("boundTo" in legend)) {
33
+ return true;
31
34
  }
32
- return Object.keys(lgnd)?.reduce((legend, key) => {
33
- if (key === "domainProperties") {
34
- legend["domain"] = lgnd[key].map((k) => flatData[k]);
35
- } else {
36
- legend[key] = lgnd[key];
37
- }
38
- return legend;
39
- }, /** @type {import("../components/layer-legend").LegendConfig} */ ({}));
35
+
36
+ const propName = legend.boundTo.key;
37
+ const expectedToMatch = legend.boundTo.value;
38
+
39
+ // if the property is not in the data, the legend will be shown
40
+ return !(propName in flatData) || flatData[propName] == expectedToMatch;
40
41
  });
42
+
43
+ // if no active legends are found, use all legends
44
+ if (!activeLegends.length) {
45
+ activeLegends = availableLegends;
46
+ }
47
+
48
+ return /** @type {import("../components/layer-legend").LegendConfig[]} */ (
49
+ activeLegends.map((activeLegend) => {
50
+ delete activeLegend.boundTo;
51
+ if (!("domainProperties" in activeLegend) || "domain" in activeLegend) {
52
+ return activeLegend;
53
+ }
54
+ return Object.keys(activeLegend)?.reduce((legend, key) => {
55
+ if (key === "domainProperties") {
56
+ legend["domain"] = activeLegend[key].map((k) => flatData[k]);
57
+ } else {
58
+ legend[key] = activeLegend[key];
59
+ }
60
+ return legend;
61
+ }, /** @type {import("../components/layer-legend").LegendConfig} */ ({}));
62
+ })
63
+ );
41
64
  };
42
65
 
43
66
  export default getLegendConfig;
package/src/main.js CHANGED
@@ -194,6 +194,16 @@ export class EOxLayerControl extends LitElement {
194
194
  );
195
195
  }
196
196
 
197
+ /**
198
+ * Dispatches jsonform updates from layer config to the layercontrol
199
+ * @param {CustomEvent} evt
200
+ */
201
+ #handleLayerConfigChange(evt) {
202
+ this.dispatchEvent(
203
+ new CustomEvent("layerConfig:change", { detail: evt.detail }),
204
+ );
205
+ }
206
+
197
207
  render() {
198
208
  // Checks if there are any layers with the 'layerControlOptional' property set to true
199
209
  const layers = this.map?.getLayers().getArray();
@@ -235,6 +245,7 @@ export class EOxLayerControl extends LitElement {
235
245
  .toolsAsList=${this.toolsAsList}
236
246
  @changed=${this.#handleLayerControlLayerListChange}
237
247
  @datetime:updated=${this.#handleDatetimeUpdate}
248
+ @layerConfig:change=${this.#handleLayerConfigChange}
238
249
  ></eox-layercontrol-layer-list>
239
250
  `,
240
251
  )}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @typedef {Partial<import("./layer-legend").LegendConfig> & {
3
- * range:string[];
4
- * domainProperties:string[]
3
+ * boundTo?:{key: string;value: string|number|boolean}
4
+ * domainProperties: string[]
5
5
  * }} layerConfigLegend
6
6
  **/
7
7
  /**
@@ -52,9 +52,9 @@ export class EOxLayerControlLayerConfig extends LitElement {
52
52
  * @type {{
53
53
  * schema: Record<string,any>;
54
54
  * element: string;
55
- * type?:"tileUrl"|"style";
56
- * style?:import("ol/layer/WebGLTile").Style
57
- * legend?: layerConfigLegend | (layerConfigLegend & { boundTo:{key:string;value:string|number|boolean} })[]
55
+ * type?: "tileUrl" | "style";
56
+ * style?: import("ol/layer/WebGLTile").Style
57
+ * legend?: layerConfigLegend | layerConfigLegend[]
58
58
  * }}
59
59
  */
60
60
  layerConfig: {
@@ -62,12 +62,7 @@ export class EOxLayerControlLayerConfig extends LitElement {
62
62
  element: string;
63
63
  type?: "tileUrl" | "style";
64
64
  style?: import("ol/layer/WebGLTile").Style;
65
- legend?: layerConfigLegend | (layerConfigLegend & {
66
- boundTo: {
67
- key: string;
68
- value: string | number | boolean;
69
- };
70
- })[];
65
+ legend?: layerConfigLegend | layerConfigLegend[];
71
66
  };
72
67
  /**
73
68
  * Throttle #handleDataChange() by 1000 milliseconds
@@ -84,7 +79,10 @@ export class EOxLayerControlLayerConfig extends LitElement {
84
79
  #private;
85
80
  }
86
81
  export type layerConfigLegend = Partial<import("./layer-legend").LegendConfig> & {
87
- range: string[];
82
+ boundTo?: {
83
+ key: string;
84
+ value: string | number | boolean;
85
+ };
88
86
  domainProperties: string[];
89
87
  };
90
88
  import { LitElement } from "lit";
@@ -1 +1 @@
1
- {"version":3,"file":"layer-config.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-config.js"],"names":[],"mappings":"AAOA;;;;;IAKI;AAEJ;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;MAKE;IA0BA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;;;;;;;OAUG;IACH,aARU;QACT,MAAS,EAAE,OAAO,MAAM,EAAC,GAAG,CAAC,CAAC;QAC9B,OAAU,EAAE,MAAM,CAAC;QACnB,IAAO,CAAC,EAAC,SAAS,GAAC,OAAO,CAAC;QAC3B,KAAQ,CAAC,EAAC,OAAO,oBAAoB,EAAE,KAAK,CAAA;QAC5C,MAAS,CAAC,EAAE,iBAAiB,GAAG,CAAC,iBAAiB,GAAG;YAAE,OAAO,EAAC;gBAAC,GAAG,EAAC,MAAM,CAAC;gBAAA,KAAK,EAAC,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;aAAC,CAAA;SAAE,CAAC,EAAE,CAAA;KACxG,CAEkB;IAEvB;;OAEG;IACH,8DAqBW;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;SAAE,CAAC;KAAE,WArBuB;IAsDnE;;OAEG;IACH,+CAgDC;;CAYF;gCA1MY,QAAQ,OAAO,gBAAgB,EAAE,YAAY,CAAC,GAAG;IAC7D,KAAW,EAAC,MAAM,EAAE,CAAC;IACrB,gBAAsB,EAAC,MAAM,EAAE,CAAA;CACzB;2BAX+B,KAAK"}
1
+ {"version":3,"file":"layer-config.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-config.js"],"names":[],"mappings":"AAOA;;;;;IAKI;AAEJ;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;MAKE;IA0BA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;;;;;;;OAUG;IACH,aARU;QACT,MAAS,EAAE,OAAO,MAAM,EAAC,GAAG,CAAC,CAAC;QAC9B,OAAU,EAAE,MAAM,CAAC;QACnB,IAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;QAC9B,KAAQ,CAAC,EAAE,OAAO,oBAAoB,EAAE,KAAK,CAAA;QAC7C,MAAS,CAAC,EAAE,iBAAiB,GAAG,iBAAiB,EAAE,CAAA;KAC/C,CAEkB;IAEvB;;OAEG;IACH,8DAqBW;QAAE,MAAM,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;SAAE,CAAC;KAAE,WArBuB;IA+DnE;;OAEG;IACH,+CAgDC;;CAYF;gCAnNY,QAAQ,OAAO,gBAAgB,EAAE,YAAY,CAAC,GAAG;IAC7D,OAAa,CAAC,EAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAA,KAAK,EAAE,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;KAAC,CAAA;IACzD,gBAAsB,EAAE,MAAM,EAAE,CAAA;CAC1B;2BAX+B,KAAK"}
@@ -46,12 +46,6 @@ export class EOxLayerControlLayerLegend extends LitElement {
46
46
  * @type {Boolean}
47
47
  */
48
48
  noShadow: boolean;
49
- /**
50
- * Legend configurations
51
- * @type {LegendConfig | LegendConfig[]}
52
- * @see {@link https://clhenrick.github.io/color-legend-element/}
53
- */
54
- layerLegend: LegendConfig | LegendConfig[];
55
49
  /**
56
50
  * The native OL layer
57
51
  *
@@ -59,9 +53,16 @@ export class EOxLayerControlLayerLegend extends LitElement {
59
53
  * @see {@link https://openlayers.org/en/latest/apidoc/module-ol_layer_Layer-Layer.html}
60
54
  */
61
55
  layer: import("ol/layer").Layer;
56
+ /**
57
+ * Legend configurations
58
+ * @param {LegendConfig | LegendConfig[]} value
59
+ * @see {@link https://clhenrick.github.io/color-legend-element/}
60
+ **/
61
+ set layerLegend(value: LegendConfig | LegendConfig[]);
62
+ get layerLegend(): LegendConfig | LegendConfig[];
62
63
  firstUpdated(): void;
63
64
  /**
64
- * Renders a Time Control for datetime options of a layer.
65
+ * Renders color legends based on the layerLegend property.
65
66
  */
66
67
  render(): import("lit-html").TemplateResult<1>;
67
68
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"layer-legend.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-legend.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;IAcI;AAEJ;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;MAKE;IAKA;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,aAHU,YAAY,GAAG,YAAY,EAAE,CAGhB;IAEvB;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAUnB,qBAUC;IAED;;OAEG;IACH,+CA8DC;;CAaF;;;;2BA9JY;IACZ,MAAU,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IACtE,KAAS,CAAC,EAAC,MAAM,CAAC;IAClB,KAAS,EAAC,MAAM,EAAE,CAAC;IACnB,KAAS,CAAC,EAAC,MAAM,CAAC;IAClB,UAAc,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC/E,KAAS,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACrE,UAAc,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC/E,SAAa,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC7E,QAAY,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAA;CACxE;2BAjBkC,KAAK"}
1
+ {"version":3,"file":"layer-legend.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-legend.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;IAcI;AAEJ;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;MAKE;IAKA;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAcnB;;;;QAII;IACJ,sDAcC;IA5BD,iDAQC;IA6BD,qBAYC;IAED;;OAEG;IACH,+CA2CC;;CAgBF;;;;2BAzKY;IACZ,MAAU,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IACtE,KAAS,CAAC,EAAC,MAAM,CAAC;IAClB,KAAS,EAAC,MAAM,EAAE,CAAC;IACnB,KAAS,CAAC,EAAC,MAAM,CAAC;IAClB,UAAc,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC/E,KAAS,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACrE,UAAc,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC/E,SAAa,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IAC7E,QAAY,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAA;CACxE;2BAhB2C,KAAK"}
@@ -5,5 +5,5 @@ export default getLegendConfig;
5
5
  * @param {import("../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]["legend"]} legendConfig
6
6
  * @param {Record<string,unknown>} data
7
7
  */
8
- declare function getLegendConfig(legendConfig: import("../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]["legend"], data: Record<string, unknown>): any;
8
+ declare function getLegendConfig(legendConfig: import("../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]["legend"], data: Record<string, unknown>): import("../components/layer-legend").LegendConfig[];
9
9
  //# sourceMappingURL=get-legend-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-legend-config.d.ts","sourceRoot":"","sources":["../../../../src/helpers/get-legend-config.js"],"names":[],"mappings":";AACA;;;;;GAKG;AACH,+CAHW,OAAO,4BAA4B,EAAE,0BAA0B,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,QACxF,OAAO,MAAM,EAAC,OAAO,CAAC,OAmChC"}
1
+ {"version":3,"file":"get-legend-config.d.ts","sourceRoot":"","sources":["../../../../src/helpers/get-legend-config.js"],"names":[],"mappings":";AACA;;;;;GAKG;AACH,+CAHW,OAAO,4BAA4B,EAAE,0BAA0B,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,QACxF,OAAO,MAAM,EAAC,OAAO,CAAC,uDA0DhC"}
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAaA;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,aAAa,CAEiD;IAExE;;;;OAIG;IACH,2BAA8B;IAE9B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,qBAAwB;IAG1B;;;OAGG;IACH,qBAEC;IAYD,uDAIC;IARD,kDAEC;IARD,sCAIC;IAoCD,+CA2DC;;CAwBF;2BAvRgC,KAAK"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWE;IAaA;;;;;OAKG;IACH,KAFU,SAAO,WAAW,CAER;IAEpB;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,aAAa,CAEiD;IAExE;;;;OAIG;IACH,2BAA8B;IAE9B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,qBAAwB;IAG1B;;;OAGG;IACH,qBAEC;IAYD,uDAIC;IARD,kDAEC;IARD,sCAIC;IA8CD,+CA4DC;;CAwBF;2BAlSgC,KAAK"}