@opengeoweb/core 2.1.3 → 2.2.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 (95) hide show
  1. package/{core.esm.js → index.esm.js} +2892 -1531
  2. package/{core.umd.js → index.umd.js} +3191 -1781
  3. package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
  4. package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
  5. package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
  6. package/lib/components/CustomToggleButton/CustomToggleButton.d.ts +9 -0
  7. package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → CustomToggleButton/CustomToggleButton.spec.d.ts} +0 -0
  8. package/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +13 -0
  9. package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -1
  10. package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
  11. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +1 -2
  12. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +4 -5
  13. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
  14. package/lib/components/{Mapcontrols/MapControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts} +0 -0
  15. package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +3 -0
  16. package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
  17. package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
  18. package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +3 -0
  19. package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -0
  20. package/lib/components/{ToggleIconButton/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts} +0 -0
  21. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -0
  22. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +9 -0
  23. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +1 -0
  24. package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -0
  25. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +4 -1
  26. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +3 -0
  27. package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -0
  28. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
  29. package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +10 -0
  30. package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
  31. package/lib/components/{Mapcontrols → MapControls}/MapControlButton.d.ts +3 -3
  32. package/lib/components/MapControls/MapControlButton.spec.d.ts +1 -0
  33. package/lib/components/{Mapcontrols → MapControls}/MapControls.d.ts +0 -0
  34. package/lib/components/MapControls/MapControls.spec.d.ts +1 -0
  35. package/lib/components/{Mapcontrols → MapControls}/ZoomControls.d.ts +0 -0
  36. package/lib/components/MapControls/ZoomControls.spec.d.ts +1 -0
  37. package/lib/components/{Mapcontrols → MapControls}/ZoomControlsConnect.d.ts +0 -0
  38. package/lib/components/MapControls/ZoomControlsConnect.spec.d.ts +1 -0
  39. package/lib/components/{Mapcontrols → MapControls}/index.d.ts +0 -0
  40. package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +7 -0
  41. package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +2 -0
  42. package/lib/components/MapView/MapViewConnect.d.ts +2 -0
  43. package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
  44. package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +1 -1
  45. package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -2
  46. package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +4 -4
  47. package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -2
  48. package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
  49. package/lib/components/Providers/Providers.d.ts +1 -1
  50. package/lib/components/ReactMapView/ReactMapView.d.ts +3 -7
  51. package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
  52. package/lib/components/ReactMapView/types.d.ts +2 -7
  53. package/lib/components/SyncGroups/selector.d.ts +13 -2
  54. package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
  55. package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
  56. package/lib/components/ToolButton/ToolButton.d.ts +12 -0
  57. package/lib/components/ToolButton/ToolButton.spec.d.ts +1 -0
  58. package/lib/components/{ToggleIconButton/ToggleIconButton.stories.d.ts → ToolButton/ToolButton.stories.d.ts} +2 -2
  59. package/lib/components/ToolButton/index.d.ts +1 -0
  60. package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
  61. package/lib/index.d.ts +4 -2
  62. package/lib/store/advancedLayerStore/selectors.d.ts +13 -2
  63. package/lib/store/generic/selectors.d.ts +21 -3
  64. package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -1
  65. package/lib/store/generic/synchronizationGroups/types.d.ts +1 -0
  66. package/lib/store/layerSelect/actions.d.ts +16 -5
  67. package/lib/store/layerSelect/constants.d.ts +6 -1
  68. package/lib/store/layerSelect/sagas.d.ts +1 -0
  69. package/lib/store/layerSelect/selectors.d.ts +130 -3
  70. package/lib/store/layerSelect/types.d.ts +73 -17
  71. package/lib/store/mapStore/layers/actions.d.ts +2 -8
  72. package/lib/store/mapStore/layers/constants.d.ts +1 -1
  73. package/lib/store/mapStore/layers/selectors.d.ts +222 -27
  74. package/lib/store/mapStore/layers/types.d.ts +34 -21
  75. package/lib/store/mapStore/map/sagas.d.ts +2 -2
  76. package/lib/store/mapStore/map/selectors.d.ts +459 -53
  77. package/lib/store/mapStore/service/actions.d.ts +8 -1
  78. package/lib/store/mapStore/service/constants.d.ts +1 -0
  79. package/lib/store/mapStore/service/selectors.d.ts +137 -8
  80. package/lib/store/mapStore/service/types.d.ts +14 -3
  81. package/lib/store/mapStore/utils/helpers.d.ts +0 -1
  82. package/lib/store/ui/selectors.d.ts +67 -7
  83. package/lib/store/utils.d.ts +6 -0
  84. package/lib/storybookUtils/HelperComponents.d.ts +1 -1
  85. package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +5 -5
  86. package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +2 -1
  87. package/lib/utils/defaultConfigurations.d.ts +3 -21
  88. package/lib/utils/defaultTestSettings.d.ts +18 -6
  89. package/lib/utils/getCapabilities.d.ts +3 -2
  90. package/lib/utils/jsonPresetFilter.d.ts +10 -0
  91. package/lib/utils/jsonPresetFilter.spec.d.ts +1 -0
  92. package/lib/utils/types.d.ts +52 -0
  93. package/package.json +14 -15
  94. package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -9
  95. package/lib/components/ToggleIconButton/index.d.ts +0 -1
