@opengeoweb/store 15.3.0 → 17.0.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.
Files changed (129) hide show
  1. package/index.esm.js +841 -326
  2. package/package.json +6 -6
  3. package/src/index.d.ts +0 -1
  4. package/src/store/common/auth/index.d.ts +0 -3
  5. package/src/store/common/auth/reducer.d.ts +0 -14
  6. package/src/store/common/auth/reducer.spec.d.ts +0 -1
  7. package/src/store/common/auth/selectors.d.ts +0 -87
  8. package/src/store/common/auth/selectors.spec.d.ts +0 -1
  9. package/src/store/common/auth/types.d.ts +0 -22
  10. package/src/store/common/index.d.ts +0 -81
  11. package/src/store/common/listener.d.ts +0 -2
  12. package/src/store/common/types.d.ts +0 -6
  13. package/src/store/drawingTool/index.d.ts +0 -4
  14. package/src/store/drawingTool/listener.d.ts +0 -3
  15. package/src/store/drawingTool/listener.spec.d.ts +0 -1
  16. package/src/store/drawingTool/reducer.d.ts +0 -45
  17. package/src/store/drawingTool/reducer.spec.d.ts +0 -4
  18. package/src/store/drawingTool/selectors.d.ts +0 -347
  19. package/src/store/drawingTool/selectors.spec.d.ts +0 -1
  20. package/src/store/drawingTool/testUtils.d.ts +0 -1
  21. package/src/store/drawingTool/utils.d.ts +0 -1
  22. package/src/store/drawingTool/utils.spec.d.ts +0 -1
  23. package/src/store/generic/actions.d.ts +0 -28
  24. package/src/store/generic/hooks.d.ts +0 -2
  25. package/src/store/generic/index.d.ts +0 -25
  26. package/src/store/generic/linking/constants.d.ts +0 -6
  27. package/src/store/generic/linking/index.d.ts +0 -1
  28. package/src/store/generic/listener.d.ts +0 -2
  29. package/src/store/generic/listener.spec.d.ts +0 -1
  30. package/src/store/generic/loadingIndicator/constants.d.ts +0 -1
  31. package/src/store/generic/loadingIndicator/index.d.ts +0 -3
  32. package/src/store/generic/loadingIndicator/reducer.d.ts +0 -13
  33. package/src/store/generic/loadingIndicator/reducer.spec.d.ts +0 -1
  34. package/src/store/generic/loadingIndicator/selectors.d.ts +0 -337
  35. package/src/store/generic/loadingIndicator/selectors.spec.d.ts +0 -1
  36. package/src/store/generic/loadingIndicator/types.d.ts +0 -22
  37. package/src/store/generic/selectors.d.ts +0 -410
  38. package/src/store/generic/selectors.spec.d.ts +0 -1
  39. package/src/store/generic/syncGroups/__mocks__/mockState.d.ts +0 -2
  40. package/src/store/generic/syncGroups/constants.d.ts +0 -4
  41. package/src/store/generic/syncGroups/hooks.d.ts +0 -8
  42. package/src/store/generic/syncGroups/hooks.spec.d.ts +0 -1
  43. package/src/store/generic/syncGroups/index.d.ts +0 -10
  44. package/src/store/generic/syncGroups/listener.d.ts +0 -2
  45. package/src/store/generic/syncGroups/listener.spec.d.ts +0 -1
  46. package/src/store/generic/syncGroups/reducer.d.ts +0 -60
  47. package/src/store/generic/syncGroups/reducer.spec.d.ts +0 -1
  48. package/src/store/generic/syncGroups/selector.d.ts +0 -29
  49. package/src/store/generic/syncGroups/selectors.d.ts +0 -235
  50. package/src/store/generic/syncGroups/selectors.spec.d.ts +0 -1
  51. package/src/store/generic/syncGroups/types.d.ts +0 -166
  52. package/src/store/generic/syncGroups/utils.d.ts +0 -76
  53. package/src/store/generic/syncGroups/utils.spec.d.ts +0 -1
  54. package/src/store/generic/synchronizationActions/actions.d.ts +0 -11
  55. package/src/store/generic/synchronizationActions/types.d.ts +0 -43
  56. package/src/store/generic/types.d.ts +0 -24
  57. package/src/store/generic/utils.d.ts +0 -9
  58. package/src/store/generic/utils.spec.d.ts +0 -1
  59. package/src/store/index.d.ts +0 -22
  60. package/src/store/map/index.d.ts +0 -5
  61. package/src/store/map/layer/index.d.ts +0 -5
  62. package/src/store/map/layer/listeners.d.ts +0 -2
  63. package/src/store/map/layer/listeners.spec.d.ts +0 -1
  64. package/src/store/map/layer/reducer.d.ts +0 -88
  65. package/src/store/map/layer/reducer.spec.d.ts +0 -1
  66. package/src/store/map/layer/selectors.d.ts +0 -2547
  67. package/src/store/map/layer/selectors.spec.d.ts +0 -1
  68. package/src/store/map/layer/types.d.ts +0 -175
  69. package/src/store/map/layer/utils.d.ts +0 -33
  70. package/src/store/map/layer/utils.spec.d.ts +0 -1
  71. package/src/store/map/map/actions.d.ts +0 -9
  72. package/src/store/map/map/constants.d.ts +0 -3
  73. package/src/store/map/map/enums.d.ts +0 -3
  74. package/src/store/map/map/filterLayers.d.ts +0 -10
  75. package/src/store/map/map/filterLayers.spec.d.ts +0 -1
  76. package/src/store/map/map/index.d.ts +0 -26
  77. package/src/store/map/map/listener.d.ts +0 -4
  78. package/src/store/map/map/listener.spec.d.ts +0 -1
  79. package/src/store/map/map/mapListenerAnimationUtils.d.ts +0 -28
  80. package/src/store/map/map/mapListenerAnimationUtils.spec.d.ts +0 -1
  81. package/src/store/map/map/metronomeListener.d.ts +0 -2
  82. package/src/store/map/map/olMapListenerAnimationUtils.d.ts +0 -46
  83. package/src/store/map/map/olMapListenerAnimationUtils.spec.d.ts +0 -1
  84. package/src/store/map/map/reducer.d.ts +0 -132
  85. package/src/store/map/map/reducer.spec.d.ts +0 -1
  86. package/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +0 -7
  87. package/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +0 -1
  88. package/src/store/map/map/selectors.d.ts +0 -3535
  89. package/src/store/map/map/selectors.spec.d.ts +0 -1
  90. package/src/store/map/map/types.d.ts +0 -327
  91. package/src/store/map/map/utils.d.ts +0 -87
  92. package/src/store/map/map/utils.spec.d.ts +0 -1
  93. package/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +0 -2
  94. package/src/store/map/service/index.d.ts +0 -4
  95. package/src/store/map/service/listener.d.ts +0 -5
  96. package/src/store/map/service/listener.spec.d.ts +0 -1
  97. package/src/store/map/service/localStorage.d.ts +0 -3
  98. package/src/store/map/service/localStorage.spec.d.ts +0 -1
  99. package/src/store/map/service/reducer.d.ts +0 -10
  100. package/src/store/map/service/reducer.spec.d.ts +0 -1
  101. package/src/store/map/service/selectors.d.ts +0 -386
  102. package/src/store/map/service/selectors.spec.d.ts +0 -1
  103. package/src/store/map/service/types.d.ts +0 -52
  104. package/src/store/map/storeTestSettings.d.ts +0 -8
  105. package/src/store/map/storeTestUtils.d.ts +0 -18
  106. package/src/store/map/types.d.ts +0 -11
  107. package/src/store/mapStore/openlayers/listener.d.ts +0 -2
  108. package/src/store/mapStore/openlayers/listener.spec.d.ts +0 -1
  109. package/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +0 -26
  110. package/src/store/router/index.d.ts +0 -2
  111. package/src/store/router/listener.d.ts +0 -2
  112. package/src/store/router/listener.spec.d.ts +0 -1
  113. package/src/store/router/reducer.d.ts +0 -9
  114. package/src/store/router/reducer.spec.d.ts +0 -1
  115. package/src/store/router/types.d.ts +0 -9
  116. package/src/store/router/utils.d.ts +0 -4
  117. package/src/store/store.d.ts +0 -37
  118. package/src/store/types.d.ts +0 -7
  119. package/src/store/ui/index.d.ts +0 -5
  120. package/src/store/ui/reducer.d.ts +0 -39
  121. package/src/store/ui/reducer.spec.d.ts +0 -1
  122. package/src/store/ui/selectors.d.ts +0 -234
  123. package/src/store/ui/selectors.spec.d.ts +0 -1
  124. package/src/store/ui/types.d.ts +0 -87
  125. package/src/store/ui/useSetupDialog.d.ts +0 -11
  126. package/src/store/ui/useSetupDialog.spec.d.ts +0 -1
  127. package/src/store/unifyReducerMaps.d.ts +0 -3
  128. package/src/store/unifyReducermaps.spec.d.ts +0 -1
  129. package/src/store/utils.d.ts +0 -6
