@eox/layercontrol 1.10.1 → 1.11.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/dist/eox-layercontrol.js +903 -744
- package/dist/eox-layercontrol.umd.cjs +144 -139
- package/package.json +5 -5
- package/src/components/add-layers.js +6 -6
- package/src/components/layer-config.js +26 -20
- package/src/components/layer-datetime.js +23 -6
- package/src/components/layer-group.js +9 -9
- package/src/components/layer-legend.js +3 -3
- package/src/components/layer-list.js +9 -9
- package/src/components/layer-tools.js +44 -9
- package/src/components/layer.js +38 -15
- package/src/components/optional-list.js +5 -5
- package/src/components/tools-items.js +12 -6
- package/src/helpers/clean-json-input.js +1 -1
- package/src/helpers/create-sortable.js +8 -0
- package/src/helpers/get-legend-config.js +16 -1
- package/src/helpers/handle-datetime-update.js +31 -5
- package/src/helpers/is-layer-visible-based-on-zoom-state.js +2 -2
- package/src/helpers/is-layer-zoom-state-req.js +2 -2
- package/src/helpers/update-geozarr-band.js +18 -126
- package/src/helpers/update-url.js +3 -3
- package/src/main.js +33 -17
- package/src/methods/add-layer/add-layer.js +7 -0
- package/src/methods/add-layer/wms-search-url.js +1 -1
- package/src/methods/layer/first-updated.js +47 -26
- package/src/methods/layer-config/apply-updated-styles.js +8 -5
- package/src/methods/layer-config/data-change.js +1 -1
- package/src/methods/optional-list/add-to-list.js +1 -1
- package/types/components/add-layers.d.ts +6 -6
- package/types/components/add-layers.d.ts.map +1 -1
- package/types/components/layer-config.d.ts +3 -3
- package/types/components/layer-config.d.ts.map +1 -1
- package/types/components/layer-datetime.d.ts +3 -3
- package/types/components/layer-datetime.d.ts.map +1 -1
- package/types/components/layer-group.d.ts +9 -9
- package/types/components/layer-group.d.ts.map +1 -1
- package/types/components/layer-legend.d.ts +3 -3
- package/types/components/layer-legend.d.ts.map +1 -1
- package/types/components/layer-list.d.ts +9 -9
- package/types/components/layer-list.d.ts.map +1 -1
- package/types/components/layer-tools.d.ts +6 -6
- package/types/components/layer-tools.d.ts.map +1 -1
- package/types/components/layer.d.ts +9 -14
- package/types/components/layer.d.ts.map +1 -1
- package/types/components/optional-list.d.ts +5 -5
- package/types/components/optional-list.d.ts.map +1 -1
- package/types/components/tools-items.d.ts +5 -5
- package/types/components/tools-items.d.ts.map +1 -1
- package/types/helpers/clean-json-input.d.ts +1 -1
- package/types/helpers/clean-json-input.d.ts.map +1 -1
- package/types/helpers/create-sortable.d.ts.map +1 -1
- package/types/helpers/get-legend-config.d.ts.map +1 -1
- package/types/helpers/handle-datetime-update.d.ts +5 -2
- package/types/helpers/handle-datetime-update.d.ts.map +1 -1
- package/types/helpers/is-layer-visible-based-on-zoom-state.d.ts +2 -2
- package/types/helpers/is-layer-visible-based-on-zoom-state.d.ts.map +1 -1
- package/types/helpers/is-layer-zoom-state-req.d.ts +2 -2
- package/types/helpers/is-layer-zoom-state-req.d.ts.map +1 -1
- package/types/helpers/update-geozarr-band.d.ts +3 -21
- package/types/helpers/update-geozarr-band.d.ts.map +1 -1
- package/types/helpers/update-url.d.ts +4 -4
- package/types/helpers/update-url.d.ts.map +1 -1
- package/types/main.d.ts +15 -11
- package/types/main.d.ts.map +1 -1
- package/types/methods/add-layer/add-layer.d.ts.map +1 -1
- package/types/methods/add-layer/wms-search-url.d.ts +1 -1
- package/types/methods/add-layer/wms-search-url.d.ts.map +1 -1
- package/types/methods/layer/first-updated.d.ts +3 -2
- package/types/methods/layer/first-updated.d.ts.map +1 -1
- package/types/methods/layer-config/apply-updated-styles.d.ts +2 -2
- package/types/methods/layer-config/apply-updated-styles.d.ts.map +1 -1
- package/types/methods/layer-config/data-change.d.ts +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Manages rendering tools and actions such as remove, sort, information display, layer configuration, and opacity adjustment.
|
|
4
4
|
*
|
|
5
5
|
* @element eox-layercontrol-layer-tools
|
|
6
|
-
* @
|
|
6
|
+
* @augments LitElement
|
|
7
7
|
*/
|
|
8
8
|
export class EOxLayerControlLayerTools extends LitElement {
|
|
9
9
|
static properties: {
|
|
@@ -58,31 +58,31 @@ export class EOxLayerControlLayerTools extends LitElement {
|
|
|
58
58
|
/**
|
|
59
59
|
* Render the element without additional styles
|
|
60
60
|
*
|
|
61
|
-
* @type {
|
|
61
|
+
* @type {boolean}
|
|
62
62
|
*/
|
|
63
63
|
unstyled: boolean;
|
|
64
64
|
/**
|
|
65
65
|
* Renders the element without a shadow root
|
|
66
66
|
*
|
|
67
|
-
* @type {
|
|
67
|
+
* @type {boolean}
|
|
68
68
|
*/
|
|
69
69
|
noShadow: boolean;
|
|
70
70
|
/**
|
|
71
71
|
* If enabled, the tools section will be rendered as list.
|
|
72
72
|
*
|
|
73
|
-
* @type {
|
|
73
|
+
* @type {boolean}
|
|
74
74
|
*/
|
|
75
75
|
toolsAsList: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* If enabled, the tools section will be opened.
|
|
78
78
|
*
|
|
79
|
-
* @type {
|
|
79
|
+
* @type {boolean}
|
|
80
80
|
*/
|
|
81
81
|
open: boolean;
|
|
82
82
|
/**
|
|
83
83
|
* If enabled, toggling the layer visibility will also open/close the layer tools.
|
|
84
84
|
*
|
|
85
|
-
* @type {
|
|
85
|
+
* @type {boolean}
|
|
86
86
|
*/
|
|
87
87
|
toolsAutoExpand: boolean;
|
|
88
88
|
embedded: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../src/components/layer-tools.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layer-tools.d.ts","sourceRoot":"","sources":["../../src/components/layer-tools.js"],"names":[],"mappings":"AAqBA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAcE;IAKA;;;;;OAKG;IACH,OAHU,OAAO,UAAU,EAAE,KAAK,CAGjB;IAEjB;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,aAFU,OAAO,CAEO;IAExB;;;;OAIG;IACH,MAFU,OAAO,CAEA;IAEjB;;;;OAIG;IACH,iBAFU,OAAO,CAEW;IAW1B,kBAA4D;IAc9D;;;;;;OAMG;IACH,8BAAgC;IAEhC;;;;OAIG;IACH,kBAFU,MAAM,CAAC,MAAM,EAAC,MAAM,EAAE,CAAC,CAEL;IAU9B,qBAWC;IAED,sCAQC;IAoBD,gBAAiB,SAAI,2CAA8B;IAGnD,cAAe,SAAI,2CAA2C;IAE9D;;;;;;OAMG;IACH,UAAW,MAHA,MAGI,EAAE,SAAI,KAFR,OAAO,KAAK,EAAE,kBAAkB,CAEe;IAE5D,mBAAoB,UAAK,0CA4FvB;IAIF,+CA4EC;;CAgEF;2BArbgC,KAAK"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This component encapsulates functionalities for handling layers, their properties, and associated tools within the OpenLayers map context.
|
|
4
4
|
*
|
|
5
5
|
* @element eox-layercontrol-layer
|
|
6
|
-
* @
|
|
6
|
+
* @augments LitElement
|
|
7
7
|
*/
|
|
8
8
|
export class EOxLayerControlLayer extends LitElement {
|
|
9
9
|
static properties: {
|
|
@@ -56,7 +56,7 @@ export class EOxLayerControlLayer extends LitElement {
|
|
|
56
56
|
/**
|
|
57
57
|
* Represents the current layer visibility based on zoom level.
|
|
58
58
|
*
|
|
59
|
-
* @type {
|
|
59
|
+
* @type {boolean}
|
|
60
60
|
*/
|
|
61
61
|
currLayerVisibilityBasedOnZoom: boolean;
|
|
62
62
|
/**
|
|
@@ -82,13 +82,13 @@ export class EOxLayerControlLayer extends LitElement {
|
|
|
82
82
|
/**
|
|
83
83
|
* The layer title property
|
|
84
84
|
*
|
|
85
|
-
* @type {
|
|
85
|
+
* @type {string}
|
|
86
86
|
*/
|
|
87
87
|
titleProperty: string;
|
|
88
88
|
/**
|
|
89
89
|
* Show layer state based on zoom level or not
|
|
90
90
|
*
|
|
91
|
-
* @type {
|
|
91
|
+
* @type {boolean}
|
|
92
92
|
*/
|
|
93
93
|
showLayerZoomState: boolean;
|
|
94
94
|
/**
|
|
@@ -100,31 +100,31 @@ export class EOxLayerControlLayer extends LitElement {
|
|
|
100
100
|
/**
|
|
101
101
|
* Render the element without additional styles
|
|
102
102
|
*
|
|
103
|
-
* @type {
|
|
103
|
+
* @type {boolean}
|
|
104
104
|
*/
|
|
105
105
|
unstyled: boolean;
|
|
106
106
|
/**
|
|
107
107
|
* Renders the element without a shadow root
|
|
108
108
|
*
|
|
109
|
-
* @type {
|
|
109
|
+
* @type {boolean}
|
|
110
110
|
*/
|
|
111
111
|
noShadow: boolean;
|
|
112
112
|
/**
|
|
113
113
|
* If enabled, the tools section will be rendered as list.
|
|
114
114
|
*
|
|
115
|
-
* @type {
|
|
115
|
+
* @type {boolean}
|
|
116
116
|
*/
|
|
117
117
|
toolsAsList: boolean;
|
|
118
118
|
/**
|
|
119
119
|
* If enabled, toggling the layer visibility will also open/close the layer tools.
|
|
120
120
|
*
|
|
121
|
-
* @type {
|
|
121
|
+
* @type {boolean}
|
|
122
122
|
*/
|
|
123
123
|
toolsAutoExpand: boolean;
|
|
124
124
|
/**
|
|
125
125
|
* If enabled, exclusive layers (marked with the property `layerControlExclusive`) will be globally exclusive (default: exclusive within their layer group).
|
|
126
126
|
*
|
|
127
|
-
* @type {
|
|
127
|
+
* @type {boolean}
|
|
128
128
|
*/
|
|
129
129
|
globallyExclusiveLayers: boolean;
|
|
130
130
|
/**
|
|
@@ -141,11 +141,6 @@ export class EOxLayerControlLayer extends LitElement {
|
|
|
141
141
|
* @type {Record<string,string[]>}
|
|
142
142
|
*/
|
|
143
143
|
colormapRegistry: Record<string, string[]>;
|
|
144
|
-
/**
|
|
145
|
-
* Check and update layer zoom visibility at beginning
|
|
146
|
-
* and register "change:resolution" ones at the beginning if `showLayerZoomState` is present
|
|
147
|
-
*/
|
|
148
|
-
firstUpdated(): void;
|
|
149
144
|
/**
|
|
150
145
|
* Renders layer controls and tools with conditional display based on certain properties.
|
|
151
146
|
* Conditionally renders layer visibility controls, title, and tools for the layer based on availability and settings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../src/components/layer.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBE;IAEF;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"layer.d.ts","sourceRoot":"","sources":["../../src/components/layer.js"],"names":[],"mappings":"AAaA;;;;;;GAMG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiBE;IAEF;;;;OAIG;IACH,gCAFU,OAAO,CAEqB;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,eAFU,MAAM,CAEY;IAE5B;;;;OAIG;IACH,oBAFU,OAAO,CAEc;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAER;IAEf;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,aAFU,OAAO,CAEO;IAExB;;;;OAIG;IACH,iBAFU,OAAO,CAEW;IAE5B;;;;OAIG;IACH,yBAFU,OAAO,CAEmB;IAEpC;;;;;;OAMG;IACH,8BAAgC;IAEhC;;;;OAIG;IACH,kBAFU,MAAM,CAAC,MAAM,EAAC,MAAM,EAAE,CAAC,CAEL;IA4D9B;;;;OAIG;IACH,+CAqNC;;CAuEF;2BA7eyC,KAAK"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* It offers the ability to filter layers based on specific properties and provides a method to handle the addition of selected layers to a list.
|
|
5
5
|
*
|
|
6
6
|
* @element eox-layercontrol-optional-list
|
|
7
|
-
* @
|
|
7
|
+
* @augments LitElement
|
|
8
8
|
*/
|
|
9
9
|
export class EOxLayerControlOptionalList extends LitElement {
|
|
10
10
|
static properties: {
|
|
@@ -28,7 +28,7 @@ export class EOxLayerControlOptionalList extends LitElement {
|
|
|
28
28
|
/**
|
|
29
29
|
* The layer id property
|
|
30
30
|
*
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {string}
|
|
32
32
|
*/
|
|
33
33
|
idProperty: string;
|
|
34
34
|
/**
|
|
@@ -41,19 +41,19 @@ export class EOxLayerControlOptionalList extends LitElement {
|
|
|
41
41
|
/**
|
|
42
42
|
* The layer title property
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
45
45
|
*/
|
|
46
46
|
titleProperty: string;
|
|
47
47
|
/**
|
|
48
48
|
* Render the element without additional styles
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {boolean}
|
|
51
51
|
*/
|
|
52
52
|
unstyled: boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Renders the element without a shadow root
|
|
55
55
|
*
|
|
56
|
-
* @type {
|
|
56
|
+
* @type {boolean}
|
|
57
57
|
*/
|
|
58
58
|
noShadow: boolean;
|
|
59
59
|
/**
|
|
@@ -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,
|
|
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,YAFU,MAAM,CAEM;IAEtB;;;;;OAKG;IACH,QAHU,OAAO,IAAI,EAAE,UAAU,CAAC,OAAO,UAAU,EAAE,KAAK,CAAC,CAGzC;IAElB;;;;OAIG;IACH,eAFU,MAAM,CAEY;IAE5B;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAkBvB;;;;OAIG;IACH,+CA0CC;;CACF;2BA7HgC,KAAK"}
|
|
@@ -22,32 +22,32 @@ export class EOxLayerControlTabs extends LitElement {
|
|
|
22
22
|
/**
|
|
23
23
|
* List of action ids
|
|
24
24
|
*
|
|
25
|
-
* @type {Array<
|
|
25
|
+
* @type {Array<string>}
|
|
26
26
|
*/
|
|
27
27
|
actions: Array<string>;
|
|
28
28
|
selectedTab: number;
|
|
29
29
|
/**
|
|
30
30
|
* List of tab ids
|
|
31
31
|
*
|
|
32
|
-
* @type {Array<
|
|
32
|
+
* @type {Array<string>}
|
|
33
33
|
*/
|
|
34
34
|
tabs: Array<string>;
|
|
35
35
|
/**
|
|
36
36
|
* Render the element without additional styles
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {boolean}
|
|
39
39
|
*/
|
|
40
40
|
unstyled: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Renders the element without a shadow root
|
|
43
43
|
*
|
|
44
|
-
* @type {
|
|
44
|
+
* @type {boolean}
|
|
45
45
|
*/
|
|
46
46
|
noShadow: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* If enabled, the tools section will be rendered as list.
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {boolean}
|
|
51
51
|
*/
|
|
52
52
|
toolsAsList: boolean;
|
|
53
53
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools-items.d.ts","sourceRoot":"","sources":["../../src/components/tools-items.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools-items.d.ts","sourceRoot":"","sources":["../../src/components/tools-items.js"],"names":[],"mappings":"AAMA;IAEE;;;;;;;;;;;;;;;;;;;MAOE;IAKA;;;;OAIG;IACH,SAFU,KAAK,CAAC,MAAM,CAAC,CAEN;IAEjB,oBAAoB;IAEpB;;;;OAIG;IACH,MAFU,KAAK,CAAC,MAAM,CAAC,CAET;IAEd;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,aAFU,OAAO,CAEO;IAc1B;;;OAGG;IACH,+CAuFC;;CA0DF;2BA1NgC,KAAK"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Cleans up the input string to ensure valid JSON format and triggers an update.
|
|
3
3
|
*
|
|
4
4
|
* @param {string} json - JSON Input string
|
|
5
|
-
* @
|
|
5
|
+
* @returns {string} - Cleaned and valid JSON string
|
|
6
6
|
*/
|
|
7
7
|
export default function cleanJSONInput(json: string): string;
|
|
8
8
|
//# sourceMappingURL=clean-json-input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clean-json-input.d.ts","sourceRoot":"","sources":["../../src/helpers/clean-json-input.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,6CAHW,MAAM,
|
|
1
|
+
{"version":3,"file":"clean-json-input.d.ts","sourceRoot":"","sources":["../../src/helpers/clean-json-input.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,6CAHW,MAAM,GACJ,MAAM,CAuBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-sortable.d.ts","sourceRoot":"","sources":["../../src/helpers/create-sortable.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-sortable.d.ts","sourceRoot":"","sources":["../../src/helpers/create-sortable.js"],"names":[],"mappings":"AAgFA;;;;;;;;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-legend-config.d.ts","sourceRoot":"","sources":["../../src/helpers/get-legend-config.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"get-legend-config.d.ts","sourceRoot":"","sources":["../../src/helpers/get-legend-config.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH,+CAJW,OAAO,4BAA4B,EAAE,0BAA0B,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,QACxF,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,qBACtB,MAAM,CAAC,MAAM,EAAC,MAAM,EAAE,CAAC,uDAuFjC"}
|
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
export function updateLayerSlice(layer: import("ol/layer").Layer, datetime: string): void;
|
|
7
7
|
/**
|
|
8
8
|
* Dispatches datetime updates from layer datetime to the layercontrol
|
|
9
|
-
* @param {CustomEvent} evt
|
|
9
|
+
* @param {CustomEvent & { isUser?: boolean }} evt
|
|
10
10
|
* @param {HTMLElement} element
|
|
11
|
+
* @param {boolean} [activity=false]
|
|
11
12
|
*/
|
|
12
|
-
export function handleDatetimeUpdate(evt: CustomEvent
|
|
13
|
+
export function handleDatetimeUpdate(evt: CustomEvent & {
|
|
14
|
+
isUser?: boolean;
|
|
15
|
+
}, element: HTMLElement, activity?: boolean): void;
|
|
13
16
|
//# sourceMappingURL=handle-datetime-update.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle-datetime-update.d.ts","sourceRoot":"","sources":["../../src/helpers/handle-datetime-update.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"handle-datetime-update.d.ts","sourceRoot":"","sources":["../../src/helpers/handle-datetime-update.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wCAHW,OAAO,UAAU,EAAE,KAAK,YACxB,MAAM,QAQhB;AAED;;;;;GAKG;AACH,0CAJW,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,WAClC,WAAW,aACX,OAAO,QA6BjB"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @param {import("ol/layer").Layer | import("ol/layer").Group} layer - The layer or layer group to check visibility for.
|
|
6
6
|
* @param {import("ol").Map} map - The map instance to retrieve the current zoom level.
|
|
7
|
-
* @param {
|
|
8
|
-
* @returns {
|
|
7
|
+
* @param {boolean} showLayerZoomState - Flag indicating if zoom-based visibility is enabled.
|
|
8
|
+
* @returns {boolean} - The visibility state of the layer based on zoom levels.
|
|
9
9
|
*/
|
|
10
10
|
export default function isLayerVisibleBasedOnZoomState(layer: import("ol/layer").Layer | import("ol/layer").Group, map: import("ol").Map, showLayerZoomState: boolean): boolean;
|
|
11
11
|
//# sourceMappingURL=is-layer-visible-based-on-zoom-state.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-layer-visible-based-on-zoom-state.d.ts","sourceRoot":"","sources":["../../src/helpers/is-layer-visible-based-on-zoom-state.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,8DALW,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,OACnD,OAAO,IAAI,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"is-layer-visible-based-on-zoom-state.d.ts","sourceRoot":"","sources":["../../src/helpers/is-layer-visible-based-on-zoom-state.js"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,8DALW,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,OACnD,OAAO,IAAI,EAAE,GAAG,sBAChB,OAAO,GACL,OAAO,CAqBnB"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Returns whether zoom layer state be enabled or not for a particular layer
|
|
3
3
|
*
|
|
4
4
|
* @param {import("ol/layer").Layer | import("ol/layer").Group} layer - The layer or layer group to check for zoom-based visibility.
|
|
5
|
-
* @param {
|
|
6
|
-
* @returns {
|
|
5
|
+
* @param {boolean} showLayerZoomState - Flag indicating if zoom-based visibility is requested.
|
|
6
|
+
* @returns {boolean} - Indicates if the zoom-based layer visibility state is required.
|
|
7
7
|
*/
|
|
8
8
|
export default function isLayerZoomStateRequired(layer: import("ol/layer").Layer | import("ol/layer").Group, showLayerZoomState: boolean): boolean;
|
|
9
9
|
//# sourceMappingURL=is-layer-zoom-state-req.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-layer-zoom-state-req.d.ts","sourceRoot":"","sources":["../../src/helpers/is-layer-zoom-state-req.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wDAJW,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"is-layer-zoom-state-req.d.ts","sourceRoot":"","sources":["../../src/helpers/is-layer-zoom-state-req.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wDAJW,OAAO,UAAU,EAAE,KAAK,GAAG,OAAO,UAAU,EAAE,KAAK,sBACnD,OAAO,GACL,OAAO,CAWnB"}
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Computes an appropriate step for number/range inputs based on the range difference.
|
|
3
|
-
* @param {number} min
|
|
4
|
-
* @param {number} max
|
|
5
|
-
* @returns {number}
|
|
6
|
-
*/
|
|
7
|
-
export function computeStep(min: number, max: number): number;
|
|
8
|
-
/**
|
|
9
|
-
* Builds schema property definitions for min and max controls based on valid_range.
|
|
10
|
-
* If validRange is available, uses number inputs with native incrementing buttons (format: "number").
|
|
11
|
-
* If no validRange is available, uses range sliders (format: "range").
|
|
12
|
-
*
|
|
13
|
-
* @param {number} [min]
|
|
14
|
-
* @param {number} [max]
|
|
15
|
-
* @param {number[] | null | undefined} [validRange]
|
|
16
|
-
* @returns {{ minProp: Record<string, any>, maxProp: Record<string, any> }}
|
|
17
|
-
*/
|
|
18
|
-
export function buildMinMaxProperties(min?: number, max?: number, validRange?: number[] | null | undefined): {
|
|
19
|
-
minProp: Record<string, any>;
|
|
20
|
-
maxProp: Record<string, any>;
|
|
21
|
-
};
|
|
22
1
|
/**
|
|
23
2
|
* Resolves the target min and max range for a given GeoZarr band.
|
|
24
3
|
* Uses 'valid_range' from layer's _geozarrVariables if available,
|
|
@@ -46,4 +25,7 @@ export function updateGeoZarrBand(layer: import("ol/layer/Base").default | any,
|
|
|
46
25
|
targetMin: number;
|
|
47
26
|
targetMax: number;
|
|
48
27
|
} | undefined>;
|
|
28
|
+
import { computeStep } from "@eox/elements-utils";
|
|
29
|
+
import { buildMinMaxProperties } from "@eox/elements-utils";
|
|
30
|
+
export { computeStep, buildMinMaxProperties };
|
|
49
31
|
//# sourceMappingURL=update-geozarr-band.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-geozarr-band.d.ts","sourceRoot":"","sources":["../../src/helpers/update-geozarr-band.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-geozarr-band.d.ts","sourceRoot":"","sources":["../../src/helpers/update-geozarr-band.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AACH,2CALW,OAAO,eAAe,EAAE,OAAO,GAAC,GAAG,QACnC,MAAM,iBACN,GAAG,GACD;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CA0BpD;AAED;;;;;;;;GAQG;AACH,yCAJW,OAAO,eAAe,EAAE,OAAO,GAAC,GAAG,WACnC,MAAM,GACJ,OAAO,CAAC;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAAC,CA2RzE;4BA1UM,qBAAqB;sCAArB,qBAAqB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Updates the layer's URL using input values and returns the modified URL.
|
|
3
3
|
*
|
|
4
|
-
* @param {
|
|
5
|
-
* @param {
|
|
6
|
-
* @returns {
|
|
4
|
+
* @param {string} url - The original URL to be updated.
|
|
5
|
+
* @param {object} values - The key-value pairs to update in the URL.
|
|
6
|
+
* @returns {string} - The updated URL based on the provided values.
|
|
7
7
|
*/
|
|
8
|
-
export default function updateUrl(url: string, values:
|
|
8
|
+
export default function updateUrl(url: string, values: object): string;
|
|
9
9
|
//# sourceMappingURL=update-url.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-url.d.ts","sourceRoot":"","sources":["../../src/helpers/update-url.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,
|
|
1
|
+
{"version":3,"file":"update-url.d.ts","sourceRoot":"","sources":["../../src/helpers/update-url.js"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,uCAJW,MAAM,UACN,MAAM,GACJ,MAAM,CAkClB"}
|
package/types/main.d.ts
CHANGED
|
@@ -28,6 +28,10 @@
|
|
|
28
28
|
* Usage: `import { updateVectorLayerStyle } from "@eox/layercontrol";`
|
|
29
29
|
*
|
|
30
30
|
* @element eox-layercontrol
|
|
31
|
+
* @fires {CustomEvent} layerchange - Fired when layers in the map change
|
|
32
|
+
* @fires {CustomEvent} layerConfig:change - Fired when layer configuration changes
|
|
33
|
+
* @fires {CustomEvent} datetime:updated - Fired when datetime is updated for a layer
|
|
34
|
+
* @fires {CustomEvent<import("@eox/elements-utils").EOxActivityDetail>} eox:activity - Fires on genuine user interactions, wrapping the original event for analytics tracking.
|
|
31
35
|
*/
|
|
32
36
|
export class EOxLayerControl extends LitElement {
|
|
33
37
|
static properties: {
|
|
@@ -85,13 +89,13 @@ export class EOxLayerControl extends LitElement {
|
|
|
85
89
|
* Query selector of an `eox-map` (`String`, passed as an attribute or property)
|
|
86
90
|
* or an `eox-map` DOM element (`HTMLElement`, passed as property)
|
|
87
91
|
*
|
|
88
|
-
* @type {
|
|
92
|
+
* @type {string | HTMLElement}
|
|
89
93
|
*/
|
|
90
94
|
for: string | HTMLElement;
|
|
91
95
|
/**
|
|
92
96
|
* Layer id property
|
|
93
97
|
*
|
|
94
|
-
* @type {
|
|
98
|
+
* @type {string}
|
|
95
99
|
*/
|
|
96
100
|
idProperty: string;
|
|
97
101
|
/**
|
|
@@ -104,55 +108,55 @@ export class EOxLayerControl extends LitElement {
|
|
|
104
108
|
/**
|
|
105
109
|
* Layer title property
|
|
106
110
|
*
|
|
107
|
-
* @type {
|
|
111
|
+
* @type {string}
|
|
108
112
|
*/
|
|
109
113
|
titleProperty: string;
|
|
110
114
|
/**
|
|
111
115
|
* Show layer state based on zoom level or not
|
|
112
116
|
*
|
|
113
|
-
* @type {
|
|
117
|
+
* @type {boolean}
|
|
114
118
|
*/
|
|
115
119
|
showLayerZoomState: boolean;
|
|
116
120
|
/**
|
|
117
121
|
* Layer tools
|
|
118
122
|
*
|
|
119
|
-
* @type {Array<
|
|
123
|
+
* @type {Array<string>}
|
|
120
124
|
*/
|
|
121
125
|
tools: Array<string>;
|
|
122
126
|
/**
|
|
123
127
|
* Enable-disable external layer
|
|
124
128
|
*
|
|
125
|
-
* @type {
|
|
129
|
+
* @type {boolean}
|
|
126
130
|
*/
|
|
127
131
|
addExternalLayers: boolean;
|
|
128
132
|
/**
|
|
129
133
|
* Render the element without additional styles
|
|
130
134
|
*
|
|
131
|
-
* @type {
|
|
135
|
+
* @type {boolean}
|
|
132
136
|
*/
|
|
133
137
|
unstyled: boolean;
|
|
134
138
|
/**
|
|
135
139
|
* Overrides elements current CSS.
|
|
136
140
|
*
|
|
137
|
-
* @type {
|
|
141
|
+
* @type {string}
|
|
138
142
|
*/
|
|
139
143
|
styleOverride: string;
|
|
140
144
|
/**
|
|
141
145
|
* If enabled, the tools section will be rendered as list.
|
|
142
146
|
*
|
|
143
|
-
* @type {
|
|
147
|
+
* @type {boolean}
|
|
144
148
|
*/
|
|
145
149
|
toolsAsList: boolean;
|
|
146
150
|
/**
|
|
147
151
|
* If enabled, exclusive layers (marked with the property `layerControlExclusive`) will be globally exclusive (default: exclusive within their layer group).
|
|
148
152
|
*
|
|
149
|
-
* @type {
|
|
153
|
+
* @type {boolean}
|
|
150
154
|
*/
|
|
151
155
|
globallyExclusiveLayers: boolean;
|
|
152
156
|
/**
|
|
153
157
|
* If enabled, toggling the layer visibility will also open/close the layer tools.
|
|
154
158
|
*
|
|
155
|
-
* @type {
|
|
159
|
+
* @type {boolean}
|
|
156
160
|
*/
|
|
157
161
|
toolsAutoExpand: boolean;
|
|
158
162
|
/**
|
package/types/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAeA
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.js"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH;IAEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqBE;IAaA;;;;;OAKG;IACH,KAFU,MAAM,GAAG,WAAW,CAEV;IAEpB;;;;OAIG;IACH,YAFU,MAAM,CAEM;IAEtB;;;;;OAKG;IACH,KAHU,OAAO,IAAI,EAAE,GAAG,CAGX;IAEf;;;;OAIG;IACH,eAFU,MAAM,CAEY;IAE5B;;;;OAIG;IACH,oBAFU,OAAO,CAEc;IAE/B;;;;OAIG;IACH,OAFU,KAAK,CAAC,MAAM,CAAC,CAEiD;IAExE;;;;OAIG;IACH,mBAFU,OAAO,CAEa;IAE9B;;;;OAIG;IACH,UAFU,OAAO,CAEI;IAErB;;;;OAIG;IACH,eAFU,MAAM,CAEO;IAEvB;;;;OAIG;IACH,aAFU,OAAO,CAEO;IAExB;;;;OAIG;IACH,yBAFU,OAAO,CAEmB;IAEpC;;;;OAIG;IACH,iBAFU,OAAO,CAEW;IAE5B;;;;;;OAMG;IACH,8BAAgC;IAChC,sBAA4B;IAG9B;;;OAGG;IACH,qBAEC;IAYD,uBAIC;IARD,kBAEC;IARD,sCAIC;IA8CD,+CAwEC;;CA+CF;;2BAxWgC,KAAK"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-layer.d.ts","sourceRoot":"","sources":["../../../src/methods/add-layer/add-layer.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"add-layer.d.ts","sourceRoot":"","sources":["../../../src/methods/add-layer/add-layer.js"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH,oDAFW,OAAO,6BAA6B,EAAE,wBAAwB,QA6BxE"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* It utilizes the provided instance to process the URL input for WMS or XYZ layers.
|
|
4
4
|
*
|
|
5
5
|
* @param {import("../../components/add-layers").EOxLayerControlAddLayers} EoxLayerControlAddLayers - Instance of EOxLayerControlAddLayers.
|
|
6
|
-
* @
|
|
6
|
+
* @returns {Promise<{"Name": string} | false>} - An object with layer information if URL type is XYZ, otherwise false.
|
|
7
7
|
*/
|
|
8
8
|
export default function wmsSearchURL(EoxLayerControlAddLayers: import("../../components/add-layers").EOxLayerControlAddLayers): Promise<{
|
|
9
9
|
"Name": string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wms-search-url.d.ts","sourceRoot":"","sources":["../../../src/methods/add-layer/wms-search-url.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,+DAHW,OAAO,6BAA6B,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"wms-search-url.d.ts","sourceRoot":"","sources":["../../../src/methods/add-layer/wms-search-url.js"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,+DAHW,OAAO,6BAA6B,EAAE,wBAAwB,GAC5D,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAC,GAAG,KAAK,CAAC,CAoC7C"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export default firstUpdatedMethod;
|
|
2
2
|
/**
|
|
3
3
|
* Check and update layer zoom visibility at beginning
|
|
4
|
-
* and
|
|
4
|
+
* and subscribe to layer/view changes for the current connection.
|
|
5
5
|
*
|
|
6
6
|
* @param {import("../../components/layer").EOxLayerControlLayer} EOxLayerControlLayer - Instance of EOxLayerControlLayer
|
|
7
|
+
* @returns {() => void} Releases all subscriptions for this connection.
|
|
7
8
|
*/
|
|
8
|
-
declare function firstUpdatedMethod(EOxLayerControlLayer: import("../../components/layer").EOxLayerControlLayer): void;
|
|
9
|
+
declare function firstUpdatedMethod(EOxLayerControlLayer: import("../../components/layer").EOxLayerControlLayer): () => void;
|
|
9
10
|
//# sourceMappingURL=first-updated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"first-updated.d.ts","sourceRoot":"","sources":["../../../src/methods/layer/first-updated.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"first-updated.d.ts","sourceRoot":"","sources":["../../../src/methods/layer/first-updated.js"],"names":[],"mappings":";AAOA;;;;;;GAMG;AACH,0DAHW,OAAO,wBAAwB,EAAE,oBAAoB,GACnD,MAAM,IAAI,CAmFtB"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {Record<string,
|
|
2
|
+
* @param {Record<string,any>} jsonformOutput
|
|
3
3
|
* @param { import("ol/layer/Layer").default} layer
|
|
4
4
|
* @param { import("../../components/layer-config").EOxLayerControlLayerConfig['layerConfig']} layerConfig
|
|
5
5
|
* */
|
|
6
|
-
export default function _default(jsonformOutput: Record<string,
|
|
6
|
+
export default function _default(jsonformOutput: Record<string, any>, layer: import("ol/layer/Layer").default, layerConfig: import("../../components/layer-config").EOxLayerControlLayerConfig["layerConfig"]): Promise<void>;
|
|
7
7
|
/**
|
|
8
8
|
* updating the variables assigned in the layer style
|
|
9
9
|
* from the `styles.variables` property
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apply-updated-styles.d.ts","sourceRoot":"","sources":["../../../src/methods/layer-config/apply-updated-styles.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"apply-updated-styles.d.ts","sourceRoot":"","sources":["../../../src/methods/layer-config/apply-updated-styles.js"],"names":[],"mappings":"AAGA;;;;KAIK;AACL,iDAJW,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,SACjB,OAAO,gBAAgB,EAAE,OAAO,eAChC,OAAO,+BAA+B,EAAE,0BAA0B,CAAC,aAAa,CAAC,iBAgG5F;AA+BD;;;;;GAKG;AACH,+CAHW,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,uBA+B5B;AA5DM,mCAFI,MAAM,CAAC,MAAM,EAAC,GAAG,CAAC,uBA0B5B"}
|
|
@@ -6,7 +6,7 @@ export default dataChangeMethod;
|
|
|
6
6
|
* @param {{[key: string]: any}} data - The updated data to be applied to the layer.
|
|
7
7
|
* @param {Function} tileUrlFunc - The function generating the tile URL for the layer.
|
|
8
8
|
* @param {import("../../components/layer-config").EOxLayerControlLayerConfig} EOxLayerControlLayerConfig - Instance of EOxLayerControlLayer.
|
|
9
|
-
* @
|
|
9
|
+
* @returns {Function} - New function generating the tile URL for the layer.
|
|
10
10
|
*/
|
|
11
11
|
declare function dataChangeMethod(data: {
|
|
12
12
|
[key: string]: any;
|