@opengeoweb/store 9.28.1 → 9.29.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 (116) hide show
  1. package/index.esm.js +1377 -1377
  2. package/package.json +1 -1
  3. package/src/index.d.ts +1 -1
  4. package/src/store/coreModuleConfig.d.ts +1 -1
  5. package/src/store/drawingtool/config.d.ts +4 -4
  6. package/src/store/drawingtool/index.d.ts +6 -6
  7. package/src/store/drawingtool/listener.d.ts +3 -3
  8. package/src/store/drawingtool/listener.spec.d.ts +1 -1
  9. package/src/store/drawingtool/reducer.d.ts +46 -46
  10. package/src/store/drawingtool/reducer.spec.d.ts +4 -4
  11. package/src/store/drawingtool/selectors.d.ts +43 -43
  12. package/src/store/drawingtool/selectors.spec.d.ts +1 -1
  13. package/src/store/drawingtool/testUtils.d.ts +1 -1
  14. package/src/store/drawingtool/utils.d.ts +1 -1
  15. package/src/store/drawingtool/utils.spec.d.ts +1 -1
  16. package/src/store/generic/actions.d.ts +28 -28
  17. package/src/store/generic/config.d.ts +5 -5
  18. package/src/store/generic/index.d.ts +17 -17
  19. package/src/store/generic/listener.d.ts +2 -2
  20. package/src/store/generic/listener.spec.d.ts +1 -1
  21. package/src/store/generic/loadingIndicator/constants.d.ts +1 -1
  22. package/src/store/generic/loadingIndicator/index.d.ts +3 -3
  23. package/src/store/generic/loadingIndicator/reducer.d.ts +13 -13
  24. package/src/store/generic/loadingIndicator/reducer.spec.d.ts +1 -1
  25. package/src/store/generic/loadingIndicator/selectors.d.ts +22 -22
  26. package/src/store/generic/loadingIndicator/selectors.spec.d.ts +1 -1
  27. package/src/store/generic/loadingIndicator/types.d.ts +22 -22
  28. package/src/store/generic/selectors.d.ts +12 -12
  29. package/src/store/generic/selectors.spec.d.ts +1 -1
  30. package/src/store/generic/synchronizationActions/actions.d.ts +11 -11
  31. package/src/store/generic/synchronizationActions/types.d.ts +34 -34
  32. package/src/store/generic/synchronizationGroups/__mocks__/mockState.d.ts +2 -2
  33. package/src/store/generic/synchronizationGroups/constants.d.ts +4 -4
  34. package/src/store/generic/synchronizationGroups/index.d.ts +6 -6
  35. package/src/store/generic/synchronizationGroups/listener.d.ts +2 -2
  36. package/src/store/generic/synchronizationGroups/listener.spec.d.ts +1 -1
  37. package/src/store/generic/synchronizationGroups/reducer.d.ts +26 -26
  38. package/src/store/generic/synchronizationGroups/reducer.spec.d.ts +1 -1
  39. package/src/store/generic/synchronizationGroups/selector.d.ts +13 -13
  40. package/src/store/generic/synchronizationGroups/selectors.d.ts +64 -64
  41. package/src/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -1
  42. package/src/store/generic/synchronizationGroups/types.d.ts +100 -100
  43. package/src/store/generic/synchronizationGroups/utils.d.ts +76 -76
  44. package/src/store/generic/synchronizationGroups/utils.spec.d.ts +1 -1
  45. package/src/store/generic/types.d.ts +23 -23
  46. package/src/store/generic/utils.d.ts +9 -9
  47. package/src/store/generic/utils.spec.d.ts +1 -1
  48. package/src/store/index.d.ts +14 -14
  49. package/src/store/mapStore/config.d.ts +9 -9
  50. package/src/store/mapStore/index.d.ts +96 -96
  51. package/src/store/mapStore/layers/index.d.ts +5 -5
  52. package/src/store/mapStore/layers/listeners.d.ts +2 -2
  53. package/src/store/mapStore/layers/listeners.spec.d.ts +1 -1
  54. package/src/store/mapStore/layers/reducer.d.ts +87 -87
  55. package/src/store/mapStore/layers/reducer.spec.d.ts +1 -1
  56. package/src/store/mapStore/layers/selectors.d.ts +380 -380
  57. package/src/store/mapStore/layers/selectors.spec.d.ts +1 -1
  58. package/src/store/mapStore/layers/types.d.ts +166 -166
  59. package/src/store/mapStore/layers/utils.d.ts +23 -23
  60. package/src/store/mapStore/layers/utils.spec.d.ts +1 -1
  61. package/src/store/mapStore/map/actions.d.ts +9 -9
  62. package/src/store/mapStore/map/constants.d.ts +1 -1
  63. package/src/store/mapStore/map/enums.d.ts +3 -3
  64. package/src/store/mapStore/map/filterLayers.d.ts +10 -10
  65. package/src/store/mapStore/map/filterLayers.spec.d.ts +1 -1
  66. package/src/store/mapStore/map/index.d.ts +25 -25
  67. package/src/store/mapStore/map/listener.d.ts +4 -4
  68. package/src/store/mapStore/map/listener.spec.d.ts +1 -1
  69. package/src/store/mapStore/map/mapListenerAnimationUtils.d.ts +38 -38
  70. package/src/store/mapStore/map/mapListenerAnimationUtils.spec.d.ts +1 -1
  71. package/src/store/mapStore/map/mapUiListener.d.ts +2 -2
  72. package/src/store/mapStore/map/mapUiListener.spec.d.ts +1 -1
  73. package/src/store/mapStore/map/metronomeListener.d.ts +2 -2
  74. package/src/store/mapStore/map/reducer.d.ts +109 -109
  75. package/src/store/mapStore/map/reducer.spec.d.ts +1 -1
  76. package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -7
  77. package/src/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +1 -1
  78. package/src/store/mapStore/map/selectors.d.ts +733 -733
  79. package/src/store/mapStore/map/selectors.spec.d.ts +1 -1
  80. package/src/store/mapStore/map/types.d.ts +233 -233
  81. package/src/store/mapStore/map/utils.d.ts +85 -85
  82. package/src/store/mapStore/map/utils.spec.d.ts +1 -1
  83. package/src/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -2
  84. package/src/store/mapStore/service/index.d.ts +4 -4
  85. package/src/store/mapStore/service/listener.d.ts +5 -5
  86. package/src/store/mapStore/service/listener.spec.d.ts +1 -1
  87. package/src/store/mapStore/service/localStorage.d.ts +3 -3
  88. package/src/store/mapStore/service/localStorage.spec.d.ts +1 -1
  89. package/src/store/mapStore/service/reducer.d.ts +11 -11
  90. package/src/store/mapStore/service/reducer.spec.d.ts +1 -1
  91. package/src/store/mapStore/service/selectors.d.ts +80 -80
  92. package/src/store/mapStore/service/selectors.spec.d.ts +1 -1
  93. package/src/store/mapStore/service/types.d.ts +50 -50
  94. package/src/store/mapStore/storeTestSettings.d.ts +7 -7
  95. package/src/store/mapStore/storeTestUtils.d.ts +17 -17
  96. package/src/store/mapStore/types.d.ts +11 -11
  97. package/src/store/router/config.d.ts +4 -4
  98. package/src/store/router/index.d.ts +3 -3
  99. package/src/store/router/listener.d.ts +2 -2
  100. package/src/store/router/listener.spec.d.ts +1 -1
  101. package/src/store/router/reducer.d.ts +9 -9
  102. package/src/store/router/reducer.spec.d.ts +1 -1
  103. package/src/store/router/types.d.ts +6 -6
  104. package/src/store/router/utils.d.ts +3 -3
  105. package/src/store/testUtils/Providers.d.ts +13 -13
  106. package/src/store/types.d.ts +7 -7
  107. package/src/store/ui/config.d.ts +4 -4
  108. package/src/store/ui/index.d.ts +4 -4
  109. package/src/store/ui/reducer.d.ts +33 -33
  110. package/src/store/ui/reducer.spec.d.ts +1 -1
  111. package/src/store/ui/selectors.d.ts +102 -102
  112. package/src/store/ui/selectors.spec.d.ts +1 -1
  113. package/src/store/ui/types.d.ts +78 -78
  114. package/src/store/ui/useSetupDialog.d.ts +11 -11
  115. package/src/store/ui/useSetupDialog.spec.d.ts +1 -1
  116. package/src/store/utils.d.ts +6 -6
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,233 +1,233 @@
1
- import { TimeInterval } from '@opengeoweb/webmap';
2
- import { MapLocation } from '@opengeoweb/webmap-react';
3
- import { SpeedFactorType } from '@opengeoweb/timeslider';
4
- import type { Layer, LayerActionOrigin } from '../types';
5
- import { 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
- }
56
- export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
57
- export interface WebMapState {
58
- byId: Record<string, WebMap>;
59
- allIds: string[];
60
- }
61
- export interface Bbox {
62
- left: number;
63
- right: number;
64
- top: number;
65
- bottom: number;
66
- }
67
- export declare enum AnimationLength {
68
- Minutes15 = 15,
69
- Minutes30 = 30,
70
- Hours1 = 60,
71
- Hours2 = 120,
72
- Hours3 = 180,
73
- Hours6 = 360,
74
- Hours12 = 720,
75
- Hours24 = 1440
76
- }
77
- export interface AnimationPayloadType {
78
- duration?: number;
79
- interval?: number;
80
- speed?: SpeedFactorType;
81
- endTime?: string;
82
- shouldEndtimeOverride?: boolean;
83
- }
84
- export interface MapPreset {
85
- layers?: Layer[];
86
- activeLayerId?: string;
87
- autoTimeStepLayerId?: string;
88
- autoUpdateLayerId?: string;
89
- proj?: {
90
- bbox: Bbox;
91
- srs: string;
92
- };
93
- dimensions?: Dimension[];
94
- shouldAnimate?: boolean;
95
- shouldAutoUpdate?: boolean;
96
- showTimeSlider?: boolean;
97
- displayMapPin?: boolean;
98
- shouldShowZoomControls?: boolean;
99
- toggleTimestepAuto?: boolean;
100
- animationPayload?: AnimationPayloadType;
101
- shouldShowLegend?: boolean;
102
- shouldShowLayerManager?: boolean;
103
- shouldShowDockedLayerManager?: boolean;
104
- dockedLayerManagerSize?: DockedLayerManagerSize;
105
- }
106
- export interface MapPresetInitialProps {
107
- mapPreset: MapPreset;
108
- syncGroupsIds?: string[];
109
- }
110
- export interface MoveLayerPayload {
111
- mapId: string;
112
- oldIndex: number;
113
- newIndex: number;
114
- origin: string;
115
- }
116
- export interface TimeListType {
117
- name: string;
118
- value: string;
119
- }
120
- export interface SetMapAnimationStartPayload {
121
- mapId: string;
122
- start?: string;
123
- initialTime?: string;
124
- end?: string;
125
- interval?: number;
126
- timeList?: TimeListType[];
127
- origin?: MapActionOrigin;
128
- }
129
- export interface SetMapAnimationStopPayload {
130
- mapId: string;
131
- origin?: MapActionOrigin;
132
- }
133
- export interface SetAutoLayerIdPayload {
134
- mapId: string;
135
- layerId?: string;
136
- autoUpdateLayerId?: string;
137
- autoTimeStepLayerId?: string;
138
- origin?: LayerActionOrigin | string;
139
- }
140
- export interface ToggleAutoUpdatePayload {
141
- mapId: string;
142
- shouldAutoUpdate: boolean;
143
- origin?: MapActionOrigin;
144
- }
145
- export interface SetEndTimeOverriding {
146
- mapId: string;
147
- shouldEndtimeOverride: boolean;
148
- }
149
- export interface SetTimeSliderSpanPayload {
150
- mapId: string;
151
- timeSliderSpan: number;
152
- }
153
- export interface SetTimeStepPayload {
154
- mapId: string;
155
- timeStep?: number;
156
- origin?: MapActionOrigin;
157
- }
158
- export interface SetAnimationDelayPayload {
159
- mapId: string;
160
- animationDelay: number;
161
- origin?: MapActionOrigin;
162
- }
163
- export interface SetAnimationStartTimePayload {
164
- mapId: string;
165
- animationStartTime: string;
166
- origin?: MapActionOrigin;
167
- }
168
- export interface SetAnimationEndTimePayload {
169
- mapId: string;
170
- animationEndTime: string;
171
- origin?: MapActionOrigin;
172
- }
173
- export interface ToggleTimestepAutoPayload {
174
- mapId: string;
175
- timestepAuto: boolean;
176
- origin?: MapActionOrigin;
177
- }
178
- export interface ToggleTimeSpanAutoPayload {
179
- mapId: string;
180
- timeSpanAuto: boolean;
181
- origin?: MapActionOrigin;
182
- }
183
- export interface ToggleAnimationLengthAutoPayload {
184
- mapId: string;
185
- autoAnimationLength: boolean;
186
- origin?: MapActionOrigin;
187
- }
188
- export interface ToggleTimeSliderHoverPayload {
189
- mapId: string;
190
- isTimeSliderHoverOn: boolean;
191
- }
192
- export interface ToggleTimeSliderIsVisiblePayload {
193
- mapId: string;
194
- isTimeSliderVisible: boolean;
195
- origin?: MapActionOrigin;
196
- }
197
- export interface SetTimeSliderWidthPayload {
198
- mapId: string;
199
- timeSliderWidth: number;
200
- }
201
- export interface SetTimeSliderCenterTimePayload {
202
- mapId: string;
203
- timeSliderCenterTime: number;
204
- }
205
- export interface SetTimeSliderSecondsPerPxPayload {
206
- mapId: string;
207
- timeSliderSecondsPerPx: number;
208
- }
209
- export interface ToggleZoomControlsPayload {
210
- mapId: string;
211
- shouldShowZoomControls: boolean;
212
- }
213
- export interface DisableMapPinPayload {
214
- mapId: string;
215
- disableMapPin: boolean;
216
- }
217
- export interface ToggleMapPinIsVisiblePayload {
218
- mapId: string;
219
- displayMapPin: boolean;
220
- }
221
- export interface SetMapPresetPayload {
222
- mapId: string;
223
- initialProps: MapPresetInitialProps;
224
- }
225
- export interface SetDockedLayerManagerSize {
226
- mapId: string;
227
- dockedLayerManagerSize: DockedLayerManagerSize;
228
- }
229
- export interface ISO8601Interval {
230
- startTime: string;
231
- endTime: string;
232
- duration: string;
233
- }
1
+ import { TimeInterval } from '@opengeoweb/webmap';
2
+ import { MapLocation } from '@opengeoweb/webmap-react';
3
+ import { SpeedFactorType } from '@opengeoweb/timeslider';
4
+ import type { Layer, LayerActionOrigin } from '../types';
5
+ import { 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
+ }
56
+ export type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
57
+ export interface WebMapState {
58
+ byId: Record<string, WebMap>;
59
+ allIds: string[];
60
+ }
61
+ export interface Bbox {
62
+ left: number;
63
+ right: number;
64
+ top: number;
65
+ bottom: number;
66
+ }
67
+ export declare enum AnimationLength {
68
+ Minutes15 = 15,
69
+ Minutes30 = 30,
70
+ Hours1 = 60,
71
+ Hours2 = 120,
72
+ Hours3 = 180,
73
+ Hours6 = 360,
74
+ Hours12 = 720,
75
+ Hours24 = 1440
76
+ }
77
+ export interface AnimationPayloadType {
78
+ duration?: number;
79
+ interval?: number;
80
+ speed?: SpeedFactorType;
81
+ endTime?: string;
82
+ shouldEndtimeOverride?: boolean;
83
+ }
84
+ export interface MapPreset {
85
+ layers?: Layer[];
86
+ activeLayerId?: string;
87
+ autoTimeStepLayerId?: string;
88
+ autoUpdateLayerId?: string;
89
+ proj?: {
90
+ bbox: Bbox;
91
+ srs: string;
92
+ };
93
+ dimensions?: Dimension[];
94
+ shouldAnimate?: boolean;
95
+ shouldAutoUpdate?: boolean;
96
+ showTimeSlider?: boolean;
97
+ displayMapPin?: boolean;
98
+ shouldShowZoomControls?: boolean;
99
+ toggleTimestepAuto?: boolean;
100
+ animationPayload?: AnimationPayloadType;
101
+ shouldShowLegend?: boolean;
102
+ shouldShowLayerManager?: boolean;
103
+ shouldShowDockedLayerManager?: boolean;
104
+ dockedLayerManagerSize?: DockedLayerManagerSize;
105
+ }
106
+ export interface MapPresetInitialProps {
107
+ mapPreset: MapPreset;
108
+ syncGroupsIds?: string[];
109
+ }
110
+ export interface MoveLayerPayload {
111
+ mapId: string;
112
+ oldIndex: number;
113
+ newIndex: number;
114
+ origin: string;
115
+ }
116
+ export interface TimeListType {
117
+ name: string;
118
+ value: string;
119
+ }
120
+ export interface SetMapAnimationStartPayload {
121
+ mapId: string;
122
+ start?: string;
123
+ initialTime?: string;
124
+ end?: string;
125
+ interval?: number;
126
+ timeList?: TimeListType[];
127
+ origin?: MapActionOrigin;
128
+ }
129
+ export interface SetMapAnimationStopPayload {
130
+ mapId: string;
131
+ origin?: MapActionOrigin;
132
+ }
133
+ export interface SetAutoLayerIdPayload {
134
+ mapId: string;
135
+ layerId?: string;
136
+ autoUpdateLayerId?: string;
137
+ autoTimeStepLayerId?: string;
138
+ origin?: LayerActionOrigin | string;
139
+ }
140
+ export interface ToggleAutoUpdatePayload {
141
+ mapId: string;
142
+ shouldAutoUpdate: boolean;
143
+ origin?: MapActionOrigin;
144
+ }
145
+ export interface SetEndTimeOverriding {
146
+ mapId: string;
147
+ shouldEndtimeOverride: boolean;
148
+ }
149
+ export interface SetTimeSliderSpanPayload {
150
+ mapId: string;
151
+ timeSliderSpan: number;
152
+ }
153
+ export interface SetTimeStepPayload {
154
+ mapId: string;
155
+ timeStep?: number;
156
+ origin?: MapActionOrigin;
157
+ }
158
+ export interface SetAnimationDelayPayload {
159
+ mapId: string;
160
+ animationDelay: number;
161
+ origin?: MapActionOrigin;
162
+ }
163
+ export interface SetAnimationStartTimePayload {
164
+ mapId: string;
165
+ animationStartTime: string;
166
+ origin?: MapActionOrigin;
167
+ }
168
+ export interface SetAnimationEndTimePayload {
169
+ mapId: string;
170
+ animationEndTime: string;
171
+ origin?: MapActionOrigin;
172
+ }
173
+ export interface ToggleTimestepAutoPayload {
174
+ mapId: string;
175
+ timestepAuto: boolean;
176
+ origin?: MapActionOrigin;
177
+ }
178
+ export interface ToggleTimeSpanAutoPayload {
179
+ mapId: string;
180
+ timeSpanAuto: boolean;
181
+ origin?: MapActionOrigin;
182
+ }
183
+ export interface ToggleAnimationLengthAutoPayload {
184
+ mapId: string;
185
+ autoAnimationLength: boolean;
186
+ origin?: MapActionOrigin;
187
+ }
188
+ export interface ToggleTimeSliderHoverPayload {
189
+ mapId: string;
190
+ isTimeSliderHoverOn: boolean;
191
+ }
192
+ export interface ToggleTimeSliderIsVisiblePayload {
193
+ mapId: string;
194
+ isTimeSliderVisible: boolean;
195
+ origin?: MapActionOrigin;
196
+ }
197
+ export interface SetTimeSliderWidthPayload {
198
+ mapId: string;
199
+ timeSliderWidth: number;
200
+ }
201
+ export interface SetTimeSliderCenterTimePayload {
202
+ mapId: string;
203
+ timeSliderCenterTime: number;
204
+ }
205
+ export interface SetTimeSliderSecondsPerPxPayload {
206
+ mapId: string;
207
+ timeSliderSecondsPerPx: number;
208
+ }
209
+ export interface ToggleZoomControlsPayload {
210
+ mapId: string;
211
+ shouldShowZoomControls: boolean;
212
+ }
213
+ export interface DisableMapPinPayload {
214
+ mapId: string;
215
+ disableMapPin: boolean;
216
+ }
217
+ export interface ToggleMapPinIsVisiblePayload {
218
+ mapId: string;
219
+ displayMapPin: boolean;
220
+ }
221
+ export interface SetMapPresetPayload {
222
+ mapId: string;
223
+ initialProps: MapPresetInitialProps;
224
+ }
225
+ export interface SetDockedLayerManagerSize {
226
+ mapId: string;
227
+ dockedLayerManagerSize: DockedLayerManagerSize;
228
+ }
229
+ export interface ISO8601Interval {
230
+ startTime: string;
231
+ endTime: string;
232
+ duration: string;
233
+ }
@@ -1,85 +1,85 @@
1
- import { TimeInterval } from '@opengeoweb/webmap';
2
- import { SpeedFactorType } from '@opengeoweb/timeslider';
3
- import { Bbox, Dimension } from './types';
4
- import type { WebMapState, WebMap, ISO8601Interval, WebMapAnimationList } from '../types';
5
- import type { Layer } from '../layers/types';
6
- export declare const dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'";
7
- export interface CreateMapProps {
8
- id: string;
9
- isAnimating?: boolean;
10
- animationStartTime?: string;
11
- animationEndTime?: string;
12
- isAutoUpdating?: boolean;
13
- shouldEndtimeOverride?: boolean;
14
- srs?: string;
15
- bbox?: Bbox;
16
- mapLayers?: string[];
17
- baseLayers?: string[];
18
- overLayers?: string[];
19
- featureLayers?: string[];
20
- dimensions?: Dimension[];
21
- autoTimeStepLayerId?: string;
22
- autoUpdateLayerId?: string;
23
- timeSliderSpan?: number;
24
- timeStep?: number;
25
- animationDelay?: number;
26
- timeSliderWidth?: number;
27
- timeSliderCenterTime?: number;
28
- timeSliderSecondsPerPx?: number;
29
- isTimestepAuto?: boolean;
30
- isTimeSpanAuto?: boolean;
31
- isTimeSliderHoverOn?: boolean;
32
- isTimeSliderVisible?: boolean;
33
- displayMapPin?: boolean;
34
- disableMapPin?: boolean;
35
- shouldShowZoomControls?: boolean;
36
- }
37
- 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;
38
- export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
39
- /**
40
- * This will get the map from the map draftstate.
41
- * If the mapId is not found, it registers one and returns it.
42
- * @param mapId The mapID
43
- * @param draft Draft map state
44
- */
45
- export declare const getDraftMapById: (mapId: string, draft: WebMapState) => WebMap;
46
- /**
47
- * Sets the map dimension in the state.
48
- * It will add dimensions to the map if they are missing.
49
- * If will update the existing dimensions if overwriteCurrentValue is set to true
50
- * @param draft The map draft state
51
- * @param mapId The mapId to update the dimensions for
52
- * @param dimensionFromAction The dimension from the action
53
- * @param overwriteCurrentValue True to overwrite existing value. False to add a new dimension if one is not there yet.
54
- */
55
- export declare const produceDraftStateSetWebMapDimension: (draft: WebMapState, mapId: string, dimensionFromAction: Dimension, overwriteCurrentValue: boolean) => void;
56
- /**
57
- * Find the mapId belonging to a layerId
58
- * @param draft The WebMapState containing the state of all maps.
59
- * @param layerId The layer Id to find in the maps
60
- */
61
- export declare const findMapIdFromLayerId: (mapState?: WebMapState, layerId?: string) => string | null;
62
- export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: WebMapState, layerId: string, dimension: Dimension) => void;
63
- /**
64
- * Returns array with new order of swapped elements
65
- * @param array Array with ids
66
- * @param oldIndex Old index of element in array
67
- * @param newIndex New index of element in array
68
- */
69
- export declare function moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
70
- export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
71
- export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
72
- export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
73
- /**
74
- * @param animationStart
75
- * @param animationEnd
76
- * @param iso8601Intervals
77
- * @returns WebMapAnimationList with time points
78
- */
79
- export declare const generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => WebMapAnimationList;
80
- /**
81
- * Parses the time dimension values string to an array of ISO8601 intervals
82
- * @param timeInterval
83
- * @returns An array of ISO8601 intervals
84
- */
85
- export declare const parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => ISO8601Interval[];
1
+ import { TimeInterval } from '@opengeoweb/webmap';
2
+ import { SpeedFactorType } from '@opengeoweb/timeslider';
3
+ import { Bbox, Dimension } from './types';
4
+ import type { WebMapState, WebMap, ISO8601Interval, WebMapAnimationList } from '../types';
5
+ import type { Layer } from '../layers/types';
6
+ export declare const dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'";
7
+ export interface CreateMapProps {
8
+ id: string;
9
+ isAnimating?: boolean;
10
+ animationStartTime?: string;
11
+ animationEndTime?: string;
12
+ isAutoUpdating?: boolean;
13
+ shouldEndtimeOverride?: boolean;
14
+ srs?: string;
15
+ bbox?: Bbox;
16
+ mapLayers?: string[];
17
+ baseLayers?: string[];
18
+ overLayers?: string[];
19
+ featureLayers?: string[];
20
+ dimensions?: Dimension[];
21
+ autoTimeStepLayerId?: string;
22
+ autoUpdateLayerId?: string;
23
+ timeSliderSpan?: number;
24
+ timeStep?: number;
25
+ animationDelay?: number;
26
+ timeSliderWidth?: number;
27
+ timeSliderCenterTime?: number;
28
+ timeSliderSecondsPerPx?: number;
29
+ isTimestepAuto?: boolean;
30
+ isTimeSpanAuto?: boolean;
31
+ isTimeSliderHoverOn?: boolean;
32
+ isTimeSliderVisible?: boolean;
33
+ displayMapPin?: boolean;
34
+ disableMapPin?: boolean;
35
+ shouldShowZoomControls?: boolean;
36
+ }
37
+ 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;
38
+ export declare const checkValidLayersPayload: (layers: Layer[], mapId: string) => boolean;
39
+ /**
40
+ * This will get the map from the map draftstate.
41
+ * If the mapId is not found, it registers one and returns it.
42
+ * @param mapId The mapID
43
+ * @param draft Draft map state
44
+ */
45
+ export declare const getDraftMapById: (mapId: string, draft: WebMapState) => WebMap;
46
+ /**
47
+ * Sets the map dimension in the state.
48
+ * It will add dimensions to the map if they are missing.
49
+ * If will update the existing dimensions if overwriteCurrentValue is set to true
50
+ * @param draft The map draft state
51
+ * @param mapId The mapId to update the dimensions for
52
+ * @param dimensionFromAction The dimension from the action
53
+ * @param overwriteCurrentValue True to overwrite existing value. False to add a new dimension if one is not there yet.
54
+ */
55
+ export declare const produceDraftStateSetWebMapDimension: (draft: WebMapState, mapId: string, dimensionFromAction: Dimension, overwriteCurrentValue: boolean) => void;
56
+ /**
57
+ * Find the mapId belonging to a layerId
58
+ * @param draft The WebMapState containing the state of all maps.
59
+ * @param layerId The layer Id to find in the maps
60
+ */
61
+ export declare const findMapIdFromLayerId: (mapState?: WebMapState, layerId?: string) => string | null;
62
+ export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: WebMapState, layerId: string, dimension: Dimension) => void;
63
+ /**
64
+ * Returns array with new order of swapped elements
65
+ * @param array Array with ids
66
+ * @param oldIndex Old index of element in array
67
+ * @param newIndex New index of element in array
68
+ */
69
+ export declare function moveArrayElements<T>(array: T[], oldIndex: number, newIndex: number): T[];
70
+ export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
71
+ export declare const getSpeedFactor: (speedDelay: number) => SpeedFactorType;
72
+ export declare const getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
73
+ /**
74
+ * @param animationStart
75
+ * @param animationEnd
76
+ * @param iso8601Intervals
77
+ * @returns WebMapAnimationList with time points
78
+ */
79
+ export declare const generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => WebMapAnimationList;
80
+ /**
81
+ * Parses the time dimension values string to an array of ISO8601 intervals
82
+ * @param timeInterval
83
+ * @returns An array of ISO8601 intervals
84
+ */
85
+ export declare const parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => ISO8601Interval[];
@@ -1 +1 @@
1
- export {};
1
+ export {};