@@ -1 +0,0 @@
1
- export {};
@@ -1,327 +0,0 @@
1
- import type { SpeedFactorType } from '@opengeoweb/time-slider';
2
- import type { RefTimeDimensionModes, TimeInterval } from '@opengeoweb/webmap';
3
- import type { MapLocation } from '@opengeoweb/webmap-react';
4
- import type { Layer, LayerActionOrigin } from '../types';
5
- import type { MapActionOrigin } from './enums';
6
- export interface Dimension {
7
- name?: string;
8
- units?: string;
9
- currentValue: string;
10
- maxValue?: string;
11
- minValue?: string;
12
- timeInterval?: TimeInterval;
13
- synced?: boolean;
14
- validSyncSelection?: boolean;
15
- values?: string;
16
- }
17
- export type WebMapAnimationList = {
18
- name: string;
19
- value: string;
20
- }[];
21
- export interface WebMap {
22
- id: string;
23
- isAnimating: boolean;
24
- animationStartTime?: string;
25
- animationEndTime?: string;
26
- timeList?: WebMapAnimationList | undefined;
27
- isAutoUpdating: boolean;
28
- shouldEndtimeOverride: boolean;
29
- srs: string;
30
- bbox: Bbox;
31
- mapLayers: string[];
32
- baseLayers: string[];
33
- overLayers: string[];
34
- featureLayers: string[];
35
- dimensions?: Dimension[];
36
- autoUpdateLayerId?: string;
37
- autoTimeStepLayerId?: string;
38
- timeSliderSpan?: number;
39
- timeStep?: number;
40
- animationDelay?: number;
41
- timeSliderWidth?: number;
42
- timeSliderCenterTime?: number;
43
- timeSliderSecondsPerPx?: number;
44
- isTimestepAuto?: boolean;
45
- isTimeSpanAuto?: boolean;
46
- isAnimationLengthAuto?: boolean;
47
- isTimeSliderHoverOn?: boolean;
48
- isTimeSliderVisible?: boolean;
49
- shouldShowZoomControls?: boolean;
50
- mapPinLocation?: MapLocation;
51
- disableMapPin?: boolean;
52
- displayMapPin?: boolean;
53
- legendId?: string;
54
- dockedLayerManagerSize?: DockedLayerManagerSize;
55
- dockedLayerManagerPosition?: DockedLayerManagerPosition;
56
- dockedLayerManagerDimensions?: DockedLayerManagerDimensions;
57
- isTimeScrollingEnabled?: boolean;
58
- selectedMapIds?: string[];
59
- isClockVisible?: boolean;
60
- clockPosition?: ClockPosition;
61
- clockSize?: ClockSize;
62
- }
63
- export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
64
- export interface DockedLayerManagerPosition {
65
- x: number;
66
- y: number;
67
- }
68
- export interface DockedLayerManagerDimensions {
69
- width: number;
70
- height: number;
71
- }
72
- export interface WebMapState {
73
- byId: Record<string, WebMap>;
74
- allIds: string[];
75
- defaultMapSettings?: MapPreset;
76
- }
77
- export interface Bbox {
78
- left: number;
79
- right: number;
80
- top: number;
81
- bottom: number;
82
- }
83
- export declare enum AnimationLength {
84
- Minutes15 = 15,
85
- Minutes30 = 30,
86
- Hours1 = 60,
87
- Hours2 = 120,
88
- Hours3 = 180,
89
- Hours6 = 360,
90
- Hours12 = 720,
91
- Hours24 = 1440
92
- }
93
- export interface AnimationPayloadType {
94
- duration?: number;
95
- interval?: number;
96
- speed?: SpeedFactorType;
97
- endTime?: string;
98
- shouldEndtimeOverride?: boolean;
99
- }
100
- export interface MapPreset {
101
- layers?: Layer[];
102
- activeLayerId?: string;
103
- autoTimeStepLayerId?: string;
104
- autoUpdateLayerId?: string;
105
- proj?: {
106
- bbox: Bbox;
107
- srs: string;
108
- };
109
- dimensions?: Dimension[];
110
- shouldAnimate?: boolean;
111
- shouldAutoUpdate?: boolean;
112
- showTimeSlider?: boolean;
113
- displayMapPin?: boolean;
114
- shouldShowZoomControls?: boolean;
115
- toggleTimestepAuto?: boolean;
116
- animationPayload?: AnimationPayloadType;
117
- shouldShowLegend?: boolean;
118
- shouldShowLayerManager?: boolean;
119
- shouldShowDockedLayerManager?: boolean;
120
- dockedLayerManagerSize?: DockedLayerManagerSize;
121
- dockedLayerManagerPosition?: DockedLayerManagerPosition;
122
- dockedLayerManagerDimensions?: DockedLayerManagerDimensions;
123
- selectedMapIds?: string[];
124
- timeSliderSpan?: number;
125
- toggleTimeSpanAuto?: boolean;
126
- shouldShowDataExplorer?: boolean;
127
- defaultOverlayer?: string;
128
- refTimeDimensionModes?: RefTimeDimensionModes;
129
- isClockVisible?: boolean;
130
- clockPosition?: ClockPosition;
131
- clockSize?: ClockSize;
132
- }
133
- export interface MapPresetInitialProps {
134
- mapPreset: MapPreset;
135
- syncGroupsIds?: string[];
136
- }
137
- export interface MoveLayerPayload {
138
- mapId: string;
139
- oldIndex: number;
140
- newIndex: number;
141
- origin: string;
142
- layerType?: string;
143
- }
144
- export interface TimeListType {
145
- name: string;
146
- value: string;
147
- }
148
- export interface SetMapAnimationStartPayload {
149
- mapId: string;
150
- start?: string;
151
- initialTime?: string;
152
- end?: string;
153
- interval?: number;
154
- timeList?: TimeListType[];
155
- origin?: MapActionOrigin;
156
- }
157
- export interface SetMapAnimationStopPayload {
158
- mapId: string;
159
- origin?: MapActionOrigin;
160
- }
161
- export interface SetAutoLayerIdPayload {
162
- mapId: string;
163
- layerId?: string;
164
- autoTimeStepLayerId?: string;
165
- autoUpdateLayerId?: string;
166
- origin?: LayerActionOrigin | string;
167
- }
168
- export interface ToggleAutoUpdatePayload {
169
- mapId: string;
170
- shouldAutoUpdate: boolean;
171
- origin?: MapActionOrigin;
172
- }
173
- export interface SetEndTimeOverriding {
174
- mapId: string;
175
- shouldEndtimeOverride: boolean;
176
- }
177
- export interface SetTimeSliderSpanPayload {
178
- mapId: string;
179
- timeSliderSpan: number;
180
- origin?: MapActionOrigin;
181
- }
182
- export interface SetTimeStepPayload {
183
- mapId: string;
184
- timeStep?: number;
185
- origin?: MapActionOrigin;
186
- }
187
- export interface SetAnimationDelayPayload {
188
- mapId: string;
189
- animationDelay: number;
190
- origin?: MapActionOrigin;
191
- }
192
- export interface SetAnimationStartTimePayload {
193
- mapId: string;
194
- animationStartTime: string;
195
- origin?: MapActionOrigin;
196
- }
197
- export interface SetAnimationEndTimePayload {
198
- mapId: string;
199
- animationEndTime: string;
200
- origin?: MapActionOrigin;
201
- }
202
- export interface ToggleTimestepAutoPayload {
203
- mapId: string;
204
- timestepAuto: boolean;
205
- origin?: MapActionOrigin;
206
- }
207
- export interface ToggleTimeSpanAutoPayload {
208
- mapId: string;
209
- timeSpanAuto: boolean;
210
- origin?: MapActionOrigin;
211
- }
212
- export interface ToggleAnimationLengthAutoPayload {
213
- mapId: string;
214
- autoAnimationLength: boolean;
215
- origin?: MapActionOrigin;
216
- }
217
- export interface ToggleTimeSliderHoverPayload {
218
- mapId: string;
219
- isTimeSliderHoverOn: boolean;
220
- }
221
- export interface ToggleTimeSliderIsVisiblePayload {
222
- mapId: string;
223
- isTimeSliderVisible: boolean;
224
- origin?: MapActionOrigin;
225
- }
226
- export interface SetTimeSliderWidthPayload {
227
- mapId: string;
228
- timeSliderWidth: number;
229
- }
230
- export interface SetTimeSliderCenterTimePayload {
231
- mapId: string;
232
- timeSliderCenterTime: number;
233
- }
234
- export interface SetTimeSliderSecondsPerPxPayload {
235
- mapId: string;
236
- timeSliderSecondsPerPx: number;
237
- }
238
- export interface ToggleZoomControlsPayload {
239
- mapId: string;
240
- shouldShowZoomControls: boolean;
241
- }
242
- export interface DisableMapPinPayload {
243
- mapId: string;
244
- disableMapPin: boolean;
245
- }
246
- export interface ToggleMapPinIsVisiblePayload {
247
- mapId: string;
248
- displayMapPin: boolean;
249
- }
250
- export interface SetMapPresetPayload {
251
- mapId: string;
252
- initialProps: MapPresetInitialProps;
253
- }
254
- export interface SetDockedLayerManagerSize {
255
- mapId: string;
256
- dockedLayerManagerSize: DockedLayerManagerSize;
257
- origin?: MapActionOrigin;
258
- }
259
- export interface SetDockedLayerManagerPosition {
260
- mapId: string;
261
- dockedLayerManagerPosition: DockedLayerManagerPosition;
262
- origin?: MapActionOrigin;
263
- }
264
- export interface SetDockedLayerManagerDimensions {
265
- mapId: string;
266
- dockedLayerManagerDimensions: DockedLayerManagerDimensions;
267
- origin?: MapActionOrigin;
268
- }
269
- export interface ISO8601Interval {
270
- startTime: string;
271
- endTime: string;
272
- duration: string;
273
- }
274
- export interface SetDefaultMapSettingsPayload {
275
- preset: MapPreset;
276
- }
277
- export interface TimeSliderStartEndStep {
278
- start: number;
279
- end: number;
280
- step: number;
281
- }
282
- export interface TimeSliderStartEndStepCurrent extends TimeSliderStartEndStep {
283
- current: number;
284
- }
285
- export interface MultiMapInitialProps {
286
- mapPreset: MapPreset[];
287
- syncGroupsIds: string[];
288
- shouldShowZoomControls?: boolean;
289
- }
290
- export interface InitialHarmTempAndPrecipProps {
291
- layers: {
292
- topRow: Layer;
293
- bottomRow: Layer;
294
- topRowSyncGroups?: string[];
295
- bottomRowSyncGroups?: string[];
296
- };
297
- multiLegend?: boolean;
298
- }
299
- export interface HarmonieInitialPropsResult {
300
- layers?: InitialHarmTempAndPrecipProps['layers'];
301
- multiLegend?: boolean;
302
- }
303
- export interface InitialTimeSliderProps {
304
- sliderPreset: {
305
- mapId: string;
306
- };
307
- syncGroupsIds: string[];
308
- }
309
- export interface ToggleClockPayload {
310
- mapId: string;
311
- isClockVisible: boolean;
312
- origin?: MapActionOrigin;
313
- }
314
- export interface ClockPosition {
315
- x: number;
316
- y: number;
317
- }
318
- export interface ClockSize {
319
- width: number;
320
- height: number;
321
- }
322
- export interface SetClockPositionSizePayload {
323
- mapId: string;
324
- position?: ClockPosition;
325
- size?: ClockSize;
326
- origin?: MapActionOrigin;
327
- }
@@ -1,87 +0,0 @@
1
- import type { Draft } from 'immer';
2
- import type { SpeedFactorType } from '@opengeoweb/time-slider';
3
- import type { TimeInterval } from '@opengeoweb/webmap';
4
- import type { Bbox, Dimension } from './types';
5
- import type { Layer } from '../layer/types';
6
- import type { WebMapState, WebMap, ISO8601Interval, WebMapAnimationList } from '../types';
7
- export declare const dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'";
8
- export interface CreateMapProps {
9
- id: string;
10
- isAnimating?: boolean;
11
- animationStartTime?: string;
12
- animationEndTime?: string;
13
- isAutoUpdating?: boolean;
14
- shouldEndtimeOverride?: boolean;
15
- srs?: string;
16
- bbox?: Bbox;
17
- mapLayers?: string[];
18
- baseLayers?: string[];
19
- overLayers?: string[];
20
- featureLayers?: string[];
21
- dimensions?: Dimension[];
22
- autoTimeStepLayerId?: string;
23
- autoUpdateLayerId?: string;
24
- timeSliderSpan?: number;
25
- timeStep?: number;
26
- animationDelay?: number;
27
- timeSliderWidth?: number;
28
- timeSliderCenterTime?: number;
29
- timeSliderSecondsPerPx?: number;
30
- isTimestepAuto?: boolean;
31
- isTimeSpanAuto?: boolean;
32
- isTimeSliderHoverOn?: boolean;
33
- isTimeSliderVisible?: boolean;
34
- displayMapPin?: boolean;
35
- disableMapPin?: boolean;
36
- shouldShowZoomControls?: boolean;
37
- }
38
- export declare const createMap: ({ id, isAnimating, animationStartTime, animationEndTime, isAutoUpdating, shouldEndtimeOverride, bbox, srs, baseLayers, overLayers, mapLayers, featureLayers, dimensions, autoUpdateLayerId, autoTimeStepLayerId, timeSliderSpan, timeStep, animationDelay, timeSliderWidth, timeSliderCenterTime, timeSliderSecondsPerPx, isTimestepAuto, isTimeSpanAuto, isTimeSliderHoverOn, isTimeSliderVisible, displayMapPin, disableMapPin, shouldShowZoomControls, }: CreateMapProps) => WebMap;
39
- export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
40
- /**
41
- * This will get the map from the map draftstate.
42
- * If the mapId is not found, it registers one and returns it.
43
- * @param mapId The mapID
44
- * @param draft Draft map state
45
- */
46
- export declare const getDraftMapById: (mapId: string, draft: WebMapState) => WebMap;
47
- /**
48
- * Sets the map dimension in the state.
49
- * It will add dimensions to the map if they are missing.
50
- * If will update the existing dimensions if overwriteCurrentValue is set to true
51
- * @param draft The map draft state
52
- * @param mapId The mapId to update the dimensions for
53
- * @param dimensionFromAction The dimension from the action
54
- * @param overwriteCurrentValue True to overwrite existing value. False to add a new dimension if one is not there yet.
55
- */
56
- export declare const produceDraftStateSetWebMapDimension: (draft: WebMapState, mapId: string, dimensionFromAction: Dimension, overwriteCurrentValue: boolean) => void;
57
- /**
58
- * Find the mapId belonging to a layerId
59
- * @param draft The WebMapState containing the state of all maps.
60
- * @param layerId The layer Id to find in the maps
61
- */
62
- export declare const findMapIdFromLayerId: (mapState?: WebMapState, layerId?: string) => string | null;
63
- export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: WebMapState, layerId: string, dimension: Dimension) => void;
64
- /**
65
- * Returns array with new order of swapped elements
66
- * @param array Array with ids
67
- * @param oldIndex Old index of element in array
68
- * @param newIndex New index of element in array
69
- */
70
- export declare function moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
71
- export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
72
- export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
73
- export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
74
- /**
75
- * @param animationStart
76
- * @param animationEnd
77
- * @param iso8601Intervals
78
- * @returns WebMapAnimationList with time points
79
- */
80
- export declare const generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined, animationInterval?: number) => WebMapAnimationList;
81
- /**
82
- * Parses the time dimension values string to an array of ISO8601 intervals
83
- * @param timeInterval
84
- * @returns An array of ISO8601 intervals
85
- */
86
- export declare const parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => ISO8601Interval[];
87
- export declare const produceTimeSliderTimeSpan: (draft: Draft<WebMapState>, mapId: string, timeSliderSpan: number) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- declare const xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE WMT_MS_Capabilities SYSTEM \"http://schemas.opengis.net/wms/1.1.1/WMS_MS_Capabilities.dtd\" [\n <!ELEMENT VendorSpecificCapabilities EMPTY>\n]>\n<!-- end of DOCTYPE declaration -->\n<WMT_MS_Capabilities version=\"1.1.1\">\n <Service>\n <Name>OGC:WMS</Name>\n <Title>RADAR</Title>\n <Abstract>This service demonstrates how the ADAGUC server can be used to create OGC services.</Abstract>\n <ServerInfo>ADAGUCServer version 2.5.8, of Apr 13 2021 07:55:43</ServerInfo>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n <ContactInformation />\n </Service>\n <Capability>\n <Request>\n <GetCapabilities>\n <Format>application/vnd.ogc.wms_xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetCapabilities>\n <GetMap>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetMap>\n <GetFeatureInfo>\n <Format>text/plain</Format>\n <Format>text/html</Format>\n <Format>text/xml</Format>\n <Format>application/vnd.ogc.gml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetFeatureInfo>\n <DescribeLayer>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n </Get>\n </HTTP>\n </DCPType>\n </DescribeLayer>\n <GetLegendGraphic>\n <Format>image/png</Format>\n <Format>image/gif</Format>\n <Format>image/png32</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetLegendGraphic>\n <GetStyles>\n <Format>text/xml</Format>\n <DCPType>\n <HTTP>\n <Get>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;\" />\n </Get>\n </HTTP>\n </DCPType>\n </GetStyles>\n </Request>\n <Exception>\n <Format>application/vnd.ogc.se_xml</Format>\n <Format>application/vnd.ogc.se_inimage</Format>\n <Format>application/vnd.ogc.se_blank</Format>\n </Exception>\n <VendorSpecificCapabilities />\n <UserDefinedSymbolization SupportSLD=\"1\" UserLayer=\"0\" UserStyle=\"1\" RemoteWFS=\"0\" />\n <Layer>\n <Title>WMS of RADAR</Title>\n <SRS>EPSG:3411</SRS>\n <SRS>EPSG:3412</SRS>\n <SRS>EPSG:3575</SRS>\n <SRS>EPSG:3857</SRS>\n <SRS>EPSG:4258</SRS>\n <SRS>EPSG:4326</SRS>\n <SRS>CRS:84</SRS>\n <SRS>EPSG:25831</SRS>\n <SRS>EPSG:25832</SRS>\n <SRS>EPSG:28992</SRS>\n <SRS>EPSG:7399</SRS>\n <SRS>EPSG:50001</SRS>\n <SRS>EPSG:54030</SRS>\n <SRS>EPSG:32661</SRS>\n <SRS>EPSG:40000</SRS>\n <SRS>EPSG:900913</SRS>\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <Layer queryable=\"1\" opaque=\"1\" cascaded=\"0\">\n <Name>RAD_NL25_PCP_CM</Name>\n <Title>Precipitation Radar NL</Title>\n <Abstract>Radar NL</Abstract>\n <KeywordList>\n <Keyword>Radar</Keyword>\n </KeywordList>\n <SRS>EPSG:3411</SRS>\n <BoundingBox SRS=\"EPSG:3411\" minx=\"2682754.743620\" miny=\"-3245034.014141\" maxx=\"3759536.917562\" maxy=\"-2168251.989038\" />\n <SRS>EPSG:3412</SRS>\n <BoundingBox SRS=\"EPSG:3412\" minx=\"0.000000\" miny=\"32318824.826266\" maxx=\"7413041.166015\" maxy=\"40075258.815074\" />\n <SRS>EPSG:3575</SRS>\n <BoundingBox SRS=\"EPSG:3575\" minx=\"-770622.801471\" miny=\"-4485814.811314\" maxx=\"56845.766135\" maxy=\"-3684039.443620\" />\n <SRS>EPSG:3857</SRS>\n <BoundingBox SRS=\"EPSG:3857\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>EPSG:4258</SRS>\n <BoundingBox SRS=\"EPSG:4258\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:4326</SRS>\n <BoundingBox SRS=\"EPSG:4326\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>CRS:84</SRS>\n <BoundingBox SRS=\"CRS:84\" minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <SRS>EPSG:25831</SRS>\n <BoundingBox SRS=\"EPSG:25831\" minx=\"282182.345905\" miny=\"5433247.394267\" maxx=\"997135.658653\" maxy=\"6207204.592736\" />\n <SRS>EPSG:25832</SRS>\n <BoundingBox SRS=\"EPSG:25832\" minx=\"-153083.019482\" miny=\"5415817.312927\" maxx=\"617595.626092\" maxy=\"6239769.309937\" />\n <SRS>EPSG:28992</SRS>\n <BoundingBox SRS=\"EPSG:28992\" minx=\"-236275.338083\" miny=\"106727.731651\" maxx=\"501527.918656\" maxy=\"900797.079725\" />\n <SRS>EPSG:7399</SRS>\n <BoundingBox SRS=\"EPSG:7399\" minx=\"0.000000\" miny=\"5757301.056717\" maxx=\"763611.971696\" maxy=\"6483919.801602\" />\n <SRS>EPSG:50001</SRS>\n <BoundingBox SRS=\"EPSG:50001\" minx=\"-2000000.000000\" miny=\"-2000000.000000\" maxx=\"10000000.000000\" maxy=\"8500000.000000\" />\n <SRS>EPSG:54030</SRS>\n <BoundingBox SRS=\"EPSG:54030\" minx=\"0.000000\" miny=\"5211855.054125\" maxx=\"853649.695106\" maxy=\"5936394.291427\" />\n <SRS>EPSG:32661</SRS>\n <BoundingBox SRS=\"EPSG:32661\" minx=\"2000000.000000\" miny=\"-2703305.597319\" maxx=\"2745713.040381\" maxy=\"-1888346.216710\" />\n <SRS>EPSG:40000</SRS>\n <BoundingBox SRS=\"EPSG:40000\" minx=\"0.000000\" miny=\"-4731695.771951\" maxx=\"750214.326339\" maxy=\"-3911817.119426\" />\n <SRS>EPSG:900913</SRS>\n <BoundingBox SRS=\"EPSG:900913\" minx=\"0.000000\" miny=\"6257115.219364\" maxx=\"1208534.698398\" maxy=\"7553161.958695\" />\n <SRS>PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0</SRS>\n <BoundingBox SRS=\"PROJ4:%2Bproj%3Dstere%20%2Blat_0%3D90%20%2Blon_0%3D0%20%2Blat_ts%3D60%20%2Ba%3D6378%2E14%20%2Bb%3D6356%2E75%20%2Bx_0%3D0%20y_0%3D0\" minx=\"0.000000\" miny=\"-3649.999338\" maxx=\"700.002420\" maxy=\"-4415.002986\" />\n <LatLonBoundingBox minx=\"0.000000\" miny=\"48.895303\" maxx=\"10.856452\" maxy=\"55.973600\" />\n <Dimension name=\"time\" units=\"ISO8601\" />\n <Extent name=\"time\" default=\"2021-05-17T00:00:00Z\" multipleValues=\"1\" nearestValue=\"0\">2021-03-31T09:25:00Z/2021-05-18T07:45:00Z/PT5M</Extent>\n <Style>\n <Name>radar/nearest</Name>\n <Title>radar/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;STYLE=radar/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-rainbow/nearest</Name>\n <Title>precip-rainbow/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;STYLE=precip-rainbow/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-gray/nearest</Name>\n <Title>precip-gray/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;STYLE=precip-gray/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue/nearest</Name>\n <Title>precip-blue/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;STYLE=precip-blue/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-blue-transparent/nearest</Name>\n <Title>precip-blue-transparent/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;STYLE=precip-blue-transparent/nearest\" />\n </LegendURL>\n </Style>\n <Style>\n <Name>precip-with-range/nearest</Name>\n <Title>precip-with-range/nearest</Title>\n <LegendURL width=\"300\" height=\"400\">\n <Format>image/png</Format>\n <OnlineResource xmlns:xlink=\"http://www.w3.org/1999/xlink\" xlink:type=\"simple\" xlink:href=\"https://geoservices.knmi.nl/wms?DATASET=RADAR&amp;SERVICE=WMS&amp;&amp;version=1.1.1&amp;service=WMS&amp;request=GetLegendGraphic&amp;layer=RAD_NL25_PCP_CM&amp;format=image/png&amp;STYLE=precip-with-range/nearest\" />\n </LegendURL>\n </Style>\n <ScaleHint min=\"0\" max=\"10000\" />\n </Layer>\n </Layer>\n </Capability>\n</WMT_MS_Capabilities>";
2
- export default xml;
@@ -1,4 +0,0 @@
1
- export { serviceActions, serviceReducer } from './reducer';
2
- export * as serviceSelectors from './selectors';
3
- export type * as serviceTypes from './types';
4
- export * from './localStorage';
@@ -1,5 +0,0 @@
1
- import type { UnknownAction, ListenerEffectAPI, ThunkDispatch } from '@reduxjs/toolkit';
2
- import type { FetchInitialServicesPayload, SetLayersForServicePayload, WebMapStateModuleState } from '../types';
3
- export declare const serviceListener: import("@reduxjs/toolkit").ListenerMiddlewareInstance<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, UnknownAction>, unknown>;
4
- export declare const fetchService: (service: SetLayersForServicePayload, listenerApi: ListenerEffectAPI<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, UnknownAction>, unknown>) => Promise<void>;
5
- export declare const fetchInitialServices: (payload: FetchInitialServicesPayload, listenerApi: ListenerEffectAPI<WebMapStateModuleState, ThunkDispatch<WebMapStateModuleState, unknown, UnknownAction>, unknown>) => Promise<void>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import type { UserAddedServices } from './types';
2
- export declare const getUserAddedServices: () => UserAddedServices;
3
- export declare const setUserAddedServices: (services: UserAddedServices) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,10 +0,0 @@
1
- import type { PayloadAction, Draft } from '@reduxjs/toolkit';
2
- import type { FetchInitialServicesPayload, MapStoreRemoveServicePayload, ServiceState, SetLayersForServicePayload } from './types';
3
- import type { layerActions } from '../layer/reducer';
4
- export declare const initialState: ServiceState;
5
- export declare const serviceReducer: import("redux").Reducer<ServiceState>, serviceActions: import("@reduxjs/toolkit").CaseReducerActions<{
6
- serviceSetLayers: (draft: Draft<ServiceState>, action: PayloadAction<SetLayersForServicePayload>) => void;
7
- mapStoreRemoveService: (draft: Draft<ServiceState>, action: PayloadAction<MapStoreRemoveServicePayload>) => void;
8
- fetchInitialServices: (_draft: Draft<ServiceState>, _action: PayloadAction<FetchInitialServicesPayload>) => void;
9
- }, "serviceReducer">;
10
- export type ServiceActions = ReturnType<typeof serviceActions.mapStoreRemoveService> | ReturnType<typeof serviceActions.serviceSetLayers> | ReturnType<typeof serviceActions.fetchInitialServices> | ReturnType<typeof layerActions.onUpdateLayerInformation>;
@@ -1 +0,0 @@
1
- export {};