@@ -17,7 +17,19 @@ export declare const getLayerById: (store: AppStore, layerId: string) => Layer;
17
17
  * @param {object} store store: object - object from which the layers state will be extracted
18
18
  * @returns {object} returnType: object - an object of all layers containing layer information (service, name, style, enabled etc.) indexed by layerId
19
19
  */
20
- export declare const getLayersById: import("reselect").OutputSelector<AppStore, Record<string, Layer>, (res: LayerState) => Record<string, Layer>>;
20
+ export declare const getLayersById: ((state: {
21
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
22
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
23
+ ui?: import("../../ui/types").UIStoreType;
24
+ webmap?: import("../types").WebMapState;
25
+ services?: import("../types").ServiceState;
26
+ layers?: LayerState;
27
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
28
+ }) => Record<string, import("./types").ReduxLayer>) & import("reselect").OutputSelectorFields<((args_0: LayerState) => Record<string, import("./types").ReduxLayer>) & {
29
+ clearCache: () => void;
30
+ }> & {
31
+ clearCache: () => void;
32
+ };
21
33
  /**
22
34
  * Retrieves all layerIds
23
35
  *
@@ -25,7 +37,19 @@ export declare const getLayersById: import("reselect").OutputSelector<AppStore,
25
37
  * @param {object} store store: object - object from which the layers state will be extracted
26
38
  * @returns {array} returnType: array - an array of all layerIds
27
39
  */
28
- export declare const getLayersIds: import("reselect").OutputSelector<AppStore, string[], (res: LayerState) => string[]>;
40
+ export declare const getLayersIds: ((state: {
41
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
42
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
43
+ ui?: import("../../ui/types").UIStoreType;
44
+ webmap?: import("../types").WebMapState;
45
+ services?: import("../types").ServiceState;
46
+ layers?: LayerState;
47
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
48
+ }) => string[]) & import("reselect").OutputSelectorFields<((args_0: LayerState) => string[]) & {
49
+ clearCache: () => void;
50
+ }> & {
51
+ clearCache: () => void;
52
+ };
29
53
  /**
30
54
  * Retrieves all layers (including base layers and overlayers)
31
55
  *
@@ -33,7 +57,19 @@ export declare const getLayersIds: import("reselect").OutputSelector<AppStore, s
33
57
  * @param {object} store store: object - object from which the layers state will be extracted
34
58
  * @returns {array} returnType: array - an array of all layers containing layer information (service, name, style, enabled etc.)
35
59
  */
