@opengeoweb/store 5.2.1 → 6.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.
- package/index.js +35277 -2
- package/package.json +14 -2
- package/src/index.d.ts +1 -1
- package/src/store/app/config.d.ts +4 -0
- package/src/store/app/index.d.ts +2 -0
- package/src/store/app/reducer.d.ts +15 -0
- package/src/store/app/reducer.spec.d.ts +1 -0
- package/src/store/app/types.d.ts +6 -0
- package/src/store/coreModuleConfig.d.ts +1 -0
- package/src/store/generic/actions.d.ts +28 -0
- package/src/store/generic/config.d.ts +5 -0
- package/src/store/generic/index.d.ts +16 -0
- package/src/store/generic/sagas.d.ts +14 -0
- package/src/store/generic/sagas.spec.d.ts +1 -0
- package/src/store/generic/selectors.d.ts +22 -0
- package/src/store/generic/selectors.spec.d.ts +1 -0
- package/src/store/generic/synchronizationActions/actions.d.ts +11 -0
- package/src/store/generic/synchronizationActions/types.d.ts +34 -0
- package/src/store/generic/synchronizationGroups/__mocks__/mockState.d.ts +2 -0
- package/src/store/generic/synchronizationGroups/constants.d.ts +4 -0
- package/src/store/generic/synchronizationGroups/index.d.ts +6 -0
- package/src/store/generic/synchronizationGroups/reducer.d.ts +26 -0
- package/src/store/generic/synchronizationGroups/reducer.spec.d.ts +1 -0
- package/src/store/generic/synchronizationGroups/sagas.d.ts +8 -0
- package/src/store/generic/synchronizationGroups/sagas.spec.d.ts +1 -0
- package/src/store/generic/synchronizationGroups/selector.d.ts +19 -0
- package/src/store/generic/synchronizationGroups/selectors.d.ts +76 -0
- package/src/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -0
- package/src/store/generic/synchronizationGroups/types.d.ts +98 -0
- package/src/store/generic/synchronizationGroups/utils.d.ts +76 -0
- package/src/store/generic/synchronizationGroups/utils.spec.d.ts +1 -0
- package/src/store/generic/types.d.ts +22 -0
- package/src/store/generic/utils.d.ts +9 -0
- package/src/store/generic/utils.spec.d.ts +1 -0
- package/src/store/index.d.ts +12 -0
- package/src/store/layerSelect/config.d.ts +5 -0
- package/src/store/layerSelect/index.d.ts +4 -0
- package/src/store/layerSelect/localStorage.d.ts +3 -0
- package/src/store/layerSelect/localStorage.spec.d.ts +1 -0
- package/src/store/layerSelect/reducer.d.ts +21 -0
- package/src/store/layerSelect/reducer.spec.d.ts +1 -0
- package/src/store/layerSelect/sagas.d.ts +10 -0
- package/src/store/layerSelect/sagas.spec.d.ts +1 -0
- package/src/store/layerSelect/selectors.d.ts +157 -0
- package/src/store/layerSelect/selectors.spec.d.ts +1 -0
- package/src/store/layerSelect/types.d.ts +95 -0
- package/src/store/layerSelect/utils.d.ts +6 -0
- package/src/store/layerSelect/utils.spec.d.ts +1 -0
- package/src/store/mapStore/config.d.ts +4 -0
- package/src/store/mapStore/index.d.ts +76 -0
- package/src/store/mapStore/layers/index.d.ts +5 -0
- package/src/store/mapStore/layers/reducer.d.ts +56 -0
- package/src/store/mapStore/layers/reducer.spec.d.ts +1 -0
- package/src/store/mapStore/layers/selectors.d.ts +443 -0
- package/src/store/mapStore/layers/selectors.spec.d.ts +1 -0
- package/src/store/mapStore/layers/types.d.ts +149 -0
- package/src/store/mapStore/layers/utils.d.ts +18 -0
- package/src/store/mapStore/layers/utils.spec.d.ts +1 -0
- package/src/store/mapStore/map/actions.d.ts +8 -0
- package/src/store/mapStore/map/constants.d.ts +6 -0
- package/src/store/mapStore/map/defaultLayers.d.ts +15 -0
- package/src/store/mapStore/map/enums.d.ts +23 -0
- package/src/store/mapStore/map/filterLayers.d.ts +10 -0
- package/src/store/mapStore/map/filterLayers.spec.d.ts +1 -0
- package/src/store/mapStore/map/index.d.ts +36 -0
- package/src/store/mapStore/map/reducer.d.ts +98 -0
- package/src/store/mapStore/map/reducer.spec.d.ts +1 -0
- package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -0
- package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +1 -0
- package/src/store/mapStore/map/sagas.d.ts +24 -0
- package/src/store/mapStore/map/sagas.spec.d.ts +1 -0
- package/src/store/mapStore/map/selectors.d.ts +1002 -0
- package/src/store/mapStore/map/selectors.spec.d.ts +1 -0
- package/src/store/mapStore/map/types.d.ts +242 -0
- package/src/store/mapStore/map/utils.d.ts +94 -0
- package/src/store/mapStore/map/utils.spec.d.ts +1 -0
- package/src/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/src/store/mapStore/service/index.d.ts +3 -0
- package/src/store/mapStore/service/reducer.d.ts +11 -0
- package/src/store/mapStore/service/reducer.spec.d.ts +1 -0
- package/src/store/mapStore/service/sagas.d.ts +7 -0
- package/src/store/mapStore/service/sagas.spec.d.ts +1 -0
- package/src/store/mapStore/service/selectors.d.ts +121 -0
- package/src/store/mapStore/service/selectors.spec.d.ts +1 -0
- package/src/store/mapStore/service/types.d.ts +49 -0
- package/src/store/mapStore/storeTestSettings.d.ts +6 -0
- package/src/store/mapStore/storeTestUtils.d.ts +10 -0
- package/src/store/mapStore/types.d.ts +11 -0
- package/src/store/router/config.d.ts +4 -0
- package/src/store/router/index.d.ts +3 -0
- package/src/store/router/reducer.d.ts +9 -0
- package/src/store/router/reducer.spec.d.ts +1 -0
- package/src/store/router/sagas.d.ts +5 -0
- package/src/store/router/sagas.spec.d.ts +1 -0
- package/src/store/router/types.d.ts +8 -0
- package/src/store/router/utils.d.ts +3 -0
- package/src/store/snackbar/config.d.ts +4 -0
- package/src/store/snackbar/index.d.ts +4 -0
- package/src/store/snackbar/reducer.d.ts +11 -0
- package/src/store/snackbar/reducer.spec.d.ts +1 -0
- package/src/store/snackbar/sagas.d.ts +5 -0
- package/src/store/snackbar/sagas.spec.d.ts +1 -0
- package/src/store/snackbar/selectors.d.ts +10 -0
- package/src/store/snackbar/selectors.spec.d.ts +1 -0
- package/src/store/snackbar/types.d.ts +15 -0
- package/src/store/types.d.ts +5 -0
- package/src/store/ui/config.d.ts +4 -0
- package/src/store/ui/index.d.ts +3 -0
- package/src/store/ui/reducer.d.ts +35 -0
- package/src/store/ui/reducer.spec.d.ts +1 -0
- package/src/store/ui/sagas.d.ts +5 -0
- package/src/store/ui/sagas.test.d.ts +1 -0
- package/src/store/ui/selectors.d.ts +144 -0
- package/src/store/ui/selectors.spec.d.ts +1 -0
- package/src/store/ui/types.d.ts +78 -0
- package/src/store/utils.d.ts +8 -0
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
import type { CoreAppStore } from '../../types';
|
|
2
|
+
import type { Dimension, ReduxLayer } from '../types';
|
|
3
|
+
import { LayerState, Layer, LayerStatus } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* Gets a layer from the layers part of the store by its Id
|
|
6
|
+
*
|
|
7
|
+
* Example: layer = getLayerById(store, 'layerId')
|
|
8
|
+
* @param {object} store object from which the layer state will be extracted
|
|
9
|
+
* @param {string} layerId Id of the layer
|
|
10
|
+
* @returns {object} object containing layer information (service, name, style, enabled etc.)
|
|
11
|
+
*/
|
|
12
|
+
export declare const getLayerById: (store: CoreAppStore, layerId?: string | undefined) => Layer | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves all layers indexed by layerId
|
|
15
|
+
*
|
|
16
|
+
* Example: layers = getLayersById(store)
|
|
17
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
18
|
+
* @returns {object} returnType: object - an object of all layers containing layer information (service, name, style, enabled etc.) indexed by layerId
|
|
19
|
+
*/
|
|
20
|
+
export declare const getLayersById: ((state: {
|
|
21
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
22
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
23
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
24
|
+
services?: import("../types").ServiceState | undefined;
|
|
25
|
+
layers?: LayerState | undefined;
|
|
26
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
27
|
+
}) => Record<string, ReduxLayer> | null) & import("reselect").OutputSelectorFields<(args_0: LayerState | undefined) => Record<string, ReduxLayer> | null, {
|
|
28
|
+
clearCache: () => void;
|
|
29
|
+
}> & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Retrieves all layerIds
|
|
34
|
+
*
|
|
35
|
+
* Example: layerIds = getLayersIds(store)
|
|
36
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
37
|
+
* @returns {array} returnType: array - an array of all layerIds
|
|
38
|
+
*/
|
|
39
|
+
export declare const getLayersIds: ((state: {
|
|
40
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
41
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
42
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
43
|
+
services?: import("../types").ServiceState | undefined;
|
|
44
|
+
layers?: LayerState | undefined;
|
|
45
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
46
|
+
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: LayerState | undefined) => string[], {
|
|
47
|
+
clearCache: () => void;
|
|
48
|
+
}> & {
|
|
49
|
+
clearCache: () => void;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves all layers (including base layers and overlayers)
|
|
53
|
+
*
|
|
54
|
+
* Example: layers = getAllLayers(store)
|
|
55
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
56
|
+
* @returns {array} returnType: array - an array of all layers containing layer information (service, name, style, enabled etc.)
|
|
57
|
+
*/
|
|
58
|
+
export declare const getAllLayers: ((state: {
|
|
59
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
60
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
61
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
62
|
+
services?: import("../types").ServiceState | undefined;
|
|
63
|
+
layers?: LayerState | undefined;
|
|
64
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
65
|
+
}) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: Record<string, ReduxLayer> | null) => ReduxLayer[], {
|
|
66
|
+
clearCache: () => void;
|
|
67
|
+
}> & {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Retrieves all layers (including base layers and overlayers) for the given mapId
|
|
72
|
+
*
|
|
73
|
+
* Example: layers = getLayersByMapId(store, mapId)
|
|
74
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
75
|
+
* @param {string} mapId mapId: string - mapId
|
|
76
|
+
* @returns {array} returnType: ReduxLayer[] - an array of all layers containing layer information (service, name, style, enabled etc.)
|
|
77
|
+
*/
|
|
78
|
+
export declare const getLayersByMapId: ((state: {
|
|
79
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
80
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
81
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
82
|
+
services?: import("../types").ServiceState | undefined;
|
|
83
|
+
layers?: LayerState | undefined;
|
|
84
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
85
|
+
}, params_0: string) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[], args_1: string) => ReduxLayer[], {
|
|
86
|
+
clearCache: () => void;
|
|
87
|
+
}> & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves all layers that aren't base layers and aren't overlayers
|
|
92
|
+
*
|
|
93
|
+
* Example: layers = getLayers(store)
|
|
94
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
95
|
+
* @returns {array} returnType: array - an array of all non-baselayers containing layer information (service, name, style, enabled etc.)
|
|
96
|
+
*/
|
|
97
|
+
export declare const getLayers: ((state: {
|
|
98
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
99
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
100
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
101
|
+
services?: import("../types").ServiceState | undefined;
|
|
102
|
+
layers?: LayerState | undefined;
|
|
103
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
104
|
+
}) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[]) => ReduxLayer[], {
|
|
105
|
+
clearCache: () => void;
|
|
106
|
+
}> & {
|
|
107
|
+
clearCache: () => void;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Retrieves all baselayers
|
|
111
|
+
*
|
|
112
|
+
* Example: layers = getBaseLayers(store)
|
|
113
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
114
|
+
* @returns {array} returnType: array - an array of all baselayers containing layer information (service, name, style, enabled etc.)
|
|
115
|
+
*/
|
|
116
|
+
export declare const getBaseLayers: ((state: {
|
|
117
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
118
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
119
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
120
|
+
services?: import("../types").ServiceState | undefined;
|
|
121
|
+
layers?: LayerState | undefined;
|
|
122
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
123
|
+
}) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[]) => ReduxLayer[], {
|
|
124
|
+
clearCache: () => void;
|
|
125
|
+
}> & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Retrieves all overLayers
|
|
130
|
+
*
|
|
131
|
+
* Example: layers = getOverLayers(store)
|
|
132
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
133
|
+
* @returns {array} returnType: array - an array of all overLayers containing layer information (service, name, style, enabled etc.)
|
|
134
|
+
*/
|
|
135
|
+
export declare const getOverLayers: ((state: {
|
|
136
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
137
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
138
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
139
|
+
services?: import("../types").ServiceState | undefined;
|
|
140
|
+
layers?: LayerState | undefined;
|
|
141
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
142
|
+
}) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[]) => ReduxLayer[], {
|
|
143
|
+
clearCache: () => void;
|
|
144
|
+
}> & {
|
|
145
|
+
clearCache: () => void;
|
|
146
|
+
};
|
|
147
|
+
/**
|
|
148
|
+
* Gets dimensions of the passed layer
|
|
149
|
+
*
|
|
150
|
+
* Example: layerDimensions = getLayerDimensions(store, 'layerId_1')
|
|
151
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
152
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
153
|
+
* @returns {array} returnType: Dimension[] - array containing layer dimensions
|
|
154
|
+
*/
|
|
155
|
+
export declare const getLayerDimensions: ((state: {
|
|
156
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
157
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
158
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
159
|
+
services?: import("../types").ServiceState | undefined;
|
|
160
|
+
layers?: LayerState | undefined;
|
|
161
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
162
|
+
}, params_0?: string | undefined) => Dimension[]) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => Dimension[], {
|
|
163
|
+
clearCache: () => void;
|
|
164
|
+
}> & {
|
|
165
|
+
clearCache: () => void;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Gets dimensions of the passed layer, excluding the time dimension
|
|
169
|
+
*
|
|
170
|
+
* Example: layerNonTimeDimensions = getLayerNonTimeDimensions(store, 'layerId_1')
|
|
171
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
172
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
173
|
+
* @returns {array} returnType: Dimension[] - array containing layer dimensions, excluding the time dimension
|
|
174
|
+
*/
|
|
175
|
+
export declare const getLayerNonTimeDimensions: ((state: {
|
|
176
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
177
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
178
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
179
|
+
services?: import("../types").ServiceState | undefined;
|
|
180
|
+
layers?: LayerState | undefined;
|
|
181
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
182
|
+
}, params_0?: string | undefined) => Dimension[]) & import("reselect").OutputSelectorFields<(args_0: Dimension[]) => Dimension[], {
|
|
183
|
+
clearCache: () => void;
|
|
184
|
+
}> & {
|
|
185
|
+
clearCache: () => void;
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Gets time dimension of the passed layer
|
|
189
|
+
*
|
|
190
|
+
* Example: timeDimension = getLayerTimeDimension(store, 'layerId_1')
|
|
191
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
192
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
193
|
+
* @returns {object} returnType: object - object of layer time dimension
|
|
194
|
+
*/
|
|
195
|
+
export declare const getLayerTimeDimension: ((state: {
|
|
196
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
197
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
198
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
199
|
+
services?: import("../types").ServiceState | undefined;
|
|
200
|
+
layers?: LayerState | undefined;
|
|
201
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
202
|
+
}, params_0?: string | undefined) => Dimension | undefined) & import("reselect").OutputSelectorFields<(args_0: Dimension[]) => Dimension | undefined, {
|
|
203
|
+
clearCache: () => void;
|
|
204
|
+
}> & {
|
|
205
|
+
clearCache: () => void;
|
|
206
|
+
};
|
|
207
|
+
export declare const getLayerCurrentTime: ((state: {
|
|
208
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
209
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
210
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
211
|
+
services?: import("../types").ServiceState | undefined;
|
|
212
|
+
layers?: LayerState | undefined;
|
|
213
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
214
|
+
}, params_0?: string | undefined) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: Dimension | undefined) => string | undefined, {
|
|
215
|
+
clearCache: () => void;
|
|
216
|
+
}> & {
|
|
217
|
+
clearCache: () => void;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* Gets specified dimension of the passed layer
|
|
221
|
+
*
|
|
222
|
+
* Example: dimension = getLayerDimension(store, 'layerId_1', 'elevation')
|
|
223
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
224
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
225
|
+
* @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
|
|
226
|
+
* @returns {object} returnType: object - object of layer dimension
|
|
227
|
+
*/
|
|
228
|
+
export declare const getLayerDimension: ((state: {
|
|
229
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
230
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
231
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
232
|
+
services?: import("../types").ServiceState | undefined;
|
|
233
|
+
layers?: LayerState | undefined;
|
|
234
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
235
|
+
}, params_0: string, params_1: string) => Dimension) & import("reselect").OutputSelectorFields<(args_0: Dimension[], args_1: string) => Dimension, {
|
|
236
|
+
clearCache: () => void;
|
|
237
|
+
}> & {
|
|
238
|
+
clearCache: () => void;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Gets opacity of the passed layer
|
|
242
|
+
*
|
|
243
|
+
* Example: layerOpacity = getLayerOpacity(store, 'layerId_1')
|
|
244
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
245
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
246
|
+
* @returns {number} returnType: number - opacity as a number (between 0 and 1)
|
|
247
|
+
*/
|
|
248
|
+
export declare const getLayerOpacity: ((state: {
|
|
249
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
250
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
251
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
252
|
+
services?: import("../types").ServiceState | undefined;
|
|
253
|
+
layers?: LayerState | undefined;
|
|
254
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
255
|
+
}, params_0?: string | undefined) => number) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => number, {
|
|
256
|
+
clearCache: () => void;
|
|
257
|
+
}> & {
|
|
258
|
+
clearCache: () => void;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Gets whether a layer is enabled or disabled
|
|
262
|
+
*
|
|
263
|
+
* Example: isLayerEnabled = getLayerEnabled(store, 'layerId_1')
|
|
264
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
265
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
266
|
+
* @returns {boolean} returnType: boolean - true if enabled, false if disabled
|
|
267
|
+
*/
|
|
268
|
+
export declare const getLayerEnabled: ((state: {
|
|
269
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
270
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
271
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
272
|
+
services?: import("../types").ServiceState | undefined;
|
|
273
|
+
layers?: LayerState | undefined;
|
|
274
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
275
|
+
}, params_0?: string | undefined) => boolean) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => boolean, {
|
|
276
|
+
clearCache: () => void;
|
|
277
|
+
}> & {
|
|
278
|
+
clearCache: () => void;
|
|
279
|
+
};
|
|
280
|
+
/**
|
|
281
|
+
* Gets layer name
|
|
282
|
+
*
|
|
283
|
+
* Example: layerName = getLayerName(store, 'layerId_1')
|
|
284
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
285
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
286
|
+
* @returns {string} returnType: string - layer name
|
|
287
|
+
*/
|
|
288
|
+
export declare const getLayerName: ((state: {
|
|
289
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
290
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
291
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
292
|
+
services?: import("../types").ServiceState | undefined;
|
|
293
|
+
layers?: LayerState | undefined;
|
|
294
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
295
|
+
}, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => string, {
|
|
296
|
+
clearCache: () => void;
|
|
297
|
+
}> & {
|
|
298
|
+
clearCache: () => void;
|
|
299
|
+
};
|
|
300
|
+
/**
|
|
301
|
+
* Gets layer service
|
|
302
|
+
*
|
|
303
|
+
* Example: layerService = getLayerService(store, 'layerId_1')
|
|
304
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
305
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
306
|
+
* @returns {string} returnType: string - layer service
|
|
307
|
+
*/
|
|
308
|
+
export declare const getLayerService: ((state: {
|
|
309
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
310
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
311
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
312
|
+
services?: import("../types").ServiceState | undefined;
|
|
313
|
+
layers?: LayerState | undefined;
|
|
314
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
315
|
+
}, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => string, {
|
|
316
|
+
clearCache: () => void;
|
|
317
|
+
}> & {
|
|
318
|
+
clearCache: () => void;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Gets selected style of the passed layer
|
|
322
|
+
*
|
|
323
|
+
* Example: layerStyle = getLayerStyle(store, 'layerId_1')
|
|
324
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
325
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
326
|
+
* @returns {string} returnType: string - style that is currently selected
|
|
327
|
+
*/
|
|
328
|
+
export declare const getLayerStyle: ((state: {
|
|
329
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
330
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
331
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
332
|
+
services?: import("../types").ServiceState | undefined;
|
|
333
|
+
layers?: LayerState | undefined;
|
|
334
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
335
|
+
}, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => string, {
|
|
336
|
+
clearCache: () => void;
|
|
337
|
+
}> & {
|
|
338
|
+
clearCache: () => void;
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* Gets layer status
|
|
342
|
+
*
|
|
343
|
+
* Example: layerService = getLayerStatus(store, 'layerId_1')
|
|
344
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
345
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
346
|
+
* @returns {string} returnType: LayerStatus
|
|
347
|
+
*/
|
|
348
|
+
export declare const getLayerStatus: ((state: {
|
|
349
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
350
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
351
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
352
|
+
services?: import("../types").ServiceState | undefined;
|
|
353
|
+
layers?: LayerState | undefined;
|
|
354
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
355
|
+
}, params_0?: string | undefined) => LayerStatus) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => LayerStatus, {
|
|
356
|
+
clearCache: () => void;
|
|
357
|
+
}> & {
|
|
358
|
+
clearCache: () => void;
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Gets all available base layers for a map
|
|
362
|
+
*
|
|
363
|
+
* Example: availableBaseLayers = getAvailableBaseLayersForMap(store)
|
|
364
|
+
* @param {object} store store: object - object from which the layer state will be extracted
|
|
365
|
+
* @param {string} mapId mapId: string - Id of the map we want to retrieve the available baselayers for
|
|
366
|
+
* @returns {array} returnType: array - array containing all available base layers
|
|
367
|
+
*/
|
|
368
|
+
export declare const getAvailableBaseLayersForMap: ((state: {
|
|
369
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
370
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
371
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
372
|
+
services?: import("../types").ServiceState | undefined;
|
|
373
|
+
layers?: LayerState | undefined;
|
|
374
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
375
|
+
}, params_0: string) => Layer[]) & import("reselect").OutputSelectorFields<(args_0: LayerState | undefined, args_1: string) => Layer[], {
|
|
376
|
+
clearCache: () => void;
|
|
377
|
+
}> & {
|
|
378
|
+
clearCache: () => void;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Returns the selected geojson feature for the given layer
|
|
382
|
+
*
|
|
383
|
+
* Example const selectedFeature = getSelectedFeature(store, 'layerId1')
|
|
384
|
+
* @param {object} store store: object - store object
|
|
385
|
+
* @param {string} mapId layerId: string - Id of the layer
|
|
386
|
+
* @returns {number} selectedFeatureIndex: the index of the selected geojson feature
|
|
387
|
+
*/
|
|
388
|
+
export declare const getSelectedFeatureIndex: ((state: {
|
|
389
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
390
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
391
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
392
|
+
services?: import("../types").ServiceState | undefined;
|
|
393
|
+
layers?: LayerState | undefined;
|
|
394
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
395
|
+
}, params_0?: string | undefined) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => number | undefined, {
|
|
396
|
+
clearCache: () => void;
|
|
397
|
+
}> & {
|
|
398
|
+
clearCache: () => void;
|
|
399
|
+
};
|
|
400
|
+
/**
|
|
401
|
+
* Gets layerIds that contain passed dimension
|
|
402
|
+
*
|
|
403
|
+
* Example: dimension = getDimensionLayerIds(store, 'elevation')
|
|
404
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
405
|
+
* @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
|
|
406
|
+
* @returns {string[]} returnType: string[] - layerIds
|
|
407
|
+
*/
|
|
408
|
+
export declare const getDimensionLayerIds: ((state: {
|
|
409
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
410
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
411
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
412
|
+
services?: import("../types").ServiceState | undefined;
|
|
413
|
+
layers?: LayerState | undefined;
|
|
414
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
415
|
+
}, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: Record<string, ReduxLayer> | null, args_2: string) => string[], {
|
|
416
|
+
clearCache: () => void;
|
|
417
|
+
}> & {
|
|
418
|
+
clearCache: () => void;
|
|
419
|
+
};
|
|
420
|
+
export declare const getAcceptanceTimeInMinutes: ((state: {
|
|
421
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
422
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
423
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
424
|
+
services?: import("../types").ServiceState | undefined;
|
|
425
|
+
layers?: LayerState | undefined;
|
|
426
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
427
|
+
}, params_0?: string | undefined) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => number | undefined, {
|
|
428
|
+
clearCache: () => void;
|
|
429
|
+
}> & {
|
|
430
|
+
clearCache: () => void;
|
|
431
|
+
};
|
|
432
|
+
export declare const getLayerIsInsideAcceptanceTime: ((state: {
|
|
433
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
434
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
435
|
+
webmap?: import("../types").WebMapState | undefined;
|
|
436
|
+
services?: import("../types").ServiceState | undefined;
|
|
437
|
+
layers?: LayerState | undefined;
|
|
438
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
439
|
+
}, params_0: string | undefined, params_1: string) => "equal" | "outside" | "inside") & import("reselect").OutputSelectorFields<(args_0: number | undefined, args_1: string | undefined, args_2: string | undefined) => "equal" | "outside" | "inside", {
|
|
440
|
+
clearCache: () => void;
|
|
441
|
+
}> & {
|
|
442
|
+
clearCache: () => void;
|
|
443
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { Action } from '@reduxjs/toolkit';
|
|
2
|
+
import { FeatureCollection } from 'geojson';
|
|
3
|
+
import type { Dimension, UpdateAllMapDimensionsPayload } from '../map/types';
|
|
4
|
+
import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
|
|
5
|
+
export declare enum LayerType {
|
|
6
|
+
mapLayer = "mapLayer",
|
|
7
|
+
baseLayer = "baseLayer",
|
|
8
|
+
overLayer = "overLayer"
|
|
9
|
+
}
|
|
10
|
+
export declare enum LayerStatus {
|
|
11
|
+
default = "default",
|
|
12
|
+
error = "error"
|
|
13
|
+
}
|
|
14
|
+
export declare enum LayerActionOrigin {
|
|
15
|
+
layerManager = "layerManager",
|
|
16
|
+
wmsLoader = "WMSLayerTreeConnect",
|
|
17
|
+
ReactMapViewParseLayer = "ReactMapViewParseLayer",
|
|
18
|
+
setLayerDimensionSaga = "setLayerDimensionSaga",
|
|
19
|
+
toggleAutoUpdateSaga = "toggleAutoUpdateSaga",
|
|
20
|
+
unregisterMapSaga = "unregisterMapSaga"
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* ReduxLayer is used to reflect the shape of the layer in the redux layers store.
|
|
24
|
+
* It is a subset of Layer since some properties like the styles list now come from the service store.
|
|
25
|
+
*/
|
|
26
|
+
export interface ReduxLayer {
|
|
27
|
+
id?: string;
|
|
28
|
+
mapId?: string;
|
|
29
|
+
service?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
title?: string;
|
|
32
|
+
enabled?: boolean;
|
|
33
|
+
style?: string;
|
|
34
|
+
dimensions?: Dimension[];
|
|
35
|
+
opacity?: number;
|
|
36
|
+
type?: string;
|
|
37
|
+
layerType?: LayerType;
|
|
38
|
+
status?: LayerStatus;
|
|
39
|
+
format?: string;
|
|
40
|
+
geojson?: FeatureCollection;
|
|
41
|
+
selectedFeatureIndex?: number;
|
|
42
|
+
acceptanceTimeInMinutes?: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Layer is used to define a layer with all its possible properties.
|
|
46
|
+
*/
|
|
47
|
+
export interface Layer extends ReduxLayer {
|
|
48
|
+
headers?: Headers[];
|
|
49
|
+
}
|
|
50
|
+
export interface AvailableBaseLayersType {
|
|
51
|
+
byId: Record<string, ReduxLayer>;
|
|
52
|
+
allIds: string[];
|
|
53
|
+
}
|
|
54
|
+
export interface LayerState {
|
|
55
|
+
byId: Record<string, ReduxLayer>;
|
|
56
|
+
allIds: string[];
|
|
57
|
+
availableBaseLayers: AvailableBaseLayersType;
|
|
58
|
+
}
|
|
59
|
+
export interface LayerPayload {
|
|
60
|
+
layerId: string;
|
|
61
|
+
origin?: string;
|
|
62
|
+
}
|
|
63
|
+
export interface SetLayersPayload {
|
|
64
|
+
mapId: string;
|
|
65
|
+
layers: ReduxLayer[];
|
|
66
|
+
origin?: string;
|
|
67
|
+
}
|
|
68
|
+
export interface SetBaseLayersPayload {
|
|
69
|
+
mapId: string;
|
|
70
|
+
layers: ReduxLayer[];
|
|
71
|
+
origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
|
|
72
|
+
}
|
|
73
|
+
export interface SetLayerDimensionsPayload extends LayerPayload {
|
|
74
|
+
origin: string;
|
|
75
|
+
dimensions: Dimension[];
|
|
76
|
+
}
|
|
77
|
+
export interface SetLayerOpacityPayload extends LayerPayload {
|
|
78
|
+
opacity: number;
|
|
79
|
+
mapId?: string;
|
|
80
|
+
origin?: LayerActionOrigin;
|
|
81
|
+
}
|
|
82
|
+
export interface SetLayerNamePayload extends LayerPayload {
|
|
83
|
+
name: string;
|
|
84
|
+
mapId?: string;
|
|
85
|
+
origin?: LayerActionOrigin;
|
|
86
|
+
}
|
|
87
|
+
export interface SetLayerEnabledPayload extends LayerPayload {
|
|
88
|
+
enabled: boolean;
|
|
89
|
+
mapId?: string;
|
|
90
|
+
origin?: LayerActionOrigin;
|
|
91
|
+
}
|
|
92
|
+
export interface SetLayerDimensionPayload extends LayerPayload {
|
|
93
|
+
dimension: Dimension;
|
|
94
|
+
service?: string;
|
|
95
|
+
origin?: LayerActionOrigin;
|
|
96
|
+
mapId?: string;
|
|
97
|
+
}
|
|
98
|
+
export interface SetLayerStylePayload extends LayerPayload {
|
|
99
|
+
style: string;
|
|
100
|
+
mapId?: string;
|
|
101
|
+
origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
|
|
102
|
+
}
|
|
103
|
+
export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
104
|
+
geojson: FeatureCollection;
|
|
105
|
+
}
|
|
106
|
+
export interface DeleteLayerPayload extends LayerPayload {
|
|
107
|
+
mapId: string;
|
|
108
|
+
layerIndex: number;
|
|
109
|
+
origin?: LayerActionOrigin | SyncGroupActionOrigin.delete;
|
|
110
|
+
}
|
|
111
|
+
export interface AddLayerPayload {
|
|
112
|
+
mapId: string;
|
|
113
|
+
layerId: string;
|
|
114
|
+
layer: Layer;
|
|
115
|
+
origin: string;
|
|
116
|
+
}
|
|
117
|
+
export interface AddBaseLayerPayload {
|
|
118
|
+
mapId: string;
|
|
119
|
+
layerId: string;
|
|
120
|
+
layer: Layer;
|
|
121
|
+
origin?: string;
|
|
122
|
+
}
|
|
123
|
+
export interface AddAvailableBaseLayerPayload {
|
|
124
|
+
layer: Layer;
|
|
125
|
+
origin?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface AddAvailableBaseLayersPayload {
|
|
128
|
+
layers: ReduxLayer[];
|
|
129
|
+
origin?: string;
|
|
130
|
+
}
|
|
131
|
+
export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPayload {
|
|
132
|
+
mapId: string;
|
|
133
|
+
}
|
|
134
|
+
export interface ErrorLayerPayload extends LayerPayload {
|
|
135
|
+
error: Error;
|
|
136
|
+
}
|
|
137
|
+
export interface UpdateLayerInfoPayload {
|
|
138
|
+
origin: string;
|
|
139
|
+
mapDimensions?: UpdateAllMapDimensionsPayload;
|
|
140
|
+
layerStyle?: SetLayerStylePayload;
|
|
141
|
+
layerDimensions?: SetLayerDimensionsPayload;
|
|
142
|
+
}
|
|
143
|
+
export interface UpdateLayerInfo extends Action {
|
|
144
|
+
type: `layerReducer/onUpdateLayerInformation`;
|
|
145
|
+
payload: UpdateLayerInfoPayload;
|
|
146
|
+
}
|
|
147
|
+
export interface SetSelectedFeaturePayload extends LayerPayload {
|
|
148
|
+
selectedFeatureIndex: number;
|
|
149
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Draft } from '@reduxjs/toolkit';
|
|
2
|
+
import { WMJSDimension } from '@opengeoweb/webmap';
|
|
3
|
+
import type { Dimension } from '../types';
|
|
4
|
+
import type { LayerState } from './types';
|
|
5
|
+
export declare const isActionLayerSynced: (state: LayerState, layerIdFromAction: string, dimension: Dimension) => boolean;
|
|
6
|
+
export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wmjsDimension: WMJSDimension, newDimension: Dimension) => Dimension;
|
|
7
|
+
/**
|
|
8
|
+
* For the given dimension, it creates a new draft state for all other (linked or synced) layers inside the map.
|
|
9
|
+
* @param draft
|
|
10
|
+
* @param dimension
|
|
11
|
+
* @param mapId
|
|
12
|
+
*/
|
|
13
|
+
export declare const produceDraftStateForAllLayersForDimensionWithinMap: (draft: Draft<LayerState>, dimension: Dimension, mapId: string, layerIdFromAction: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Returns the list of dimensions without the time dimension
|
|
16
|
+
* @param dimensions Dimension[]
|
|
17
|
+
*/
|
|
18
|
+
export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimension[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SetMapDimensionPayload, SetMapPresetPayload } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* These actions causes circular dependency if they are defined in the reducer.ts file.
|
|
4
|
+
* Therefor they are instead added to this file
|
|
5
|
+
* https://redux-toolkit.js.org/usage/usage-guide#exporting-and-using-slices
|
|
6
|
+
*/
|
|
7
|
+
export declare const mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetMapDimensionPayload, string>;
|
|
8
|
+
export declare const setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetMapPresetPayload, string>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const defaultAnimationDelayAtStart = 250;
|
|
2
|
+
export declare const defaultDelay = 1000;
|
|
3
|
+
export declare const defaultTimeStep = 60;
|
|
4
|
+
export declare const defaultSecondsPerPx = 80;
|
|
5
|
+
export declare const defaultTimeSpan: number;
|
|
6
|
+
export declare const IS_LEGEND_OPEN_BY_DEFAULT = false;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LayerType } from '../types';
|
|
2
|
+
export declare const baseLayerGrey: {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
type: string;
|
|
6
|
+
layerType: LayerType;
|
|
7
|
+
};
|
|
8
|
+
export declare const overLayer: {
|
|
9
|
+
service: string;
|
|
10
|
+
name: string;
|
|
11
|
+
format: string;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
id: string;
|
|
14
|
+
layerType: LayerType;
|
|
15
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum Scale {
|
|
2
|
+
Minutes5 = 0,
|
|
3
|
+
Hour = 1,
|
|
4
|
+
Hours3 = 2,
|
|
5
|
+
Hours6 = 3,
|
|
6
|
+
Day = 4,
|
|
7
|
+
Week = 5,
|
|
8
|
+
Month = 6,
|
|
9
|
+
Year = 7
|
|
10
|
+
}
|
|
11
|
+
export declare enum AnimationLength {
|
|
12
|
+
Minutes15 = 15,
|
|
13
|
+
Minutes30 = 30,
|
|
14
|
+
Hours1 = 60,
|
|
15
|
+
Hours2 = 120,
|
|
16
|
+
Hours3 = 180,
|
|
17
|
+
Hours6 = 360,
|
|
18
|
+
Hours12 = 720,
|
|
19
|
+
Hours24 = 1440
|
|
20
|
+
}
|
|
21
|
+
export declare enum MapActionOrigin {
|
|
22
|
+
map = "map"
|
|
23
|
+
}
|