@opengeoweb/core 2.8.0 → 2.9.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/index.esm.js +5160 -5830
- package/index.umd.js +21813 -22405
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +3 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
- package/lib/components/Legend/LegendConnect.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +2 -1
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +2 -2
- package/lib/components/SyncGroups/selector.d.ts +0 -1
- package/lib/index.d.ts +1 -1
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +2 -0
- package/lib/store/generic/sagas.d.ts +7 -6
- package/lib/store/generic/selectors.d.ts +0 -1
- package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
- package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
- package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
- package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
- package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -38
- package/lib/store/generic/types.d.ts +0 -11
- package/lib/store/layerSelect/selectors.d.ts +0 -6
- package/lib/store/layerSelect/types.d.ts +7 -4
- package/lib/store/mapStore/actions.d.ts +1 -1
- package/lib/store/mapStore/constants.d.ts +0 -1
- package/lib/store/mapStore/layers/reducer.d.ts +2 -2
- package/lib/store/mapStore/layers/selectors.d.ts +0 -17
- package/lib/store/mapStore/map/reducer.d.ts +12 -4
- package/lib/store/mapStore/map/sagas.d.ts +5 -5
- package/lib/store/mapStore/map/selectors.d.ts +0 -37
- package/lib/store/mapStore/map/types.d.ts +1 -113
- package/lib/store/mapStore/service/selectors.d.ts +0 -7
- package/lib/store/mapStore/service/types.d.ts +2 -0
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/selectors.d.ts +3 -8
- package/lib/store/ui/types.d.ts +3 -1
- package/lib/types/types.d.ts +1 -2
- package/lib/utils/jsonPresetFilter.d.ts +4 -0
- package/package.json +7 -6
- package/lib/store/advancedLayerStore/actions.d.ts +0 -15
- package/lib/store/advancedLayerStore/config.d.ts +0 -4
- package/lib/store/advancedLayerStore/constants.d.ts +0 -2
- package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
- package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
- package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/types.d.ts +0 -30
- package/lib/store/generic/constants.d.ts +0 -2
- package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
- package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
- package/lib/store/mapStore/map/actions.d.ts +0 -172
- package/lib/store/mapStore/map/constants.d.ts +0 -26
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import {
|
|
3
|
-
import type { Layer } from '../layers/types';
|
|
4
|
-
import { WEBMAP_LAYER_MOVE, WEBMAP_SET_BBOX, WEBMAP_MAP_UPDATE_ALL_DIMENSIONS, WEBMAP_MAP_CHANGE_DIMENSION, WEBMAP_START_ANIMATION, WEBMAP_STOP_ANIMATION, WEBMAP_REGISTER_MAP, WEBMAP_UNREGISTER_MAP, WEBMAP_SET_ACTIVELAYERID, WEBMAP_TOGGLE_AUTO_UPDATE, WEBMAP_TOGGLE_LOOP, WEBMAP_SET_TIME_SLIDER_SCALE, WEBMAP_SET_TIME_STEP, WEBMAP_SET_ANIMATION_DELAY, WEBMAP_SET_ANIMATION_START_TIME, WEBMAP_SET_ANIMATION_END_TIME, WEBMAP_TOGGLE_TIMESTEP_AUTO, WEBMAP_TOGGLE_TIME_SLIDER_HOVER, WEBMAP_SET_TIME_SLIDER_CENTER_TIME, WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX, WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX, WEBMAP_SET_PIN, WEBMAP_DISABLE_PIN, WEBMAP_SET_SELECTED_FEATURE_INDEX, WEBMAP_SET_MAPPRESET, WEBMAP_SET_ACTIVE_MAPPRESET_ID } from './constants';
|
|
2
|
+
import type { Layer } from '../types';
|
|
5
3
|
export interface Dimension {
|
|
6
4
|
name?: string;
|
|
7
5
|
units?: string;
|
|
@@ -75,7 +73,6 @@ export interface AnimationPayloadType {
|
|
|
75
73
|
export interface MapPreset {
|
|
76
74
|
layers?: Layer[];
|
|
77
75
|
overLayers?: Layer[];
|
|
78
|
-
baseLayer?: Layer;
|
|
79
76
|
activeLayerId?: string;
|
|
80
77
|
proj?: {
|
|
81
78
|
bbox: Bbox;
|
|
@@ -94,28 +91,12 @@ export interface MapPresetInitialProps {
|
|
|
94
91
|
mapPreset: MapPreset;
|
|
95
92
|
syncGroupsIds?: string[];
|
|
96
93
|
}
|
|
97
|
-
export interface RegisterMap extends Action {
|
|
98
|
-
type: typeof WEBMAP_REGISTER_MAP;
|
|
99
|
-
payload: {
|
|
100
|
-
mapId: string;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export interface UnregisterMap extends Action {
|
|
104
|
-
type: typeof WEBMAP_UNREGISTER_MAP;
|
|
105
|
-
payload: {
|
|
106
|
-
mapId: string;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
94
|
export interface MoveLayerPayload {
|
|
110
95
|
mapId: string;
|
|
111
96
|
oldIndex: number;
|
|
112
97
|
newIndex: number;
|
|
113
98
|
origin: string;
|
|
114
99
|
}
|
|
115
|
-
export interface MoveLayer extends Action {
|
|
116
|
-
type: typeof WEBMAP_LAYER_MOVE;
|
|
117
|
-
payload: MoveLayerPayload;
|
|
118
|
-
}
|
|
119
100
|
export interface SetBboxPayload {
|
|
120
101
|
mapId: string;
|
|
121
102
|
bbox: Bbox;
|
|
@@ -126,19 +107,11 @@ export interface SetMapDimensionPayload {
|
|
|
126
107
|
mapId: string;
|
|
127
108
|
dimension: Dimension;
|
|
128
109
|
}
|
|
129
|
-
export interface SetMapDimension extends Action {
|
|
130
|
-
type: typeof WEBMAP_MAP_CHANGE_DIMENSION;
|
|
131
|
-
payload: SetMapDimensionPayload;
|
|
132
|
-
}
|
|
133
110
|
export interface UpdateAllMapDimensionsPayload {
|
|
134
111
|
origin: string;
|
|
135
112
|
mapId: string;
|
|
136
113
|
dimensions: Dimension[];
|
|
137
114
|
}
|
|
138
|
-
export interface UpdateAllMapDimensions extends Action {
|
|
139
|
-
type: typeof WEBMAP_MAP_UPDATE_ALL_DIMENSIONS;
|
|
140
|
-
payload: UpdateAllMapDimensionsPayload;
|
|
141
|
-
}
|
|
142
115
|
export declare type TimeListType = {
|
|
143
116
|
name: string;
|
|
144
117
|
value: string;
|
|
@@ -150,25 +123,9 @@ export interface SetMapAnimationStartPayload {
|
|
|
150
123
|
interval?: number;
|
|
151
124
|
timeList?: TimeListType[];
|
|
152
125
|
}
|
|
153
|
-
export interface SetMapAnimationStart extends Action {
|
|
154
|
-
type: typeof WEBMAP_START_ANIMATION;
|
|
155
|
-
payload: SetMapAnimationStartPayload;
|
|
156
|
-
}
|
|
157
126
|
export interface SetMapAnimationStopPayload {
|
|
158
127
|
mapId: string;
|
|
159
128
|
}
|
|
160
|
-
export interface SetMapAnimationStop extends Action {
|
|
161
|
-
type: typeof WEBMAP_STOP_ANIMATION;
|
|
162
|
-
payload: SetMapAnimationStopPayload;
|
|
163
|
-
}
|
|
164
|
-
export interface SetBbox extends Action {
|
|
165
|
-
type: typeof WEBMAP_SET_BBOX;
|
|
166
|
-
payload: SetBboxPayload;
|
|
167
|
-
}
|
|
168
|
-
export interface SetActiveLayerId extends Action {
|
|
169
|
-
type: typeof WEBMAP_SET_ACTIVELAYERID;
|
|
170
|
-
payload: SetActiveLayerIdPayload;
|
|
171
|
-
}
|
|
172
129
|
export interface SetActiveLayerIdPayload {
|
|
173
130
|
mapId: string;
|
|
174
131
|
layerId: string;
|
|
@@ -181,26 +138,10 @@ export interface ToggleLoopPayload {
|
|
|
181
138
|
mapId: string;
|
|
182
139
|
shouldLoop: boolean;
|
|
183
140
|
}
|
|
184
|
-
export interface ToggleAutoUpdate extends Action {
|
|
185
|
-
type: typeof WEBMAP_TOGGLE_AUTO_UPDATE;
|
|
186
|
-
payload: ToggleAutoUpdatePayload;
|
|
187
|
-
}
|
|
188
|
-
export interface ToggleLoop extends Action {
|
|
189
|
-
type: typeof WEBMAP_TOGGLE_LOOP;
|
|
190
|
-
payload: ToggleLoopPayload;
|
|
191
|
-
}
|
|
192
|
-
export interface SetTimeSliderScale extends Action {
|
|
193
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_SCALE;
|
|
194
|
-
payload: SetTimeSliderScalePayload;
|
|
195
|
-
}
|
|
196
141
|
export interface SetTimeSliderScalePayload {
|
|
197
142
|
mapId: string;
|
|
198
143
|
timeSliderScale: Scale;
|
|
199
144
|
}
|
|
200
|
-
export interface SetTimeStep extends Action {
|
|
201
|
-
type: typeof WEBMAP_SET_TIME_STEP;
|
|
202
|
-
payload: SetTimeStepPayload;
|
|
203
|
-
}
|
|
204
145
|
export interface SetTimeStepPayload {
|
|
205
146
|
mapId: string;
|
|
206
147
|
timeStep: number;
|
|
@@ -209,22 +150,10 @@ export interface SetAnimationDelayPayload {
|
|
|
209
150
|
mapId: string;
|
|
210
151
|
animationDelay: number;
|
|
211
152
|
}
|
|
212
|
-
export interface SetAnimationDelay extends Action {
|
|
213
|
-
type: typeof WEBMAP_SET_ANIMATION_DELAY;
|
|
214
|
-
payload: SetAnimationDelayPayload;
|
|
215
|
-
}
|
|
216
|
-
export interface SetAnimationStartTime extends Action {
|
|
217
|
-
type: typeof WEBMAP_SET_ANIMATION_START_TIME;
|
|
218
|
-
payload: SetAnimationStartTimePayload;
|
|
219
|
-
}
|
|
220
153
|
export interface SetAnimationStartTimePayload {
|
|
221
154
|
mapId: string;
|
|
222
155
|
animationStartTime: string;
|
|
223
156
|
}
|
|
224
|
-
export interface SetAnimationEndTime extends Action {
|
|
225
|
-
type: typeof WEBMAP_SET_ANIMATION_END_TIME;
|
|
226
|
-
payload: SetAnimationEndTimePayload;
|
|
227
|
-
}
|
|
228
157
|
export interface SetAnimationEndTimePayload {
|
|
229
158
|
mapId: string;
|
|
230
159
|
animationEndTime: string;
|
|
@@ -233,62 +162,30 @@ export interface ToggleTimestepAutoPayload {
|
|
|
233
162
|
mapId: string;
|
|
234
163
|
timestepAuto: boolean;
|
|
235
164
|
}
|
|
236
|
-
export interface ToggleTimestepAuto extends Action {
|
|
237
|
-
type: typeof WEBMAP_TOGGLE_TIMESTEP_AUTO;
|
|
238
|
-
payload: ToggleTimestepAutoPayload;
|
|
239
|
-
}
|
|
240
165
|
export interface ToggleTimeSliderHoverPayload {
|
|
241
166
|
mapId: string;
|
|
242
167
|
isTimeSliderHoverOn: boolean;
|
|
243
168
|
}
|
|
244
|
-
export interface ToggleTimeSliderHover extends Action {
|
|
245
|
-
type: typeof WEBMAP_TOGGLE_TIME_SLIDER_HOVER;
|
|
246
|
-
payload: ToggleTimeSliderHoverPayload;
|
|
247
|
-
}
|
|
248
|
-
export interface SetTimeSliderCenterTime extends Action {
|
|
249
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_CENTER_TIME;
|
|
250
|
-
payload: SetTimeSliderCenterTimePayload;
|
|
251
|
-
}
|
|
252
169
|
export interface SetTimeSliderCenterTimePayload {
|
|
253
170
|
mapId: string;
|
|
254
171
|
timeSliderCenterTime: number;
|
|
255
172
|
}
|
|
256
|
-
export interface SetTimeSliderSecondsPerPx extends Action {
|
|
257
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX;
|
|
258
|
-
payload: SetTimeSliderSecondsPerPxPayload;
|
|
259
|
-
}
|
|
260
173
|
export interface SetTimeSliderSecondsPerPxPayload {
|
|
261
174
|
mapId: string;
|
|
262
175
|
timeSliderSecondsPerPx: number;
|
|
263
176
|
}
|
|
264
|
-
export interface SetTimeSliderDataScaleToSecondsPerPx extends Action {
|
|
265
|
-
type: typeof WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX;
|
|
266
|
-
payload: SetTimeSliderDataScaleToSecondsPerPxPayload;
|
|
267
|
-
}
|
|
268
177
|
export interface SetTimeSliderDataScaleToSecondsPerPxPayload {
|
|
269
178
|
mapId: string;
|
|
270
179
|
timeSliderDataScaleToSecondsPerPx: number;
|
|
271
180
|
}
|
|
272
|
-
export interface SetMapPinLocation extends Action {
|
|
273
|
-
type: typeof WEBMAP_SET_PIN;
|
|
274
|
-
payload: MapPinLocationPayload;
|
|
275
|
-
}
|
|
276
181
|
export interface MapPinLocationPayload {
|
|
277
182
|
mapId: string;
|
|
278
183
|
mapPinLocation: MapLocation;
|
|
279
184
|
}
|
|
280
|
-
export interface SetDisableMapPin extends Action {
|
|
281
|
-
type: typeof WEBMAP_DISABLE_PIN;
|
|
282
|
-
payload: DisableMapPinPayload;
|
|
283
|
-
}
|
|
284
185
|
export interface DisableMapPinPayload {
|
|
285
186
|
mapId: string;
|
|
286
187
|
disableMapPin: boolean;
|
|
287
188
|
}
|
|
288
|
-
export interface SetSelectedFeature {
|
|
289
|
-
type: typeof WEBMAP_SET_SELECTED_FEATURE_INDEX;
|
|
290
|
-
payload: SetSelectedFeaturePayload;
|
|
291
|
-
}
|
|
292
189
|
export interface SetSelectedFeaturePayload {
|
|
293
190
|
mapId: string;
|
|
294
191
|
selectedFeatureIndex: number;
|
|
@@ -297,16 +194,7 @@ export interface SetMapPresetPayload {
|
|
|
297
194
|
mapId: string;
|
|
298
195
|
initialProps: MapPresetInitialProps;
|
|
299
196
|
}
|
|
300
|
-
export interface SetMapPreset extends Action {
|
|
301
|
-
type: typeof WEBMAP_SET_MAPPRESET;
|
|
302
|
-
payload: SetMapPresetPayload;
|
|
303
|
-
}
|
|
304
197
|
export interface SetActiveMapPresetPayload {
|
|
305
198
|
mapId: string;
|
|
306
199
|
presetId: string;
|
|
307
200
|
}
|
|
308
|
-
export interface SetActiveMapPresetId extends Action {
|
|
309
|
-
type: typeof WEBMAP_SET_ACTIVE_MAPPRESET_ID;
|
|
310
|
-
payload: SetActiveMapPresetPayload;
|
|
311
|
-
}
|
|
312
|
-
export declare type MapActions = RegisterMap | UnregisterMap | SetMapDimension | UpdateAllMapDimensions | SetMapAnimationStart | SetMapAnimationStop | SetBbox | MoveLayer | SetActiveLayerId | ToggleAutoUpdate | ToggleLoop | SetTimeStep | SetTimeSliderScale | SetAnimationDelay | SetAnimationStartTime | SetAnimationEndTime | ToggleTimestepAuto | ToggleTimeSliderHover | SetTimeSliderCenterTime | SetTimeSliderSecondsPerPx | SetTimeSliderDataScaleToSecondsPerPx | SetMapPinLocation | SetDisableMapPin | SetSelectedFeature | SetMapPreset | SetActiveMapPresetId;
|
|
@@ -8,7 +8,6 @@ import { ServiceState, ServiceLayer, ReduxService } from './types';
|
|
|
8
8
|
* @returns {array} returnType: array - an array of all serviceIds
|
|
9
9
|
*/
|
|
10
10
|
export declare const getServiceIds: ((state: {
|
|
11
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
12
11
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
13
12
|
ui?: import("../../ui/types").UIStoreType;
|
|
14
13
|
webmap?: import("../types").WebMapState;
|
|
@@ -28,7 +27,6 @@ export declare const getServiceIds: ((state: {
|
|
|
28
27
|
* @returns {object} returnType: ServiceState
|
|
29
28
|
*/
|
|
30
29
|
export declare const getServices: ((state: {
|
|
31
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
30
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
33
31
|
ui?: import("../../ui/types").UIStoreType;
|
|
34
32
|
webmap?: import("../types").WebMapState;
|
|
@@ -48,7 +46,6 @@ export declare const getServices: ((state: {
|
|
|
48
46
|
* @returns {ReduxService} returnType: Service
|
|
49
47
|
*/
|
|
50
48
|
export declare const getServiceByName: ((state: {
|
|
51
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
52
49
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
53
50
|
ui?: import("../../ui/types").UIStoreType;
|
|
54
51
|
webmap?: import("../types").WebMapState;
|
|
@@ -69,7 +66,6 @@ export declare const getServiceByName: ((state: {
|
|
|
69
66
|
* @returns {array} returnType: ServiceLayer[] - All layers within the service object.
|
|
70
67
|
*/
|
|
71
68
|
export declare const getLayersFromService: ((state: {
|
|
72
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
73
69
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
74
70
|
ui?: import("../../ui/types").UIStoreType;
|
|
75
71
|
webmap?: import("../types").WebMapState;
|
|
@@ -91,7 +87,6 @@ export declare const getLayersFromService: ((state: {
|
|
|
91
87
|
* @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
|
|
92
88
|
*/
|
|
93
89
|
export declare const getLayerFromService: ((state: {
|
|
94
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
95
90
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
96
91
|
ui?: import("../../ui/types").UIStoreType;
|
|
97
92
|
webmap?: import("../types").WebMapState;
|
|
@@ -113,7 +108,6 @@ export declare const getLayerFromService: ((state: {
|
|
|
113
108
|
* @returns {array} returnType: Style[] - array containing layer styles
|
|
114
109
|
*/
|
|
115
110
|
export declare const getLayerStyles: ((state: {
|
|
116
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
117
111
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
118
112
|
ui?: import("../../ui/types").UIStoreType;
|
|
119
113
|
webmap?: import("../types").WebMapState;
|
|
@@ -133,7 +127,6 @@ export declare const getLayerStyles: ((state: {
|
|
|
133
127
|
* @returns {array} returnType: [] - array containing services
|
|
134
128
|
*/
|
|
135
129
|
export declare const getServicesInArray: ((state: {
|
|
136
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
137
130
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
138
131
|
ui?: import("../../ui/types").UIStoreType;
|
|
139
132
|
webmap?: import("../types").WebMapState;
|
|
@@ -28,6 +28,7 @@ export interface ServiceState {
|
|
|
28
28
|
allIds: string[];
|
|
29
29
|
}
|
|
30
30
|
export interface SetLayersForServicePayload {
|
|
31
|
+
id: string;
|
|
31
32
|
name: string;
|
|
32
33
|
serviceUrl: string;
|
|
33
34
|
layers: ServiceLayer[];
|
|
@@ -38,6 +39,7 @@ export interface SetLayersForService extends Action {
|
|
|
38
39
|
payload: SetLayersForServicePayload;
|
|
39
40
|
}
|
|
40
41
|
export interface MapStoreRemoveServicePayload {
|
|
42
|
+
id: string;
|
|
41
43
|
serviceUrl: string;
|
|
42
44
|
}
|
|
43
45
|
export interface MapStoreRemoveService extends Action {
|
|
@@ -4,7 +4,6 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
4
4
|
export declare const generateLayerId: () => string;
|
|
5
5
|
export declare const generateMapId: () => string;
|
|
6
6
|
export declare const generateTimesliderId: () => string;
|
|
7
|
-
export declare const generateServiceId: () => string;
|
|
8
7
|
export declare const generateTimeSeriesId: () => string;
|
|
9
8
|
/**
|
|
10
9
|
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppStore } from '../../types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { UIType } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Gets the active map Id and wether a dialog is open or closed
|
|
5
5
|
*
|
|
@@ -17,7 +17,6 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
17
17
|
* @returns {boolean} returnType: boolean
|
|
18
18
|
*/
|
|
19
19
|
export declare const getisDialogOpen: ((state: {
|
|
20
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
21
20
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
22
21
|
ui?: import("./types").UIStoreType;
|
|
23
22
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -37,7 +36,6 @@ export declare const getisDialogOpen: ((state: {
|
|
|
37
36
|
* @returns {string} returnType: string - the active map id
|
|
38
37
|
*/
|
|
39
38
|
export declare const getDialogMapId: ((state: {
|
|
40
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
41
39
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
42
40
|
ui?: import("./types").UIStoreType;
|
|
43
41
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -57,14 +55,13 @@ export declare const getDialogMapId: ((state: {
|
|
|
57
55
|
* @returns {number} the higher the order number the higher the zIndex
|
|
58
56
|
*/
|
|
59
57
|
export declare const getDialogOrder: ((state: {
|
|
60
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
61
58
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
62
59
|
ui?: import("./types").UIStoreType;
|
|
63
60
|
webmap?: import("../mapStore/types").WebMapState;
|
|
64
61
|
services?: import("../mapStore/types").ServiceState;
|
|
65
62
|
layers?: import("../mapStore/types").LayerState;
|
|
66
63
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
67
|
-
}, params_0:
|
|
64
|
+
}, params_0: string) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number & {
|
|
68
65
|
clearCache: () => void;
|
|
69
66
|
}> & {
|
|
70
67
|
clearCache: () => void;
|
|
@@ -77,20 +74,18 @@ export declare const getDialogOrder: ((state: {
|
|
|
77
74
|
* @returns {boolean}
|
|
78
75
|
*/
|
|
79
76
|
export declare const getDialogIsOrderedOnTop: ((state: {
|
|
80
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
81
77
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
82
78
|
ui?: import("./types").UIStoreType;
|
|
83
79
|
webmap?: import("../mapStore/types").WebMapState;
|
|
84
80
|
services?: import("../mapStore/types").ServiceState;
|
|
85
81
|
layers?: import("../mapStore/types").LayerState;
|
|
86
82
|
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
87
|
-
}, params_0:
|
|
83
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean & {
|
|
88
84
|
clearCache: () => void;
|
|
89
85
|
}> & {
|
|
90
86
|
clearCache: () => void;
|
|
91
87
|
};
|
|
92
88
|
export declare const getDialogSource: ((state: {
|
|
93
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
94
89
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
95
90
|
ui?: import("./types").UIStoreType;
|
|
96
91
|
webmap?: import("../mapStore/types").WebMapState;
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG, UI_SET_ACTIVE_WINDOW_ID } from './constants';
|
|
3
|
-
|
|
3
|
+
declare type LegendDialogType = string;
|
|
4
|
+
export declare type DialogType = 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups' | LegendDialogType;
|
|
4
5
|
export declare type Source = 'app' | 'module';
|
|
5
6
|
export interface UIType {
|
|
6
7
|
type: DialogType;
|
|
@@ -66,3 +67,4 @@ export interface SetActiveWindowId extends Action {
|
|
|
66
67
|
payload: SetActiveWindowIdPayload;
|
|
67
68
|
}
|
|
68
69
|
export declare type UIActions = SetActiveMapIdForDialog | UIRegisterDialog | UIUnRegisterDialog | UIToggleDialog | UIOrderDialog | SetActiveWindowId;
|
|
70
|
+
export {};
|
package/lib/types/types.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { WebMapStateModuleState } from '../store/mapStore/types';
|
|
2
|
-
import { AdvancedLayerStoreModuleState } from '../store/advancedLayerStore/types';
|
|
3
2
|
import { SynchronizationGroupModuleState } from '../store/generic/synchronizationGroups/types';
|
|
4
3
|
import { UIModuleState } from '../store/ui/types';
|
|
5
4
|
import { LayerSelectModuleState } from '../store/layerSelect/types';
|
|
6
|
-
export interface AppStore extends
|
|
5
|
+
export interface AppStore extends SynchronizationGroupModuleState, UIModuleState, WebMapStateModuleState, LayerSelectModuleState {
|
|
7
6
|
}
|
|
@@ -20,6 +20,10 @@ export interface InitialAppPreset {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
22
22
|
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
23
|
+
export declare const filterLayers: (layers?: Layer[]) => {
|
|
24
|
+
mapLayers: Layer[];
|
|
25
|
+
baseLayers: Layer[];
|
|
26
|
+
};
|
|
23
27
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
24
28
|
export declare const filterMapPresets: (presets: InitialAppPreset) => FilteredMapPresets;
|
|
25
29
|
export declare const getInitialPresets: (mapPreset: InitialAppPreset, defaultInitialPresets: InitialAppPreset) => InitialAppPresetProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,33 +13,34 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
16
|
+
"@opengeoweb/theme": "2.9.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
19
|
"@mui/icons-material": "^5.2.5",
|
|
20
20
|
"moment": "^2.29.0",
|
|
21
21
|
"react-redux": "7.2.2",
|
|
22
22
|
"react-intl": "^5.17.5",
|
|
23
|
-
"@opengeoweb/shared": "2.
|
|
23
|
+
"@opengeoweb/shared": "2.9.0",
|
|
24
24
|
"react-draggable": "^4.4.3",
|
|
25
25
|
"re-resizable": "^6.9.0",
|
|
26
26
|
"lodash": "^4.17.20",
|
|
27
|
-
"@opengeoweb/form-fields": "2.
|
|
27
|
+
"@opengeoweb/form-fields": "2.9.0",
|
|
28
28
|
"react-hook-form": "^6.12.1",
|
|
29
29
|
"moment-timezone": "^0.5.31",
|
|
30
30
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
31
31
|
"axios": "^0.25.0",
|
|
32
|
-
"@opengeoweb/webmap": "2.
|
|
32
|
+
"@opengeoweb/webmap": "2.9.0",
|
|
33
33
|
"throttle-debounce": "^3.0.1",
|
|
34
34
|
"proj4": "^2.6.2",
|
|
35
35
|
"react-sortablejs": "^6.0.0",
|
|
36
|
+
"immer": "^9.0.15",
|
|
36
37
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
38
|
"redux": "^4.0.4",
|
|
38
|
-
"immer": "^9.0.6",
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
40
|
"@turf/turf": "^5.1.6",
|
|
41
41
|
"reselect": "^4.1.5",
|
|
42
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
|
+
"@reduxjs/toolkit": "^1.8.3",
|
|
43
44
|
"redux-saga": "^1.1.3"
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AdvancedLayerStoreActions, SetTimeResolutionPayload, SetTimeValuePayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Sets time start, end, value and resolution if passed in (timeResolution must be in seconds)
|
|
4
|
-
*
|
|
5
|
-
* Example: setTimeResolution ({ timeStart: momentValue, timeEnd: momentValue, timeValue: momentValue, timeResolution: 300 });
|
|
6
|
-
* @param {object} payload object with: timeStart?: Moment, timeEnd?: Moment, timeValue?: Moment, timeResolution?: number->(in seconds);
|
|
7
|
-
*/
|
|
8
|
-
export declare const setTimeResolution: (payload: SetTimeResolutionPayload) => AdvancedLayerStoreActions;
|
|
9
|
-
/**
|
|
10
|
-
* Sets time value
|
|
11
|
-
*
|
|
12
|
-
* Example: setTimeValue ({ timeValue: value });
|
|
13
|
-
* @param {object} payload Object with timeValue: Moment;
|
|
14
|
-
*/
|
|
15
|
-
export declare const setTimeValue: (payload: SetTimeValuePayload) => AdvancedLayerStoreActions;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AdvancedLayerStoreState, AdvancedLayerStoreActions } from './types';
|
|
2
|
-
import { LayerActions, MapActions } from '../mapStore/types';
|
|
3
|
-
export declare const initialState: {
|
|
4
|
-
timeResolution: number;
|
|
5
|
-
timeStart: any;
|
|
6
|
-
timeEnd: any;
|
|
7
|
-
timeValue: any;
|
|
8
|
-
};
|
|
9
|
-
export declare const reducer: (state: {
|
|
10
|
-
timeResolution: number;
|
|
11
|
-
timeStart: any;
|
|
12
|
-
timeEnd: any;
|
|
13
|
-
timeValue: any;
|
|
14
|
-
}, action: AdvancedLayerStoreActions | LayerActions | MapActions) => AdvancedLayerStoreState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { AdvancedLayerStoreState } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Extracts the state of the advancedLayerStore from the store
|
|
4
|
-
*
|
|
5
|
-
* Example: advancedLayerStore = getAdvancedLayerStore(store);
|
|
6
|
-
* @param {object} store store: object - object from which the advancedLayerStore state will be extracted
|
|
7
|
-
* @returns {object} returnType: object - advancedLayerStore state part of the store
|
|
8
|
-
*/
|
|
9
|
-
export declare const getAdvancedLayerStore: ((state: {
|
|
10
|
-
advancedLayerStore?: AdvancedLayerStoreState;
|
|
11
|
-
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
12
|
-
ui?: import("../ui/types").UIStoreType;
|
|
13
|
-
webmap?: import("../mapStore/types").WebMapState;
|
|
14
|
-
services?: import("../mapStore/types").ServiceState;
|
|
15
|
-
layers?: import("../mapStore/types").LayerState;
|
|
16
|
-
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
17
|
-
}) => AdvancedLayerStoreState) & import("reselect").OutputSelectorFields<(args_0: AdvancedLayerStoreState) => AdvancedLayerStoreState & {
|
|
18
|
-
clearCache: () => void;
|
|
19
|
-
}> & {
|
|
20
|
-
clearCache: () => void;
|
|
21
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Moment } from 'moment';
|
|
2
|
-
import { Action } from 'redux';
|
|
3
|
-
import { ADVANCED_LAYER_STORE_SET_TIMERESOLUTION, ADVANCED_LAYER_STORE_SET_TIMEVALUE } from './constants';
|
|
4
|
-
export interface AdvancedLayerStoreState {
|
|
5
|
-
timeResolution: number;
|
|
6
|
-
timeStart: string;
|
|
7
|
-
timeEnd: string;
|
|
8
|
-
timeValue: string;
|
|
9
|
-
}
|
|
10
|
-
export interface AdvancedLayerStoreModuleState {
|
|
11
|
-
advancedLayerStore?: AdvancedLayerStoreState;
|
|
12
|
-
}
|
|
13
|
-
export interface SetTimeResolutionPayload {
|
|
14
|
-
timeStart?: Moment;
|
|
15
|
-
timeEnd?: Moment;
|
|
16
|
-
timeValue?: Moment;
|
|
17
|
-
timeResolution?: number;
|
|
18
|
-
}
|
|
19
|
-
export interface SetTimeResolution extends Action {
|
|
20
|
-
type: typeof ADVANCED_LAYER_STORE_SET_TIMERESOLUTION;
|
|
21
|
-
payload: SetTimeResolutionPayload;
|
|
22
|
-
}
|
|
23
|
-
export interface SetTimeValuePayload {
|
|
24
|
-
timeValue: Moment;
|
|
25
|
-
}
|
|
26
|
-
export interface SetTimeValue extends Action {
|
|
27
|
-
type: typeof ADVANCED_LAYER_STORE_SET_TIMEVALUE;
|
|
28
|
-
payload: SetTimeValuePayload;
|
|
29
|
-
}
|
|
30
|
-
export declare type AdvancedLayerStoreActions = SetTimeResolution | SetTimeValue;
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions, SyncGroupSetViewStatePayload } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Add a source component to the sources list.
|
|
4
|
-
*
|
|
5
|
-
* @param payload: SyncGroupsAddSourcePayload;
|
|
6
|
-
* {
|
|
7
|
-
* id: string; // The id of the source ;
|
|
8
|
-
* type: SyncType[]; // The types of this source
|
|
9
|
-
* defaultPayload?: GenericActionPayload; // Optional default value of this source
|
|
10
|
-
* }
|
|
11
|
-
*/
|
|
12
|
-
export declare const syncGroupAddSource: (payload: SyncGroupsAddSourcePayload) => SynchronizationGroupActions;
|
|
13
|
-
/**
|
|
14
|
-
* Remove a source from the sources list. Besides removing it from the sources list, the reducer will also remove the source from the synchronization groups.
|
|
15
|
-
*
|
|
16
|
-
* @param payload SyncGroupRemoveSourcePayload;
|
|
17
|
-
* {
|
|
18
|
-
* id: string; // The source id to remove
|
|
19
|
-
* }
|
|
20
|
-
*/
|
|
21
|
-
export declare const syncGroupRemoveSource: (payload: SyncGroupRemoveSourcePayload) => SynchronizationGroupActions;
|
|
22
|
-
/**
|
|
23
|
-
* Add a target (which should be in the sources list) to this synchronization group.
|
|
24
|
-
* The source will get the value set according to the other targets in the group. T
|
|
25
|
-
* The value is set via a secondary action (via saga's) to allow the other reducers (not part of SyncGroups) to process the new value
|
|
26
|
-
*
|
|
27
|
-
* @param payload: SyncGroupAddTargetPayload;
|
|
28
|
-
* {
|
|
29
|
-
* id: string; // SyncGroup Id to add the target to.
|
|
30
|
-
* targetId: string; // TargetId of the target
|
|
31
|
-
* linked?: boolean; // Whether it should be linked to the group or not, if not set it is always linked (true)
|
|
32
|
-
* }
|
|
33
|
-
*/
|
|
34
|
-
export declare const syncGroupAddTarget: (payload: SyncGroupAddTargetPayload) => SynchronizationGroupActions;
|
|
35
|
-
/**
|
|
36
|
-
* Remove a target from the group
|
|
37
|
-
* @param payload: SyncGroupRemoveTargetPayload;
|
|
38
|
-
* {
|
|
39
|
-
* id: string; // SyncGroup Id to remove target from;
|
|
40
|
-
* targetId: string; // Target id to remove
|
|
41
|
-
* }
|
|
42
|
-
*/
|
|
43
|
-
export declare const syncGroupRemoveTarget: (payload: SyncGroupRemoveTargetPayload) => SynchronizationGroupActions;
|
|
44
|
-
/**
|
|
45
|
-
* Toggle linking of a target in this group.
|
|
46
|
-
* When linking is set to enabled, the value of the group is given to this target via an extra action (via saga's)
|
|
47
|
-
*
|
|
48
|
-
* @param payload: SyncGroupLinkTargetPayload;
|
|
49
|
-
* {
|
|
50
|
-
* linked: boolean; // Target is linked or not in this group
|
|
51
|
-
* id: string; // SyncGroup Id
|
|
52
|
-
* targetId: string; // The targetId to set linked for
|
|
53
|
-
* }
|
|
54
|
-
*/
|
|
55
|
-
export declare const syncGroupLinkTarget: (payload: SyncGroupLinkTargetPayload) => SynchronizationGroupActions;
|
|
56
|
-
/**
|
|
57
|
-
* Add a synchronization group
|
|
58
|
-
*
|
|
59
|
-
* @param payload: syncGroupAddGroupPayload;
|
|
60
|
-
* {
|
|
61
|
-
* id: string; // Syncgroup id
|
|
62
|
-
* title: string; // Title for sync group
|
|
63
|
-
* type: SyncType[]; // SyncGroup type
|
|
64
|
-
* }
|
|
65
|
-
*/
|
|
66
|
-
export declare const syncGroupAddGroup: (payload: SyncGroupAddGroupPayload) => SynchronizationGroupActions;
|
|
67
|
-
/**
|
|
68
|
-
* Remove a synchronization group
|
|
69
|
-
*
|
|
70
|
-
* @param payload: syncGroupRemoveGroupPayload;
|
|
71
|
-
* {
|
|
72
|
-
* id: string; // Syncgroup id
|
|
73
|
-
* }
|
|
74
|
-
*/
|
|
75
|
-
export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload) => SynchronizationGroupActions;
|
|
76
|
-
/**
|
|
77
|
-
* Clear syncGroups
|
|
78
|
-
*/
|
|
79
|
-
export declare const syncGroupClear: () => SynchronizationGroupActions;
|
|
80
|
-
export declare const syncGroupSetViewState: (payload: SyncGroupSetViewStatePayload) => SynchronizationGroupActions;
|