36
- export declare const getAllLayers: import("reselect").OutputSelector<AppStore, Layer[], (res1: string[], res2: Record<string, Layer>) => Layer[]>;
60
+ export declare const getAllLayers: ((state: {
61
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
62
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
63
+ ui?: import("../../ui/types").UIStoreType;
64
+ webmap?: import("../types").WebMapState;
65
+ services?: import("../types").ServiceState;
66
+ layers?: LayerState;
67
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
68
+ }) => import("./types").ReduxLayer[]) & import("reselect").OutputSelectorFields<((args_0: string[], args_1: Record<string, import("./types").ReduxLayer>) => import("./types").ReduxLayer[]) & {
69
+ clearCache: () => void;
70
+ }> & {
71
+ clearCache: () => void;
72
+ };
37
73
  /**
38
74
  * Retrieves all layers that aren't base layers and aren't overlayers
39
75
  *
@@ -41,7 +77,19 @@ export declare const getAllLayers: import("reselect").OutputSelector<AppStore, L
41
77
  * @param {object} store store: object - object from which the layers state will be extracted
42
78
  * @returns {array} returnType: array - an array of all non-baselayers containing layer information (service, name, style, enabled etc.)
43
79
  */
44
- export declare const getLayers: import("reselect").OutputSelector<AppStore, Layer[], (res: Layer[]) => Layer[]>;
80
+ export declare const getLayers: ((state: {
81
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
82
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
83
+ ui?: import("../../ui/types").UIStoreType;
84
+ webmap?: import("../types").WebMapState;
85
+ services?: import("../types").ServiceState;
86
+ layers?: LayerState;
87
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
88
+ }) => import("./types").ReduxLayer[]) & import("reselect").OutputSelectorFields<((args_0: import("./types").ReduxLayer[]) => import("./types").ReduxLayer[]) & {
89
+ clearCache: () => void;
90
+ }> & {
91
+ clearCache: () => void;
92
+ };
45
93
  /**
46
94
  * Retrieves all baselayers
47
95
  *
@@ -49,7 +97,19 @@ export declare const getLayers: import("reselect").OutputSelector<AppStore, Laye
49
97
  * @param {object} store store: object - object from which the layers state will be extracted
50
98
  * @returns {array} returnType: array - an array of all baselayers containing layer information (service, name, style, enabled etc.)
51
99
  */
52
- export declare const getBaseLayers: import("reselect").OutputSelector<AppStore, Layer[], (res: Layer[]) => Layer[]>;
100
+ export declare const getBaseLayers: ((state: {
101
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
102
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
103
+ ui?: import("../../ui/types").UIStoreType;
104
+ webmap?: import("../types").WebMapState;
105
+ services?: import("../types").ServiceState;
106
+ layers?: LayerState;
107
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
108
+ }) => import("./types").ReduxLayer[]) & import("reselect").OutputSelectorFields<((args_0: import("./types").ReduxLayer[]) => import("./types").ReduxLayer[]) & {
109
+ clearCache: () => void;
110
+ }> & {
111
+ clearCache: () => void;
112
+ };
53
113
  /**
54
114
  * Retrieves all overLayers
55
115
  *
@@ -57,16 +117,19 @@ export declare const getBaseLayers: import("reselect").OutputSelector<AppStore,
57
117
  * @param {object} store store: object - object from which the layers state will be extracted
58
118
  * @returns {array} returnType: array - an array of all overLayers containing layer information (service, name, style, enabled etc.)
59
119
  */
