@eox/layercontrol 0.29.1 → 1.0.1

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.
Files changed (78) hide show
  1. package/dist/eox-layercontrol.js +2999 -2864
  2. package/dist/eox-layercontrol.umd.cjs +627 -566
  3. package/dist/material-symbols-outlined.woff2 +0 -0
  4. package/dist/material-symbols-rounded.woff2 +0 -0
  5. package/dist/material-symbols-sharp.woff2 +0 -0
  6. package/dist/material-symbols-subset.woff2 +0 -0
  7. package/package.json +4 -3
  8. package/src/components/add-layers.js +78 -178
  9. package/src/components/layer-config.js +22 -3
  10. package/src/components/layer-group.js +38 -17
  11. package/src/components/layer-legend.js +7 -4
  12. package/src/components/layer-list.js +27 -19
  13. package/src/components/layer-tools.js +60 -118
  14. package/src/components/layer.js +220 -60
  15. package/src/components/optional-list.js +32 -25
  16. package/src/components/tools-items.js +34 -31
  17. package/src/enums/index.js +1 -0
  18. package/src/enums/stories/index.js +4 -2
  19. package/src/helpers/create-sortable.js +4 -1
  20. package/src/helpers/get-layer-type.js +2 -1
  21. package/src/helpers/index.js +1 -0
  22. package/src/helpers/layer-tools.js +75 -13
  23. package/src/main.js +36 -6
  24. package/types/layercontrol/src/components/add-layers.d.ts.map +1 -1
  25. package/types/layercontrol/src/components/layer-config.d.ts.map +1 -1
  26. package/types/layercontrol/src/components/layer-group.d.ts.map +1 -1
  27. package/types/layercontrol/src/components/layer-legend.d.ts.map +1 -1
  28. package/types/layercontrol/src/components/layer-list.d.ts.map +1 -1
  29. package/types/layercontrol/src/components/layer-tools.d.ts +8 -4
  30. package/types/layercontrol/src/components/layer-tools.d.ts.map +1 -1
  31. package/types/layercontrol/src/components/layer.d.ts +9 -0
  32. package/types/layercontrol/src/components/layer.d.ts.map +1 -1
  33. package/types/layercontrol/src/components/optional-list.d.ts.map +1 -1
  34. package/types/layercontrol/src/components/tools-items.d.ts.map +1 -1
  35. package/types/layercontrol/src/enums/index.d.ts +1 -1
  36. package/types/layercontrol/src/enums/stories/index.d.ts +1 -0
  37. package/types/layercontrol/src/enums/stories/index.d.ts.map +1 -1
  38. package/types/layercontrol/src/helpers/create-sortable.d.ts.map +1 -1
  39. package/types/layercontrol/src/helpers/get-layer-type.d.ts.map +1 -1
  40. package/types/layercontrol/src/helpers/index.d.ts +1 -1
  41. package/types/layercontrol/src/helpers/layer-tools.d.ts +13 -3
  42. package/types/layercontrol/src/helpers/layer-tools.d.ts.map +1 -1
  43. package/types/layercontrol/src/main.d.ts.map +1 -1
  44. package/types/map/src/components/compare.d.ts +2 -2
  45. package/types/map/src/components/compare.d.ts.map +1 -1
  46. package/types/map/src/components/tooltip.d.ts +7 -2
  47. package/types/map/src/components/tooltip.d.ts.map +1 -1
  48. package/types/map/src/controls/controls.d.ts +0 -6
  49. package/types/map/src/controls/controls.d.ts.map +1 -1
  50. package/types/map/src/controls/geo-location.d.ts +3 -3
  51. package/types/map/src/controls/geo-location.d.ts.map +1 -1
  52. package/types/map/src/controls/loading-indicator.d.ts +1 -1
  53. package/types/map/src/controls/loading-indicator.d.ts.map +1 -1
  54. package/types/map/src/custom/sources/FlatGeoBuf.d.ts +27 -0
  55. package/types/map/src/custom/sources/FlatGeoBuf.d.ts.map +1 -0
  56. package/types/map/src/custom/sources/WMTSCapabilities.d.ts +35 -0
  57. package/types/map/src/custom/sources/WMTSCapabilities.d.ts.map +1 -0
  58. package/types/map/src/helpers/add-new-feature.d.ts +2 -1
  59. package/types/map/src/helpers/add-new-feature.d.ts.map +1 -1
  60. package/types/map/src/helpers/generate.d.ts +5 -4
  61. package/types/map/src/helpers/generate.d.ts.map +1 -1
  62. package/types/map/src/helpers/interactions.d.ts.map +1 -1
  63. package/types/map/src/helpers/parse-text.d.ts +3 -1
  64. package/types/map/src/helpers/parse-text.d.ts.map +1 -1
  65. package/types/map/src/helpers/select.d.ts +5 -5
  66. package/types/map/src/helpers/select.d.ts.map +1 -1
  67. package/types/map/src/helpers/tile-grid.d.ts +2 -2
  68. package/types/map/src/helpers/tile-grid.d.ts.map +1 -1
  69. package/types/map/src/layers.d.ts +116 -0
  70. package/types/map/src/layers.d.ts.map +1 -0
  71. package/types/map/src/main.d.ts +7 -7
  72. package/types/map/src/main.d.ts.map +1 -1
  73. package/types/map/src/methods/map/add-update-layer.d.ts +2 -2
  74. package/types/map/src/methods/map/add-update-layer.d.ts.map +1 -1
  75. package/types/map/src/methods/map/setters.d.ts +2 -2
  76. package/types/map/src/methods/map/setters.d.ts.map +1 -1
  77. package/types/map/src/types.d.ts +28 -38
  78. package/types/map/src/types.d.ts.map +1 -1