60
- export declare const getOverLayers: import("reselect").OutputSelector<AppStore, Layer[], (res: Layer[]) => Layer[]>;
61
- /**
62
- * Gets styles of the passed layer
63
- *
64
- * Example: layerStyles = getLayerStyles(store, 'layerId_1')
65
- * @param {object} store store: object - object from which the layers state will be extracted
66
- * @param {string} layerId layerId: string - Id of the layer
67
- * @returns {array} returnType: Style[] - array containing layer styles
68
- */
69
- export declare const getLayerStyles: import("reselect").OutputParametricSelector<AppStore, string, import("@opengeoweb/webmap").Style[], (res: Layer) => import("@opengeoweb/webmap").Style[]>;
120
+ export declare const getOverLayers: ((state: {
121
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
122
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
123
+ ui?: import("../../ui/types").UIStoreType;
124
+ webmap?: import("../types").WebMapState;
125
+ services?: import("../types").ServiceState;
126
+ layers?: LayerState;
127
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
128
+ }) => import("./types").ReduxLayer[]) & import("reselect").OutputSelectorFields<((args_0: import("./types").ReduxLayer[]) => import("./types").ReduxLayer[]) & {
129
+ clearCache: () => void;
130
+ }> & {
131
+ clearCache: () => void;
132
+ };
70
133
  /**
71
134
  * Gets dimensions of the passed layer
72
135
  *
@@ -75,7 +138,19 @@ export declare const getLayerStyles: import("reselect").OutputParametricSelector
75
138
  * @param {string} layerId layerId: string - Id of the layer
76
139
  * @returns {array} returnType: Dimension[] - array containing layer dimensions
77
140
  */
78
- export declare const getLayerDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("../types").Dimension[], (res: Layer) => import("../types").Dimension[]>;
141
+ export declare const getLayerDimensions: ((state: {
142
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
143
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
144
+ ui?: import("../../ui/types").UIStoreType;
145
+ webmap?: import("../types").WebMapState;
146
+ services?: import("../types").ServiceState;
147
+ layers?: LayerState;
148
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
149
+ }, params_0: string) => import("../types").Dimension[]) & import("reselect").OutputSelectorFields<((args_0: Layer) => import("../types").Dimension[]) & {
150
+ clearCache: () => void;
151
+ }> & {
152
+ clearCache: () => void;
153
+ };
79
154
  /**
80
155
  * Gets dimensions of the passed layer, excluding the time dimension
81
156
  *
@@ -84,16 +159,40 @@ export declare const getLayerDimensions: import("reselect").OutputParametricSele
84
159
  * @param {string} layerId layerId: string - Id of the layer
85
160
  * @returns {array} returnType: Dimension[] - array containing layer dimensions, excluding the time dimension
86
161
  */
87
- export declare const getLayerNonTimeDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("../types").Dimension[], (res: import("../types").Dimension[]) => import("../types").Dimension[]>;
162
+ export declare const getLayerNonTimeDimensions: ((state: {
163
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
164
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
165
+ ui?: import("../../ui/types").UIStoreType;
166
+ webmap?: import("../types").WebMapState;
167
+ services?: import("../types").ServiceState;
168
+ layers?: LayerState;
169
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
170
+ }, params_0: string) => import("../types").Dimension[]) & import("reselect").OutputSelectorFields<((args_0: import("../types").Dimension[]) => import("../types").Dimension[]) & {
171
+ clearCache: () => void;
172
+ }> & {
173
+ clearCache: () => void;
174
+ };
88
175
  /**
89
176
  * Gets time dimension of the passed layer
90
177
  *
91
178
  * Example: timeDimension = getLayerTimeDimension(store, 'layerId_1')
92
179
  * @param {object} store store: object - object from which the layers state will be extracted
93
180
  * @param {string} layerId layerId: string - Id of the layer
94
- * @returns {array} returnType: object - object of layer time dimension
181
+ * @returns {object} returnType: object - object of layer time dimension
95
182
  */
96
- export declare const getLayerTimeDimension: import("reselect").OutputParametricSelector<AppStore, string, any[] | import("../types").Dimension, (res: import("../types").Dimension[]) => any[] | import("../types").Dimension>;
183
+ export declare const getLayerTimeDimension: ((state: {
184
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
185
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
186
+ ui?: import("../../ui/types").UIStoreType;
187
+ webmap?: import("../types").WebMapState;
188
+ services?: import("../types").ServiceState;
189
+ layers?: LayerState;
190
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
191
+ }, params_0: string) => {}) & import("reselect").OutputSelectorFields<((args_0: import("../types").Dimension[]) => {}) & {
192
+ clearCache: () => void;
193
+ }> & {
194
+ clearCache: () => void;
195
+ };
97
196
  /**
98
197
  * Gets specified dimension of the passed layer
99
198
  *
@@ -103,7 +202,19 @@ export declare const getLayerTimeDimension: import("reselect").OutputParametricS
103
202
  * @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
104
203
  * @returns {object} returnType: object - object of layer dimension
105
204
  */
106
- export declare const getLayerDimension: import("reselect").OutputParametricSelector<AppStore, string, Dimension, (res1: import("../types").Dimension[], res2: string) => Dimension>;
205
+ export declare const getLayerDimension: ((state: {
206
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
207
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
208
+ ui?: import("../../ui/types").UIStoreType;
209
+ webmap?: import("../types").WebMapState;
210
+ services?: import("../types").ServiceState;
211
+ layers?: LayerState;
212
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
213
+ }, params_0: string, params_1: string) => Dimension) & import("reselect").OutputSelectorFields<((args_0: import("../types").Dimension[], args_1: string) => Dimension) & {
214
+ clearCache: () => void;
215
+ }> & {
216
+ clearCache: () => void;
217
+ };
107
218
  /**
108
219
  * Gets opacity of the passed layer
109
220
  *
@@ -112,7 +223,19 @@ export declare const getLayerDimension: import("reselect").OutputParametricSelec
112
223
  * @param {string} layerId layerId: string - Id of the layer
113
224
  * @returns {number} returnType: number - opacity as a number (between 0 and 1)
114
225
  */
115
- export declare const getLayerOpacity: import("reselect").OutputParametricSelector<AppStore, string, number, (res: Layer) => number>;
226
+ export declare const getLayerOpacity: ((state: {
227
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
228
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
229
+ ui?: import("../../ui/types").UIStoreType;
230
+ webmap?: import("../types").WebMapState;
231
+ services?: import("../types").ServiceState;
232
+ layers?: LayerState;
233
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
234
+ }, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: Layer) => number & {
235
+ clearCache: () => void;
236
+ }> & {
237
+ clearCache: () => void;
238
+ };
116
239
  /**
117
240
  * Gets whether a layer is enabled or disabled
118
241
  *
@@ -121,7 +244,19 @@ export declare const getLayerOpacity: import("reselect").OutputParametricSelecto
121
244
  * @param {string} layerId layerId: string - Id of the layer
122
245
  * @returns {boolean} returnType: boolean - true if enabled, false if disabled
123
246
  */
124
- export declare const getLayerEnabled: import("reselect").OutputParametricSelector<AppStore, string, boolean, (res: Layer) => boolean>;
247
+ export declare const getLayerEnabled: ((state: {
248
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
249
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
250
+ ui?: import("../../ui/types").UIStoreType;
251
+ webmap?: import("../types").WebMapState;
252
+ services?: import("../types").ServiceState;
253
+ layers?: LayerState;
254
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
255
+ }, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: Layer) => boolean & {
256
+ clearCache: () => void;
257
+ }> & {
258
+ clearCache: () => void;
259
+ };
125
260
  /**
126
261
  * Gets layer name
127
262
  *
@@ -130,7 +265,19 @@ export declare const getLayerEnabled: import("reselect").OutputParametricSelecto
130
265
  * @param {string} layerId layerId: string - Id of the layer
131
266
  * @returns {string} returnType: string - layer name
132
267
  */
133
- export declare const getLayerName: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
268
+ export declare const getLayerName: ((state: {
269
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
270
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
271
+ ui?: import("../../ui/types").UIStoreType;
272
+ webmap?: import("../types").WebMapState;
273
+ services?: import("../types").ServiceState;
274
+ layers?: LayerState;
275
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
276
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: Layer) => string & {
277
+ clearCache: () => void;
278
+ }> & {
279
+ clearCache: () => void;
280
+ };
134
281
  /**
135
282
  * Gets layer service
136
283
  *
@@ -139,7 +286,19 @@ export declare const getLayerName: import("reselect").OutputParametricSelector<A
139
286
  * @param {string} layerId layerId: string - Id of the layer
140
287
  * @returns {string} returnType: string - layer service
141
288
  */
142
- export declare const getLayerService: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
289
+ export declare const getLayerService: ((state: {
290
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
291
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
292
+ ui?: import("../../ui/types").UIStoreType;
293
+ webmap?: import("../types").WebMapState;
294
+ services?: import("../types").ServiceState;
295
+ layers?: LayerState;
296
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
297
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: Layer) => string & {
298
+ clearCache: () => void;
299
+ }> & {
300
+ clearCache: () => void;
301
+ };
143
302
  /**
144
303
  * Gets selected style of the passed layer
145
304
  *
@@ -148,7 +307,19 @@ export declare const getLayerService: import("reselect").OutputParametricSelecto
148
307
  * @param {string} layerId layerId: string - Id of the layer
149
308
  * @returns {string} returnType: string - style that is currently selected
150
309
  */
151
- export declare const getLayerStyle: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
310
+ export declare const getLayerStyle: ((state: {
311
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
312
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
313
+ ui?: import("../../ui/types").UIStoreType;
314
+ webmap?: import("../types").WebMapState;
315
+ services?: import("../types").ServiceState;
316
+ layers?: LayerState;
317
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
318
+ }, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: Layer) => string & {
319
+ clearCache: () => void;
320
+ }> & {
321
+ clearCache: () => void;
322
+ };
152
323
  /**
153
324
  * Gets layer status
154
325
  *
@@ -157,7 +328,19 @@ export declare const getLayerStyle: import("reselect").OutputParametricSelector<
157
328
  * @param {string} layerId layerId: string - Id of the layer
158
329
  * @returns {string} returnType: LayerStatus
159
330
  */
160
- export declare const getLayerStatus: import("reselect").OutputParametricSelector<AppStore, string, LayerStatus, (res: Layer) => LayerStatus>;
331
+ export declare const getLayerStatus: ((state: {
332
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
333
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
334
+ ui?: import("../../ui/types").UIStoreType;
335
+ webmap?: import("../types").WebMapState;
336
+ services?: import("../types").ServiceState;
337
+ layers?: LayerState;
338
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
339
+ }, params_0: string) => LayerStatus) & import("reselect").OutputSelectorFields<(args_0: Layer) => LayerStatus & {
340
+ clearCache: () => void;
341
+ }> & {
342
+ clearCache: () => void;
343
+ };
161
344
  /**
162
345
  * Gets all available base layers for a map
163
346
  *
@@ -166,4 +349,16 @@ export declare const getLayerStatus: import("reselect").OutputParametricSelector
166
349
  * @param {string} mapId mapId: string - Id of the map we want to retrieve the available baselayers for
167
350
  * @returns {array} returnType: array - array containing all available base layers
168
351
  */
169
- export declare const getAvailableBaseLayersForMap: (store: AppStore, mapId: string) => Layer[];
352
+ export declare const getAvailableBaseLayersForMap: ((state: {
353
+ advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
354
+ syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
355
+ ui?: import("../../ui/types").UIStoreType;
356
+ webmap?: import("../types").WebMapState;
357
+ services?: import("../types").ServiceState;
358
+ layers?: LayerState;
359
+ layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
360
+ }, params_0: string) => Layer[]) & import("reselect").OutputSelectorFields<((args_0: LayerState, args_1: string) => Layer[]) & {
361
+ clearCache: () => void;
362
+ }> & {
363
+ clearCache: () => void;
364
+ };
@@ -1,7 +1,8 @@
1
1
  import { Action } from 'redux';
2
2
  import { Style } from '@opengeoweb/webmap';
3
- import { Dimension } from '../map/types';
4
- import { WEBMAP_LAYER_CHANGE_OPACITY, WEBMAP_LAYER_CHANGE_NAME, WEBMAP_LAYER_CHANGE_STYLE, WEBMAP_LAYER_CHANGE_DIMENSION, WEBMAP_LAYER_CHANGE_ENABLED, WEBMAP_LAYER_DELETE, WEBMAP_ADD_LAYER, WEBMAP_SET_LAYERS, WEBMAP_SET_BASELAYERS, WEBMAP_ADD_BASELAYER, WEBMAP_BASELAYER_DELETE, WEBMAP_LAYER_ERROR, WEBMAP_ADD_AVAILABLE_BASELAYER, WEBMAP_ADD_AVAILABLE_BASELAYERS, WEBMAP_LAYER_SET_DIMENSIONS, WEBMAP_LAYER_SET_STYLES } from './constants';
3
+ import { Dimension, UpdateAllMapDimensionsPayload } from '../map/types';
4
+ import { WEBMAP_LAYER_CHANGE_OPACITY, WEBMAP_LAYER_CHANGE_NAME, WEBMAP_LAYER_CHANGE_STYLE, WEBMAP_LAYER_CHANGE_DIMENSION, WEBMAP_LAYER_CHANGE_ENABLED, WEBMAP_LAYER_DELETE, WEBMAP_ADD_LAYER, WEBMAP_SET_LAYERS, WEBMAP_SET_BASELAYERS, WEBMAP_ADD_BASELAYER, WEBMAP_BASELAYER_DELETE, WEBMAP_LAYER_ERROR, WEBMAP_ADD_AVAILABLE_BASELAYER, WEBMAP_ADD_AVAILABLE_BASELAYERS, WEBMAP_LAYER_SET_DIMENSIONS, WEBMAP_UPDATE_LAYER_INFO } from './constants';
5
+ import type { SetLayersForServicePayload } from '../types';
5
6
  export interface WMJSDimension {
6
7
  getFirstValue(): string;
7
8
  getLastValue(): string;
@@ -26,30 +27,39 @@ export declare enum LayerStatus {
26
27
  default = "default",
27
28
  error = "error"
28
29
  }
29
- export interface Layer {
30
+ /**
31
+ * ReduxLayer is used to reflect the shape of the layer in the redux layers store.
32
+ * It is a subset of Layer since some properties like the styles list now come from the service store.
33
+ */
34
+ export interface ReduxLayer {
30
35
  id?: string;
31
36
  mapId?: string;
32
37
  service?: string;
33
38
  name?: string;
34
39
  title?: string;
35
- format?: string;
36
40
  enabled?: boolean;
37
41
  style?: string;
38
42
  dimensions?: Dimension[];
39
- styles?: Style[];
40
43
  opacity?: number;
41
- headers?: Headers[];
42
44
  type?: string;
43
45
  layerType?: LayerType;
44
- geojson?: GeoJSON.FeatureCollection;
45
46
  status?: LayerStatus;
47
+ format?: string;
48
+ }
49
+ /**
50
+ * Layer is used to define a layer with all its possible properties.
51
+ */
52
+ export interface Layer extends ReduxLayer {
53
+ styles?: Style[];
54
+ geojson?: GeoJSON.FeatureCollection;
55
+ headers?: Headers[];
46
56
  }
47
57
  export interface AvailableBaseLayersType {
48
- byId: Record<string, Layer>;
58
+ byId: Record<string, ReduxLayer>;
49
59
  allIds: string[];
50
60
  }
51
61
  export interface LayerState {
52
- byId: Record<string, Layer>;
62
+ byId: Record<string, ReduxLayer>;
53
63
  allIds: string[];
54
64
  availableBaseLayers: AvailableBaseLayersType;
55
65
  }
@@ -59,7 +69,7 @@ export interface LayerPayload {
59
69
  }
60
70
  export interface SetLayersPayload {
61
71
  mapId: string;
62
- layers: Layer[];
72
+ layers: ReduxLayer[];
63
73
  origin?: string;
64
74
  }
65
75
  export interface SetLayers extends Action {
@@ -68,7 +78,7 @@ export interface SetLayers extends Action {
68
78
  }
69
79
  export interface SetBaseLayersPayload {
70
80
  mapId: string;
71
- layers: Layer[];
81
+ layers: ReduxLayer[];
72
82
  origin?: string;
73
83
  }
74
84
  export interface SetBaseLayers extends Action {
@@ -83,14 +93,6 @@ export interface SetLayerDimensions extends Action {
83
93
  type: typeof WEBMAP_LAYER_SET_DIMENSIONS;
84
94
  payload: SetLayerDimensionsPayload;
85
95
  }
86
- export interface SetLayerStylesPayload extends LayerPayload {
87
- origin: string;
88
- styles: Style[];
89
- }
90
- export interface SetLayerStyles extends Action {
91
- type: typeof WEBMAP_LAYER_SET_STYLES;
92
- payload: SetLayerStylesPayload;
93
- }
94
96
  export interface SetLayerOpacityPayload extends LayerPayload {
95
97
  opacity: number;
96
98
  }
@@ -173,7 +175,7 @@ export interface AddAvailableBaseLayers extends Action {
173
175
  payload: AddAvailableBaseLayersPayload;
174
176
  }
175
177
  export interface AddAvailableBaseLayersPayload {
176
- layers: Layer[];
178
+ layers: ReduxLayer[];
177
179
  origin?: string;
178
180
  }
179
181
  export interface ErrorLayerPayload extends LayerPayload {
@@ -183,4 +185,15 @@ export interface ErrorLayer extends Action {
183
185
  type: typeof WEBMAP_LAYER_ERROR;
184
186
  payload: ErrorLayerPayload;
185
187
  }
186
- export declare type LayerActions = SetLayerDimensions | SetLayerStyles | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers;
188
+ export interface UpdateLayerInfoPayload {
189
+ origin?: string;
190
+ mapDimensions?: UpdateAllMapDimensionsPayload;
191
+ layerStyle?: SetLayerStylePayload;
192
+ layerDimensions?: SetLayerDimensionsPayload;
193
+ serviceLayers?: SetLayersForServicePayload;
194
+ }
195
+ export interface UpdateLayerInfo extends Action {
196
+ type: typeof WEBMAP_UPDATE_LAYER_INFO;
197
+ payload: UpdateLayerInfoPayload;
198
+ }
199
+ export declare type LayerActions = SetLayerDimensions | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers | UpdateLayerInfo;
@@ -1,7 +1,7 @@
1
1
  import { SagaIterator } from 'redux-saga';
2
2
  import { Moment } from 'moment';
3
3
  import { SetMapAnimationStop, SetMapAnimationStart, ToggleAutoUpdate } from './types';
4
- import { DeleteLayer, SetLayerDimensions } from '../layers/types';
4
+ import { DeleteLayer, UpdateLayerInfo } from '../layers/types';
5
5
  export declare const generateTimeList: (start: Moment, end: Moment, interval: number) => {
6
6
  name: string;
7
7
  value: string;
@@ -11,7 +11,7 @@ export declare function startAnimationSaga({ payload, }: SetMapAnimationStart):
11
11
  export declare function stopAnimationSaga({ payload, }: SetMapAnimationStop): Generator;
12
12
  export declare function deleteLayerSaga({ payload }: DeleteLayer): SagaIterator;
13
13
  export declare function updateAnimation(mapId: string, maxValue: string): SagaIterator;
14
- export declare function setLayerDimensionsSaga({ payload, }: SetLayerDimensions): SagaIterator;
14
+ export declare function setLayerDimensionsSaga({ payload, }: UpdateLayerInfo): SagaIterator;
15
15
  export declare function toggleAutoUpdateSaga({ payload, }: ToggleAutoUpdate): SagaIterator;
16
16
  export declare function rootSaga(): SagaIterator;
17
17
  export default rootSaga;