@@ -89,31 +89,38 @@ export class EOxLayerControlOptionalList extends LitElement {
89
89
  );
90
90
 
91
91
  return html`
92
- <!-- Label for the dropdown -->
93
- <label for="optional">Optional layers</label>
94
-
95
- <!-- Dropdown select element -->
96
- <select name="optional" data-cy="optionalLayers">
97
- <!-- Default placeholder option -->
98
- <option disabled selected value>
99
- -- select an optional layer to add --
100
- </option>
101
-
102
- <!-- Mapping through filtered layers list to generate dropdown options -->
103
- ${filteredLayersList.map((layer) => {
104
- // @ts-expect-error TODO
105
- const value = layer.get(this.idProperty) || layer.ol_uid;
106
- const title = layer.get(this.titleProperty);
107
- const id = `layer ${layer.get(this.idProperty)}`;
108
- const label = title || id;
109
-
110
- // Generating options for the dropdown
111
- return html` <option value="${value}">${label}</option> `;
112
- })}
113
- </select>
114
-
115
- <!-- Button to handle adding layers -->
116
- <button @click="${this.#handleAddToList}">add</button>
92
+ <nav class="bottom-padding large-padding">
93
+ <div class="field suffix border small max">
94
+ <!-- Dropdown select element -->
95
+ <select
96
+ name="optional"
97
+ data-cy="optionalLayers"
98
+ class="small-padding"
99
+ style="font-size: small"
100
+ >
101
+ <!-- Default placeholder option -->
102
+ <option disabled selected value>-- select --</option>
103
+
104
+ <!-- Mapping through filtered layers list to generate dropdown options -->
105
+ ${filteredLayersList.map((layer) => {
106
+ // @ts-expect-error TODO
107
+ const value = layer.get(this.idProperty) || layer.ol_uid;
108
+ const title = layer.get(this.titleProperty);
109
+ const id = `layer ${layer.get(this.idProperty)}`;
110
+ const label = title || id;
111
+
112
+ // Generating options for the dropdown
113
+ return html` <option value="${value}">${label}</option> `;
114
+ })}
115
+ </select>
116
+
117
+ <!-- Label for the dropdown -->
118
+ <label for="optional">Optional layers</label>
119
+ </div>
120
+
121
+ <!-- Button to handle adding layers -->
122
+ <button class="small" @click="${this.#handleAddToList}">Add</button>
123
+ </nav>
117
124
  `;
118
125
  }
119
126
  }
@@ -1,6 +1,7 @@
1
1
  import { LitElement, html } from "lit";
2
2
  import { when } from "lit/directives/when.js";
3
3
  import { map } from "lit/directives/map.js";
4
+ import eoxStyle from "@eox/ui/style.css?inline";
4
5
 
5
6
  export class EOxLayerControlTabs extends LitElement {
6
7
  // Define static properties for the component
@@ -120,7 +121,10 @@ export class EOxLayerControlTabs extends LitElement {
120
121
  </nav>
121
122
  `,
122
123
  )}
123
- <figure>
124
+ <figure
125
+ class="no-round small-padding vertical-padding"
126
+ style="overflow: hidden; white-space: normal"
127
+ >
124
128
  <!-- Content for each tab -->
125
129
  ${map(
126
130
  tabs,
@@ -139,6 +143,10 @@ export class EOxLayerControlTabs extends LitElement {
139
143
  <!-- Content slot for each tab -->
140
144
  <slot name=${`${tab}-content`}>${tab}</slot>
141
145
  </div>
146
+ ${when(
147
+ this.toolsAsList && index < tabs.length - 1,
148
+ () => html`<hr class="small" />`,
149
+ )}
142
150
  `,
143
151
  )}
144
152
  </figure>
@@ -168,45 +176,40 @@ export class EOxLayerControlTabs extends LitElement {
168
176
  .listed .tab.highlighted {
169
177
  display: block;
170
178
  }
179
+ .listed .tab {
180
+ margin-bottom: .5rem;
181
+ }
171
182
  `;
172
183
 
173
184
  #styleEOX = `
174
- .listed label {
175
- display: flex;
176
- justify-content: start;
177
- align-items: center;
178
- background: var(--background-color) !important;
185
+ ${eoxStyle}
186
+ figure {
187
+ padding: var(--padding-vertical) var(--padding);
188
+ background-color: var(--surface); /* fallback */
189
+ background-color: var(--item-hover-color);
179
190
  }
180
- .listed label:not(:first-of-type) {
181
- margin-top: 10px;
191
+ .listed [name*=-icon] {
192
+ display: none;
182
193
  }
183
- .listed label span {
194
+ .listed [name*=-icon]+span {
184
195
  text-transform: capitalize;
185
- font-weight: 300;
186
- }
187
- .tabbed, .listed {
188
- font-size: small;
196
+ font-weight: bold;
189
197
  }
190
- .tabbed label.highlighted {
191
- border: 1px solid #0041701a;
192
- border-radius: 2px;
193
- border-bottom: none;
194
- pointer-events: none;
198
+ .tabbed > nav > div > label,
199
+ .tabbed > nav > div > span {
200
+ border-bottom: 1px solid var(--surface);
195
201
  }
196
- nav div label,
197
- nav div span {
198
- width: 20px;
199
- height: 20px;
200
- display: flex;
201
- align-items: center;
202
- justify-content: center;
203
- cursor: pointer;
202
+ .tabbed > nav > div > label.highlighted,
203
+ .tabbed > nav > div > span.highlighted {
204
+ border-bottom: 2px solid var(--outline-variant);
204
205
  }
205
- figure {
206
- background: var(--background-color);
207
- border: 1px solid #0041701a;
208
- border-radius: 2px;
209
- padding: var(--padding-vertical) var(--padding);
206
+ :host {
207
+ --eox-slider-thumb-height: 10px !important;
208
+ --eox-slider-thumb-width: 10px !important;
209
+ --eox-slider-track-height: 4px !important;
210
+ --eox-panel-spacing: 0 !important;
211
+ --eox-slider-margin: 0 !important;
212
+ font-size: small;
210
213
  }
211
214
  `;
212
215
  }
@@ -4,6 +4,7 @@ export {
4
4
  STORIES_LAYER_REGION,
5
5
  STORIES_LAYER_SENTINEL_HUB,
6
6
  STORIES_MAIN_MAP_LAYERS,
7
+ STORIES_LAYERCONTROL_STYLE,
7
8
  STORIES_MAP_STYLE,
8
9
  STORIES_LAYER_EOX_CLOUDLESS_2021,
9
10
  STORIES_LAYER_EOX_CLOUDLESS_2020,
@@ -16,6 +16,8 @@ const LAYER_EOX_CLOUDLESS = (year) => ({
16
16
  },
17
17
  });
18
18
 
19
+ export const STORIES_LAYERCONTROL_STYLE = "width: 240px;";
20
+
19
21
  export const STORIES_MAP_STYLE =
20
22
  "width: 400px; height: 300px; margin-left: 7px;";
21
23
 
@@ -128,9 +130,9 @@ export const STORIES_MAIN_MAP_LAYERS = [
128
130
  description: "# Hello world",
129
131
  },
130
132
  layers: [
131
- STORIES_LAYER_SENTINEL_HUB.wind,
132
- STORIES_LAYER_SENTINEL_HUB.no2,
133
133
  STORIES_LAYER_REGION,
134
+ STORIES_LAYER_SENTINEL_HUB.no2,
135
+ STORIES_LAYER_SENTINEL_HUB.wind,
134
136
  ],
135
137
  },
136
138
  {
@@ -95,7 +95,10 @@ export default function createSortable(element, collection, idProperty, that) {
95
95
  swapThreshold: 0.5,
96
96
  animation: 150,
97
97
  easing: "cubic-bezier(1, 0, 0, 1)",
98
- onStart: (e) => (childNodes = onStart(e)),
98
+ onStart: (e) => {
99
+ console.log(e);
100
+ childNodes = onStart(e);
101
+ },
99
102
  onMove: (e) => {
100
103
  related = e.related;
101
104
  },
@@ -30,6 +30,7 @@ export default function getLayerType(layer, map) {
30
30
 
31
31
  if (isDrawing) return "draw";
32
32
  // @ts-expect-error TODO
33
- else if (layer.declutter_ !== undefined) return "vector";
33
+ else if (layer.declutter_ !== undefined || layer.get("type") === "Vector")
34
+ return "vector";
34
35
  else return "raster";
35
36
  }
@@ -18,5 +18,6 @@ export {
18
18
  _parseTools,
19
19
  removeButton,
20
20
  sortButton,
21
+ getToolsIcon,
21
22
  } from "./layer-tools";
22
23
  export { hideLayersBasedOnProperties } from "./hide-layers-based-on-property";
@@ -1,4 +1,4 @@
1
- import { html, nothing } from "lit";
1
+ import { html } from "lit";
2
2
 
3
3
  /**
4
4
  * Filters actions based on provided tools and layer properties.
@@ -40,24 +40,29 @@ export const _parseTools = (tools, layer) =>
40
40
  * @param {boolean} unstyled - Style preference for the button.
41
41
  * @returns {import("lit").HTMLTemplateResult} - Button element.
42
42
  */
43
- export const Button = (tool, unstyled) => html`
44
- <button slot="${tool}-icon" class="icon">${unstyled ? tool : nothing}</button>
43
+ export const Button = (tool, icon, unstyled) => html`
44
+ <button
45
+ slot="${tool}-icon"
46
+ class="no-margin transparent square primary-text small"
47
+ >
48
+ ${unstyled ? tool : html`<i class="small primary-text">${icon}</i>`}
49
+ </button>
45
50
  `;
46
51
 
47
52
  /**
48
53
  * Generates a remove button element with event handling and layer control logic.
49
54
  *
50
- * @param {import("../components/layer-tools").EOxLayerControlLayerTools} EOxLayerControlLayerTools - Instance of EOxLayerControlLayerTools
55
+ * @param {import("../components/layer-tools").EOxLayerControlLayerTools | import("../components/layer").EOxLayerControlLayer} Component - Instance of EOxLayerControlLayerTools
51
56
  * @returns {import("lit").HTMLTemplateResult} - Remove button element.
52
57
  */
53
- export const removeButton = (EOxLayerControlLayerTools) => html`
58
+ export const removeButton = (Component, icon) => html`
54
59
  <button
55
- class="remove-icon icon"
60
+ class="remove-icon no-margin transparent square small action"
56
61
  @click=${() => {
57
- const { layer } = EOxLayerControlLayerTools;
62
+ const { layer } = Component;
58
63
  layer?.set("layerControlOptional", true);
59
64
  layer?.setVisible(false);
60
- EOxLayerControlLayerTools.dispatchEvent(
65
+ Component.dispatchEvent(
61
66
  new CustomEvent("changed", {
62
67
  detail: layer,
63
68
  bubbles: true,
@@ -65,18 +70,75 @@ export const removeButton = (EOxLayerControlLayerTools) => html`
65
70
  );
66
71
  }}
67
72
  >
68
- ${EOxLayerControlLayerTools.unstyled ? "x" : nothing}
73
+ ${Component.unstyled ? "x" : html`<i class="small red-text">${icon}</i>`}
69
74
  </button>
70
75
  `;
71
76
 
72
77
  /**
73
78
  * Generates a sort button element based on the style preference.
74
79
  *
80
+ * @param {import("../components/layer-tools").EOxLayerControlLayerTools | import("../components/layer").EOxLayerControlLayer} Component - Instance of EOxLayerControlLayerTools
75
81
  * @param {boolean} unstyled - Style preference for the button.
76
82
  * @returns {import("lit").HTMLTemplateResult} - Sort button element.
77
83
  */
78
- export const sortButton = (unstyled) => html`
79
- <span class="button sort-icon icon drag-handle">
80
- ${unstyled ? "═" : nothing}
81
- </span>
84
+ export const sortButton = (Component, icon, unstyled) => html`
85
+ <button
86
+ class="sort-icon no-margin transparent square primary-text drag-handle small action ${Component.layer.get(
87
+ "layerControlDisable",
88
+ )
89
+ ? "disabled"
90
+ : ""}"
91
+ style="cursor: ns-resize;"
92
+ >
93
+ ${unstyled ? "═" : html`<i class="small primary-text">${icon}</i>`}
94
+ </button>
82
95
  `;
96
+
97
+ export function getToolsIcon() {
98
+ return {
99
+ dots: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
100
+ <title>menu-down</title>
101
+ <path d="M7,10L12,15L17,10H7Z" />
102
+ </svg>`,
103
+ info: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
104
+ <title>information-outline</title>
105
+ <path
106
+ d="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"
107
+ />
108
+ </svg>`,
109
+ opacity: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
110
+ <title>circle-opacity</title>
111
+ <path
112
+ d="M18 10V8H20V10H18M18 12V10H16V12H18M18 8V6H16V8H18M16 2.84V4H18C17.37 3.54 16.71 3.15 16 2.84M18 4V6H20C19.42 5.25 18.75 4.58 18 4M20 6V8H21.16C20.85 7.29 20.46 6.63 20 6M22 12C22 11.32 21.93 10.65 21.8 10H20V12H22M16 6V4H14V6H16M16 16H18V14H16V16M18 18H20L20 18V16H18V18M16 20H18L18 20V18H16V20M14 21.8C14.7 21.66 15.36 21.44 16 21.16V20H14V21.8M18 14H20V12H18V14M16 8H14V10H16V8M20 16H21.16C21.44 15.36 21.66 14.7 21.8 14H20V16M16 12H14V14H16V12M12 18V16H14V14H12V12H14V10H12V8H14V6H12V4H14V2.2C13.35 2.07 12.69 2 12 2C6.5 2 2 6.5 2 12S6.5 22 12 22V20H14V18H12M14 18H16V16H14V18Z"
113
+ />
114
+ </svg>`,
115
+ config: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
116
+ <title>tune</title>
117
+ <path
118
+ d="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z"
119
+ />
120
+ </svg>`,
121
+ datetime: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
122
+ <title>calendar-clock-outline</title>
123
+ <path
124
+ d="M6 1V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11.1C12.36 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.36 21 11.1V5C21 3.9 20.11 3 19 3H18V1H16V3H8V1M5 5H19V7H5M5 9H19V9.67C18.09 9.24 17.07 9 16 9C12.13 9 9 12.13 9 16C9 17.07 9.24 18.09 9.67 19H5M16 11.15C18.68 11.15 20.85 13.32 20.85 16C20.85 18.68 18.68 20.85 16 20.85C13.32 20.85 11.15 18.68 11.15 16C11.15 13.32 13.32 11.15 16 11.15M15 13V16.69L18.19 18.53L18.94 17.23L16.5 15.82V13Z"
125
+ />
126
+ </svg>`,
127
+ legend: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
128
+ <title>map-legend</title>
129
+ <path
130
+ d="M9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3L20.34,3.03L15,5.1L9,3M8,5.45V17.15L5,18.31V6.46L8,5.45M10,5.47L14,6.87V18.53L10,17.13V5.47M19,5.7V17.54L16,18.55V6.86L19,5.7M7.46,6.3L5.57,6.97V9.12L7.46,8.45V6.3M7.46,9.05L5.57,9.72V11.87L7.46,11.2V9.05M7.46,11.8L5.57,12.47V14.62L7.46,13.95V11.8M7.46,14.55L5.57,15.22V17.37L7.46,16.7V14.55Z"
131
+ />
132
+ </svg>`,
133
+ remove: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
134
+ <title>delete-outline</title>
135
+ <path
136
+ d="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8,9H16V19H8V9M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z"
137
+ />
138
+ </svg>`,
139
+ sort: html`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
140
+ <title>drag-horizontal-variant</title>
141
+ <path d="M21 11H3V9H21V11M21 13H3V15H21V13Z" />
142
+ </svg>`,
143
+ };
144
+ }
package/src/main.js CHANGED
@@ -8,6 +8,10 @@ import {
8
8
  firstUpdatedMethod,
9
9
  layerListChangeMethod,
10
10
  } from "./methods/layercontrol";
11
+ import eoxStyle from "@eox/ui/style.css?inline";
12
+ import { addCommonStylesheet } from "@eox/elements-utils";
13
+
14
+ addCommonStylesheet();
11
15
 
12
16
  /**
13
17
  * Display layers and groups of a connected OpenLayers map
@@ -216,6 +220,12 @@ export class EOxLayerControl extends LitElement {
216
220
  ${this.styleOverride}
217
221
  </style>
218
222
 
223
+ <span class="layerstitle">
224
+ <slot name="layerstitle"
225
+ ><p><strong>Layers</strong></p></slot
226
+ >
227
+ </span>
228
+
219
229
  <!-- Conditional rendering of add layers component -->
220
230
  ${when(
221
231
  this.addExternalLayers && this.#eoxMap?.addOrUpdateLayer,
@@ -267,23 +277,43 @@ export class EOxLayerControl extends LitElement {
267
277
  }
268
278
 
269
279
  #styleEOX = `
280
+ ${eoxStyle}
270
281
  :host, :root {
271
- font-family: Roboto, sans-serif;
272
282
  --padding: 0.5rem;
273
283
  --padding-vertical: .2rem;
274
- --list-padding: 48px;
284
+ --list-padding: 2rem;
275
285
  --layer-input-visibility: flex;
276
286
  --layer-summary-visibility: flex;
277
287
  --layer-type-visibility: block;
278
- --layer-title-visibility: flex;
279
- --layer-visibility: block;
288
+ --layer-title-visibility: inline;
289
+ --layer-visibility: flex;
280
290
  --layer-tools-button-visibility: flex;
291
+ --layer-toggle-button-visibility: none;
281
292
 
282
- display: block;
283
- padding: var(--padding) 0;
293
+ --primary-color: var(--primary);
294
+ --secondary-color: var(--secondary);
295
+ --item-color: color-mix(
296
+ in srgb,
297
+ var(--primary-color) 10%,
298
+ transparent
299
+ );
300
+ --item-hover-color: color-mix(
301
+ in srgb,
302
+ var(--surface) 80%,
303
+ transparent
304
+ );
305
+
306
+ display: flex;
307
+ flex-direction: column;
284
308
  --background-color: var(--eox-background-color, transparent);
285
309
  background-color: var(--background-color, transparent);
286
310
  }
311
+
312
+ .layerstitle {
313
+ display: block;
314
+ padding-left: var(--padding);
315
+ padding-right: var(--padding);
316
+ }
287
317
  select {
288
318
  background-color: var(--background-color);
289
319
  }
@@ -1 +1 @@
1
- {"version":3,"file":"add-layers.d.ts","sourceRoot":"","sources":["../../../../src/components/add-layers.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;;;MAIE;IAEF;;;;OAIG;IACH,iBAAgB;IAEhB;;;;OAIG;IACH,kBAAiB;IAEjB;;;;OAIG;IACH,MAFU,KAAK,GAAG,MAAM,GAAG,IAAI,CAEnB;IAEZ;;;;OAIG;IACH,oBAAmB;IAEnB;;;;OAIG;IACH,iBAFU,OAAO,kBAAkB,EAAE,mBAAmB,CAEjC;IAKrB;;;;OAIG;IACH,QAFU,OAAO,UAAU,EAAE,MAAM,CAEjB;IAElB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAiEvB;;;OAGG;IACH,+CAgHC;;CAgJF;2BA7ZyC,KAAK"}
1
+ {"version":3,"file":"add-layers.d.ts","sourceRoot":"","sources":["../../../../src/components/add-layers.js"],"names":[],"mappings":"AAaA;;;;;;;;;GASG;AACH;IAEE;;;;;;;;;;;MAIE;IAEF;;;;OAIG;IACH,iBAAgB;IAEhB;;;;OAIG;IACH,kBAAiB;IAEjB;;;;OAIG;IACH,MAFU,KAAK,GAAG,MAAM,GAAG,IAAI,CAEnB;IAEZ;;;;OAIG;IACH,oBAAmB;IAEnB;;;;OAIG;IACH,iBAFU,OAAO,kBAAkB,EAAE,mBAAmB,CAEjC;IAKrB;;;;OAIG;IACH,QAFU,OAAO,UAAU,EAAE,MAAM,CAEjB;IAElB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAiEvB;;;OAGG;IACH,+CA+IC;;CAaF;2BAzTyC,KAAK"}
@@ -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;QACN,MAAM,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;QAC3B,KAAK,CAAC,EAAE,OAAO,oBAAoB,EAAE,KAAK,CAAA;QAC1C,MAAM,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,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC,GAAG;IACvD,OAAO,CAAC,EAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAA,KAAK,EAAE,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;KAAC,CAAA;IACnD,gBAAgB,EAAE,MAAM,EAAE,CAAA;CAC1B;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;QACN,MAAM,EAAE,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,CAAC;QAC3B,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;QAC3B,KAAK,CAAC,EAAE,OAAO,oBAAoB,EAAE,KAAK,CAAA;QAC1C,MAAM,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,+CAiDC;;CA8BF;gCAtOY,OAAO,CAAC,OAAO,gBAAgB,EAAE,YAAY,CAAC,GAAG;IACvD,OAAO,CAAC,EAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAA,KAAK,EAAE,MAAM,GAAC,MAAM,GAAC,OAAO,CAAA;KAAC,CAAA;IACnD,gBAAgB,EAAE,MAAM,EAAE,CAAA;CAC1B;2BAX+B,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"layer-group.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-group.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAY1B;;OAEG;IACH,+CAsDC;;CA4BF;2BA7LyC,KAAK"}
1
+ {"version":3,"file":"layer-group.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-group.js"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,mBAAsB;IAEtB;;;;OAIG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAY1B;;OAEG;IACH,+CA4EC;;CA2BF;2BAlNyC,KAAK"}
@@ -1 +1 @@
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,uBAHW,YAAY,GAAG,YAAY,EAAE,EAiBvC;IA5BD,mBAWW,YAAY,GAAG,YAAY,EAAE,CAHvC;IA6BD,qBAYC;IAED;;OAEG;IACH,+CA2CC;;CAgBF;;;;2BAzKY;IACR,MAAM,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IAClE,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,KAAK,EAAC,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,UAAU,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC3E,KAAK,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACjE,UAAU,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC3E,SAAS,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IACzE,QAAQ,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAA;CACxE;2BAhB2C,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,uBAHW,YAAY,GAAG,YAAY,EAAE,EAiBvC;IA5BD,mBAWW,YAAY,GAAG,YAAY,EAAE,CAHvC;IA6BD,qBAYC;IAED;;OAEG;IACH,+CA2CC;;CAmBF;;;;2BA5KY;IACR,MAAM,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAA;IAClE,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,KAAK,EAAC,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,UAAU,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC3E,KAAK,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACjE,UAAU,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAA;IAC3E,SAAS,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAA;IACzE,QAAQ,CAAC,EAAC,OAAO,sBAAsB,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAA;CACxE;2BAhB2C,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"layer-list.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-list.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAKA;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,QAHU,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,CAAC,CAGpE;IAElB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAED;IAEtB;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAG1B;;OAEG;IACH,qBAEC;IASD;;;OAGG;IACH,+CA8DC;;CA+BF;2BA/MgC,KAAK"}
1
+ {"version":3,"file":"layer-list.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-list.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAKA;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,QAHU,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,CAAC,CAGpE;IAElB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAED;IAEtB;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAG1B;;OAEG;IACH,qBAEC;IASD;;;OAGG;IACH,+CAgEC;;CAqCF;2BAvNgC,KAAK"}
@@ -22,6 +22,9 @@ export class EOxLayerControlLayerTools extends LitElement {
22
22
  toolsAsList: {
23
23
  type: BooleanConstructor;
24
24
  };
25
+ embedded: {
26
+ state: boolean;
27
+ };
25
28
  };
26
29
  /**
27
30
  * The native OL layer
@@ -54,8 +57,9 @@ export class EOxLayerControlLayerTools extends LitElement {
54
57
  * @type {Boolean}
55
58
  */
56
59
  toolsAsList: boolean;
57
- _removeButton: () => import("lit-html").HTMLTemplateResult;
58
- _sortButton: () => import("lit-html").HTMLTemplateResult;
60
+ embedded: boolean;
61
+ _removeButton: (icon: any) => import("lit-html").HTMLTemplateResult;
62
+ _sortButton: (icon: any) => import("lit-html").HTMLTemplateResult;
59
63
  /**
60
64
  * Initializes '_button' as a function accepting 'tool' parameter to generate a Button.
61
65
  * Uses 'this.unstyled' as a context parameter for Button generation.
@@ -63,8 +67,8 @@ export class EOxLayerControlLayerTools extends LitElement {
63
67
  * @param {string} tool - Tool parameter for Button generation.
64
68
  * @returns {import("lit").HTMLTemplateResult} - The generated Button element.
65
69
  */
66
- _button: (tool: string) => import("lit").HTMLTemplateResult;
67
- _getDefaultTools: () => import("lit-html").TemplateResult<1>;
70
+ _button: (tool: string, icon: any) => import("lit").HTMLTemplateResult;
71
+ _getDefaultTools: (icons: any) => import("lit-html").TemplateResult<1>;
68
72
  render(): import("lit-html").TemplateResult<1>;
69
73
  #private;
70
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-tools.js"],"names":[],"mappings":"AAqBA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;MAME;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAW1B,2DAAyC;IAGzC,yDAA8C;IAE9C;;;;;;OAMG;IACH,gBAHW,MAAM,KACJ,OAAO,KAAK,EAAE,kBAAkB,CAEG;IAEhD,6DAoEE;IAEF,+CA2DC;;CA8HF;2BAnWyC,KAAK"}
1
+ {"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../../../src/components/layer-tools.js"],"names":[],"mappings":"AAmBA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;MAOE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAQtB,kBAAwE;IAY5E,oEAAmD;IAGnD,kEAA8D;IAE9D;;;;;;OAMG;IACH,gBAHW,MAAM,gBACJ,OAAO,KAAK,EAAE,kBAAkB,CAEe;IAE5D,uEA0EE;IAEF,+CAwDC;;CAyDF;2BAzSyC,KAAK"}
@@ -10,6 +10,9 @@ export class EOxLayerControlLayer extends LitElement {
10
10
  layer: {
11
11
  attribute: boolean;
12
12
  };
13
+ layerType: {
14
+ attribute: boolean;
15
+ };
13
16
  map: {
14
17
  attribute: boolean;
15
18
  state: boolean;
@@ -48,6 +51,12 @@ export class EOxLayerControlLayer extends LitElement {
48
51
  * @see {@link https://openlayers.org/en/latest/apidoc/module-ol_layer_Layer-Layer.html}
49
52
  */
50
53
  layer: import("ol/layer").Layer;
54
+ /**
55
+ * The type of the layer, which can be a string representing the layer type.
56
+ *
57
+ * @type {string|undefined} - The inferred layer type: "group", "draw", "vector", "raster", or undefined if not determinable.
58
+ */
59
+ layerType: string | undefined;
51
60
  /**
52
61
  * The native OL map
53
62
  *
@@ -1 +1 @@
1
- {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../src/components/layer.js"],"names":[],"mappings":"AAOA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASE;IAEF;;;;OAIG;IACH,wCAAsC;IAKpC;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAoB1B;;;OAGG;IACH,qBAEC;IAWD;;;;OAIG;IACH,+CAkEC;;CA+DF;2BAxQgC,KAAK"}
1
+ {"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../../../src/components/layer.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUE;IAEF;;;;OAIG;IACH,wCAAsC;IAKpC;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,WAFU,MAAM,GAAC,SAAS,CAEA;IAE1B;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,4BAA+B;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAoB1B;;;OAGG;IACH,qBAEC;IAWD;;;;OAIG;IACH,+CA+MC;;CAoEF;2BAxayC,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"optional-list.d.ts","sourceRoot":"","sources":["../../../../src/components/optional-list.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;;;;;MAME;IAKA;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,QAHU,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,CAAC,CAGzC;IAElB;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAkBvB;;;;OAIG;IACH,+CAmCC;;CACF;2BAtHgC,KAAK"}
1
+ {"version":3,"file":"optional-list.d.ts","sourceRoot":"","sources":["../../../../src/components/optional-list.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH;IAEE;;;;;;;;;;;;;;;;;MAME;IAKA;;;;OAIG;IACH,mBAAsB;IAEtB;;;;;OAKG;IACH,QAHU,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,CAAC,CAGzC;IAElB;;;;OAIG;IACH,sBAA4B;IAE5B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAkBvB;;;;OAIG;IACH,+CA0CC;;CACF;2BA7HgC,KAAK"}
@@ -1 +1 @@
1
- {"version":3,"file":"tools-items.d.ts","sourceRoot":"","sources":["../../../../src/components/tools-items.js"],"names":[],"mappings":"AAIA;IAEE;;;;;;;;;;;;;;;;;;;MAOE;IAKA;;;;OAIG;IACH,SAFU,KAAK,QAAQ,CAEN;IAEjB,oBAAoB;IAEpB;;;;OAIG;IACH,MAFU,KAAK,QAAQ,CAET;IAEd;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAc1B;;;OAGG;IACH,+CA2EC;;CAiEF;2BAnNgC,KAAK"}
1
+ {"version":3,"file":"tools-items.d.ts","sourceRoot":"","sources":["../../../../src/components/tools-items.js"],"names":[],"mappings":"AAKA;IAEE;;;;;;;;;;;;;;;;;;;MAOE;IAKA;;;;OAIG;IACH,SAFU,KAAK,QAAQ,CAEN;IAEjB,oBAAoB;IAEpB;;;;OAIG;IACH,MAFU,KAAK,QAAQ,CAET;IAEd;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,qBAAwB;IAc1B;;;OAGG;IACH,+CAkFC;;CA4DF;2BAtNgC,KAAK"}
@@ -1,2 +1,2 @@
1
- export { STORIES_LAYER_S2, STORIES_LAYER_OSM, STORIES_LAYER_REGION, STORIES_LAYER_SENTINEL_HUB, STORIES_MAIN_MAP_LAYERS, STORIES_MAP_STYLE, STORIES_LAYER_EOX_CLOUDLESS_2021, STORIES_LAYER_EOX_CLOUDLESS_2020, STORIES_LAYER_EOX_CLOUDLESS_2019, STORIES_LAYER_DEFORESTED_BIOMASS, STORIES_LAYER_TERRAIN_LIGHT, STORIES_LAYER_VESSEL_DENSITY_CARGO, STORIES_LAYER_CROPOMHUSC2, STORIES_LAYER_SEE, STORIES_LAYER_POLARIS } from "./stories";
1
+ export { STORIES_LAYER_S2, STORIES_LAYER_OSM, STORIES_LAYER_REGION, STORIES_LAYER_SENTINEL_HUB, STORIES_MAIN_MAP_LAYERS, STORIES_LAYERCONTROL_STYLE, STORIES_MAP_STYLE, STORIES_LAYER_EOX_CLOUDLESS_2021, STORIES_LAYER_EOX_CLOUDLESS_2020, STORIES_LAYER_EOX_CLOUDLESS_2019, STORIES_LAYER_DEFORESTED_BIOMASS, STORIES_LAYER_TERRAIN_LIGHT, STORIES_LAYER_VESSEL_DENSITY_CARGO, STORIES_LAYER_CROPOMHUSC2, STORIES_LAYER_SEE, STORIES_LAYER_POLARIS } from "./stories";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,4 @@
1
+ export const STORIES_LAYERCONTROL_STYLE: "width: 240px;";
1
2
  export const STORIES_MAP_STYLE: "width: 400px; height: 300px; margin-left: 7px;";
2
3
  export namespace STORIES_LAYER_SENTINEL_HUB {
3
4
  namespace wind {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/enums/stories/index.js"],"names":[],"mappings":"AAkBA,gCACE,gDAAgD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA5IF,gCACE,gFAAgF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuLnF;;;;;;;;;;EA2DE;0BArPwB,6BAA6B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/enums/stories/index.js"],"names":[],"mappings":"AAkBA,yCAA0C,eAAe,CAAC;AAE1D,gCACE,gDAAgD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuBE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA9IF,gCACE,gFAAgF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLnF;;;;;;;;;;EA2DE;0BAvPwB,6BAA6B"}
@@ -1 +1 @@
1
- {"version":3,"file":"create-sortable.d.ts","sourceRoot":"","sources":["../../../../src/helpers/create-sortable.js"],"names":[],"mappings":"AAwEA;;;;;;;;GAQG;AACH,gDALW,WAAW,cACX,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,CAAC,cAC5E,MAAM,QACN,OAAO,KAAK,EAAE,UAAU,QAwBlC"}
1
+ {"version":3,"file":"create-sortable.d.ts","sourceRoot":"","sources":["../../../../src/helpers/create-sortable.js"],"names":[],"mappings":"AAwEA;;;;;;;;GAQG;AACH,gDALW,WAAW,cACX,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,CAAC,cAC5E,MAAM,QACN,OAAO,KAAK,EAAE,UAAU,QA2BlC"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-layer-type.d.ts","sourceRoot":"","sources":["../../../../src/helpers/get-layer-type.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,4CAJW,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,OACnD,OAAO,IAAI,EAAE,GAAG,GACd,MAAM,GAAC,SAAS,CA6B5B"}
1
+ {"version":3,"file":"get-layer-type.d.ts","sourceRoot":"","sources":["../../../../src/helpers/get-layer-type.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,4CAJW,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,OACnD,OAAO,IAAI,EAAE,GAAG,GACd,MAAM,GAAC,SAAS,CA8B5B"}
@@ -13,5 +13,5 @@ export { default as getLayerType } from "./get-layer-type";
13
13
  export { default as getLegendConfig } from "./get-legend-config.js";
14
14
  export { hideLayersBasedOnProperties } from "./hide-layers-based-on-property";
15
15
  export { getNestedStartVals, getStartVals } from "./get-start-vals";
16
- export { Button, _parseActions, _parseTools, removeButton, sortButton } from "./layer-tools";
16
+ export { Button, _parseActions, _parseTools, removeButton, sortButton, getToolsIcon } from "./layer-tools";
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,16 @@
1
+ export function getToolsIcon(): {
2
+ dots: import("lit-html").TemplateResult<1>;
3
+ info: import("lit-html").TemplateResult<1>;
4
+ opacity: import("lit-html").TemplateResult<1>;
5
+ config: import("lit-html").TemplateResult<1>;
6
+ datetime: import("lit-html").TemplateResult<1>;
7
+ legend: import("lit-html").TemplateResult<1>;
8
+ remove: import("lit-html").TemplateResult<1>;
9
+ sort: import("lit-html").TemplateResult<1>;
10
+ };
1
11
  export function _parseActions(tools: Array<string>, layer: import("ol/layer").Layer): Array<string>;
2
12
  export function _parseTools(tools: Array<string>, layer: import("ol/layer").Layer): Array<string>;
3
- export function Button(tool: string, unstyled: boolean): import("lit").HTMLTemplateResult;
4
- export function removeButton(EOxLayerControlLayerTools: import("../components/layer-tools").EOxLayerControlLayerTools): import("lit").HTMLTemplateResult;
5
- export function sortButton(unstyled: boolean): import("lit").HTMLTemplateResult;
13
+ export function Button(tool: string, icon: any, unstyled: boolean): import("lit").HTMLTemplateResult;
14
+ export function removeButton(Component: import("../components/layer-tools").EOxLayerControlLayerTools | import("../components/layer").EOxLayerControlLayer, icon: any): import("lit").HTMLTemplateResult;
15
+ export function sortButton(Component: import("../components/layer-tools").EOxLayerControlLayerTools | import("../components/layer").EOxLayerControlLayer, icon: any, unstyled: boolean): import("lit").HTMLTemplateResult;
6
16
  //# sourceMappingURL=layer-tools.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../../../src/helpers/layer-tools.js"],"names":[],"mappings":"AASO,qCAJI,KAAK,CAAC,MAAM,CAAC,SACb,OAAO,UAAU,EAAE,KAAK,GACtB,KAAK,CAAC,MAAM,CAAC,CAQzB;AASM,mCAJI,KAAK,CAAC,MAAM,CAAC,SACb,OAAO,UAAU,EAAE,KAAK,GACtB,KAAK,CAAC,MAAM,CAAC,CAWtB;AASG,6BAJI,MAAM,YACN,OAAO,GACL,OAAO,KAAK,EAAE,kBAAkB,CAI5C;AAQM,wDAHI,OAAO,2BAA2B,EAAE,yBAAyB,GAC3D,OAAO,KAAK,EAAE,kBAAkB,CAmB5C;AAQM,qCAHI,OAAO,GACL,OAAO,KAAK,EAAE,kBAAkB,CAM5C"}
1
+ {"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../../../src/helpers/layer-tools.js"],"names":[],"mappings":"AAgGA;;;;;;;;;EA+CC;AAtIM,qCAJI,KAAK,CAAC,MAAM,CAAC,SACb,OAAO,UAAU,EAAE,KAAK,GACtB,KAAK,CAAC,MAAM,CAAC,CAQzB;AASM,mCAJI,KAAK,CAAC,MAAM,CAAC,SACb,OAAO,UAAU,EAAE,KAAK,GACtB,KAAK,CAAC,MAAM,CAAC,CAWtB;AASG,6BAJI,MAAM,uBACN,OAAO,GACL,OAAO,KAAK,EAAE,kBAAkB,CAS5C;AAQM,wCAHI,OAAO,2BAA2B,EAAE,yBAAyB,GAAG,OAAO,qBAAqB,EAAE,oBAAoB,cAChH,OAAO,KAAK,EAAE,kBAAkB,CAmB5C;AASM,sCAJI,OAAO,2BAA2B,EAAE,yBAAyB,GAAG,OAAO,qBAAqB,EAAE,oBAAoB,uBAClH,OAAO,GACL,OAAO,KAAK,EAAE,kBAAkB,CAa5C"}
@@ -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,KAAK,QAAQ,CAEiD;IAExE;;;;OAIG;IACH,2BAA8B;IAE9B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,qBAAwB;IAG1B;;;OAGG;IACH,qBAEC;IAYD,6CAIC;IARD,wCAEC;IARD,sCAIC;IA8CD,+CA4DC;;CAwBF;2BAlSgC,KAAK"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,KAAK,QAAQ,CAEiD;IAExE;;;;OAIG;IACH,2BAA8B;IAE9B;;;;OAIG;IACH,kBAAqB;IAErB;;;;OAIG;IACH,sBAAuB;IAEvB;;;;OAIG;IACH,qBAAwB;IAG1B;;;OAGG;IACH,qBAEC;IAYD,6CAIC;IARD,wCAEC;IARD,sCAIC;IA8CD,+CAkEC;;CA4CF;2BAhUgC,KAAK"}