@opengeoweb/store 19.6.1 → 20.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.
- package/dist/index.esm.js +766 -326
- package/dist/src/store/drawingTool/selectors.d.ts +30 -30
- package/dist/src/store/map/layer/reducer.d.ts +3 -1
- package/dist/src/store/map/layer/types.d.ts +6 -1
- package/dist/src/store/map/map/index.d.ts +2 -2
- package/dist/src/store/map/map/olMapListenerAnimationUtils.d.ts +9 -0
- package/dist/src/store/map/map/reducer.d.ts +8 -1
- package/dist/src/store/map/map/selectors.d.ts +86 -13
- package/dist/src/store/map/map/types.d.ts +24 -2
- package/dist/src/store/ui/selectors.d.ts +4 -4
- package/package.json +46 -46
|
@@ -4,7 +4,7 @@ export declare const selectDrawToolById: (state: DrawtoolModuleStore, id: string
|
|
|
4
4
|
drawToolId: string;
|
|
5
5
|
geoJSONLayerId: string;
|
|
6
6
|
activeDrawModeId: string;
|
|
7
|
-
drawModes: import("
|
|
7
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
8
8
|
shouldAllowMultipleShapes: boolean;
|
|
9
9
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
10
10
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -30,7 +30,7 @@ export declare const getActiveDrawToolId: ((state: DrawtoolModuleStore) => strin
|
|
|
30
30
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
31
31
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
32
32
|
};
|
|
33
|
-
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("
|
|
33
|
+
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("libs/webmap-react/dist").DrawMode | undefined) & {
|
|
34
34
|
clearCache: () => void;
|
|
35
35
|
resultsCount: () => number;
|
|
36
36
|
resetResultsCount: () => void;
|
|
@@ -39,30 +39,30 @@ export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId:
|
|
|
39
39
|
drawToolId: string;
|
|
40
40
|
geoJSONLayerId: string;
|
|
41
41
|
activeDrawModeId: string;
|
|
42
|
-
drawModes: import("
|
|
42
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
43
43
|
shouldAllowMultipleShapes: boolean;
|
|
44
44
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
45
45
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
46
|
-
}, resultFuncArgs_1: string) => import("
|
|
46
|
+
}, resultFuncArgs_1: string) => import("libs/webmap-react/dist").DrawMode | undefined;
|
|
47
47
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
48
48
|
drawToolId: string;
|
|
49
49
|
geoJSONLayerId: string;
|
|
50
50
|
activeDrawModeId: string;
|
|
51
|
-
drawModes: import("
|
|
51
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
52
52
|
shouldAllowMultipleShapes: boolean;
|
|
53
53
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
54
54
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
55
|
-
}, resultFuncArgs_1: string) => import("
|
|
55
|
+
}, resultFuncArgs_1: string) => import("libs/webmap-react/dist").DrawMode | undefined) & {
|
|
56
56
|
clearCache: () => void;
|
|
57
57
|
resultsCount: () => number;
|
|
58
58
|
resetResultsCount: () => void;
|
|
59
59
|
};
|
|
60
|
-
lastResult: () => import("
|
|
60
|
+
lastResult: () => import("libs/webmap-react/dist").DrawMode | undefined;
|
|
61
61
|
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
62
62
|
drawToolId: string;
|
|
63
63
|
geoJSONLayerId: string;
|
|
64
64
|
activeDrawModeId: string;
|
|
65
|
-
drawModes: import("
|
|
65
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
66
66
|
shouldAllowMultipleShapes: boolean;
|
|
67
67
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
68
68
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -84,7 +84,7 @@ export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: stri
|
|
|
84
84
|
drawToolId: string;
|
|
85
85
|
geoJSONLayerId: string;
|
|
86
86
|
activeDrawModeId: string;
|
|
87
|
-
drawModes: import("
|
|
87
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
88
88
|
shouldAllowMultipleShapes: boolean;
|
|
89
89
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
90
90
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -93,7 +93,7 @@ export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: stri
|
|
|
93
93
|
drawToolId: string;
|
|
94
94
|
geoJSONLayerId: string;
|
|
95
95
|
activeDrawModeId: string;
|
|
96
|
-
drawModes: import("
|
|
96
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
97
97
|
shouldAllowMultipleShapes: boolean;
|
|
98
98
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
99
99
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -107,7 +107,7 @@ export declare const getActiveDrawModeId: ((state: DrawtoolModuleStore, id: stri
|
|
|
107
107
|
drawToolId: string;
|
|
108
108
|
geoJSONLayerId: string;
|
|
109
109
|
activeDrawModeId: string;
|
|
110
|
-
drawModes: import("
|
|
110
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
111
111
|
shouldAllowMultipleShapes: boolean;
|
|
112
112
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
113
113
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -129,7 +129,7 @@ export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id
|
|
|
129
129
|
drawToolId: string;
|
|
130
130
|
geoJSONLayerId: string;
|
|
131
131
|
activeDrawModeId: string;
|
|
132
|
-
drawModes: import("
|
|
132
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
133
133
|
shouldAllowMultipleShapes: boolean;
|
|
134
134
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
135
135
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -138,7 +138,7 @@ export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id
|
|
|
138
138
|
drawToolId: string;
|
|
139
139
|
geoJSONLayerId: string;
|
|
140
140
|
activeDrawModeId: string;
|
|
141
|
-
drawModes: import("
|
|
141
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
142
142
|
shouldAllowMultipleShapes: boolean;
|
|
143
143
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
144
144
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -152,7 +152,7 @@ export declare const getDrawToolGeoJSONLayerId: ((state: DrawtoolModuleStore, id
|
|
|
152
152
|
drawToolId: string;
|
|
153
153
|
geoJSONLayerId: string;
|
|
154
154
|
activeDrawModeId: string;
|
|
155
|
-
drawModes: import("
|
|
155
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
156
156
|
shouldAllowMultipleShapes: boolean;
|
|
157
157
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
158
158
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -174,7 +174,7 @@ export declare const getGeoJSONIntersectionLayerId: ((state: DrawtoolModuleStore
|
|
|
174
174
|
drawToolId: string;
|
|
175
175
|
geoJSONLayerId: string;
|
|
176
176
|
activeDrawModeId: string;
|
|
177
|
-
drawModes: import("
|
|
177
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
178
178
|
shouldAllowMultipleShapes: boolean;
|
|
179
179
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
180
180
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -183,7 +183,7 @@ export declare const getGeoJSONIntersectionLayerId: ((state: DrawtoolModuleStore
|
|
|
183
183
|
drawToolId: string;
|
|
184
184
|
geoJSONLayerId: string;
|
|
185
185
|
activeDrawModeId: string;
|
|
186
|
-
drawModes: import("
|
|
186
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
187
187
|
shouldAllowMultipleShapes: boolean;
|
|
188
188
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
189
189
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -197,7 +197,7 @@ export declare const getGeoJSONIntersectionLayerId: ((state: DrawtoolModuleStore
|
|
|
197
197
|
drawToolId: string;
|
|
198
198
|
geoJSONLayerId: string;
|
|
199
199
|
activeDrawModeId: string;
|
|
200
|
-
drawModes: import("
|
|
200
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
201
201
|
shouldAllowMultipleShapes: boolean;
|
|
202
202
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
203
203
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -219,7 +219,7 @@ export declare const getGeoJSONIntersectionBoundsLayerId: ((state: DrawtoolModul
|
|
|
219
219
|
drawToolId: string;
|
|
220
220
|
geoJSONLayerId: string;
|
|
221
221
|
activeDrawModeId: string;
|
|
222
|
-
drawModes: import("
|
|
222
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
223
223
|
shouldAllowMultipleShapes: boolean;
|
|
224
224
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
225
225
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -228,7 +228,7 @@ export declare const getGeoJSONIntersectionBoundsLayerId: ((state: DrawtoolModul
|
|
|
228
228
|
drawToolId: string;
|
|
229
229
|
geoJSONLayerId: string;
|
|
230
230
|
activeDrawModeId: string;
|
|
231
|
-
drawModes: import("
|
|
231
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
232
232
|
shouldAllowMultipleShapes: boolean;
|
|
233
233
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
234
234
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -242,7 +242,7 @@ export declare const getGeoJSONIntersectionBoundsLayerId: ((state: DrawtoolModul
|
|
|
242
242
|
drawToolId: string;
|
|
243
243
|
geoJSONLayerId: string;
|
|
244
244
|
activeDrawModeId: string;
|
|
245
|
-
drawModes: import("
|
|
245
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
246
246
|
shouldAllowMultipleShapes: boolean;
|
|
247
247
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
248
248
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -264,7 +264,7 @@ export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore,
|
|
|
264
264
|
drawToolId: string;
|
|
265
265
|
geoJSONLayerId: string;
|
|
266
266
|
activeDrawModeId: string;
|
|
267
|
-
drawModes: import("
|
|
267
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
268
268
|
shouldAllowMultipleShapes: boolean;
|
|
269
269
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
270
270
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -273,7 +273,7 @@ export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore,
|
|
|
273
273
|
drawToolId: string;
|
|
274
274
|
geoJSONLayerId: string;
|
|
275
275
|
activeDrawModeId: string;
|
|
276
|
-
drawModes: import("
|
|
276
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
277
277
|
shouldAllowMultipleShapes: boolean;
|
|
278
278
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
279
279
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -287,7 +287,7 @@ export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore,
|
|
|
287
287
|
drawToolId: string;
|
|
288
288
|
geoJSONLayerId: string;
|
|
289
289
|
activeDrawModeId: string;
|
|
290
|
-
drawModes: import("
|
|
290
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
291
291
|
shouldAllowMultipleShapes: boolean;
|
|
292
292
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
293
293
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -300,7 +300,7 @@ export declare const getShouldAllowMultipleShapes: ((state: DrawtoolModuleStore,
|
|
|
300
300
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
301
301
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
302
302
|
};
|
|
303
|
-
export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id: string) => import("
|
|
303
|
+
export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id: string) => import("libs/webmap-react/dist").DrawMode | undefined) & {
|
|
304
304
|
clearCache: () => void;
|
|
305
305
|
resultsCount: () => number;
|
|
306
306
|
resetResultsCount: () => void;
|
|
@@ -309,30 +309,30 @@ export declare const getActiveDrawMode: ((state: DrawtoolModuleStore, id: string
|
|
|
309
309
|
drawToolId: string;
|
|
310
310
|
geoJSONLayerId: string;
|
|
311
311
|
activeDrawModeId: string;
|
|
312
|
-
drawModes: import("
|
|
312
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
313
313
|
shouldAllowMultipleShapes: boolean;
|
|
314
314
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
315
315
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
316
|
-
}) => import("
|
|
316
|
+
}) => import("libs/webmap-react/dist").DrawMode | undefined;
|
|
317
317
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
318
318
|
drawToolId: string;
|
|
319
319
|
geoJSONLayerId: string;
|
|
320
320
|
activeDrawModeId: string;
|
|
321
|
-
drawModes: import("
|
|
321
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
322
322
|
shouldAllowMultipleShapes: boolean;
|
|
323
323
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
324
324
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
325
|
-
}) => import("
|
|
325
|
+
}) => import("libs/webmap-react/dist").DrawMode | undefined) & {
|
|
326
326
|
clearCache: () => void;
|
|
327
327
|
resultsCount: () => number;
|
|
328
328
|
resetResultsCount: () => void;
|
|
329
329
|
};
|
|
330
|
-
lastResult: () => import("
|
|
330
|
+
lastResult: () => import("libs/webmap-react/dist").DrawMode | undefined;
|
|
331
331
|
dependencies: [(state: DrawtoolModuleStore, id: string) => {
|
|
332
332
|
drawToolId: string;
|
|
333
333
|
geoJSONLayerId: string;
|
|
334
334
|
activeDrawModeId: string;
|
|
335
|
-
drawModes: import("
|
|
335
|
+
drawModes: import("libs/webmap-react/dist").DrawMode[];
|
|
336
336
|
shouldAllowMultipleShapes: boolean;
|
|
337
337
|
geoJSONIntersectionLayerId?: string | undefined;
|
|
338
338
|
geoJSONIntersectionBoundsLayerId?: string | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import type { SetLayerAcceptanceTimePayload, SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
|
-
import type { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerServicePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturesPayload, SetHoveredFeaturesPayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DeleteFeaturePayload, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload, SetLayerOptionsPayload, SetLayerLegendVisibilityPayload } from './types';
|
|
3
|
+
import type { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerServicePayload, SetLayerGeojsonPayload, DeleteLayerPayload, MoveFeaturesPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturesPayload, SetHoveredFeaturesPayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DeleteFeaturePayload, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload, SetLayerOptionsPayload, SetLayerLegendVisibilityPayload } from './types';
|
|
4
4
|
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, useLatestReferenceTime, ...props }: Layer) => Layer;
|
|
5
5
|
export declare const initialState: LayerState;
|
|
6
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
@@ -38,6 +38,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
38
38
|
setHoveredFeatures: (draft: Draft<LayerState>, action: PayloadAction<SetHoveredFeaturesPayload>) => void;
|
|
39
39
|
updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
|
|
40
40
|
updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
|
|
41
|
+
moveFeatures: (draft: Draft<LayerState>, action: PayloadAction<MoveFeaturesPayload>) => void;
|
|
41
42
|
deleteFeature: (draft: Draft<LayerState>, action: PayloadAction<DeleteFeaturePayload>) => void;
|
|
42
43
|
toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
|
|
43
44
|
exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
|
|
@@ -83,6 +84,7 @@ export declare const layerReducer: import("redux").Reducer<LayerState>, layerAct
|
|
|
83
84
|
setHoveredFeatures: (draft: Draft<LayerState>, action: PayloadAction<SetHoveredFeaturesPayload>) => void;
|
|
84
85
|
updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
|
|
85
86
|
updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
|
|
87
|
+
moveFeatures: (draft: Draft<LayerState>, action: PayloadAction<MoveFeaturesPayload>) => void;
|
|
86
88
|
deleteFeature: (draft: Draft<LayerState>, action: PayloadAction<DeleteFeaturePayload>) => void;
|
|
87
89
|
toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
|
|
88
90
|
exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Action } from '@reduxjs/toolkit';
|
|
2
2
|
import type { FeatureCollection } from 'geojson';
|
|
3
3
|
import type { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
-
import type { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
4
|
+
import type { MovedFeature, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
5
5
|
import type { SyncGroupActionOrigin } from '../../generic/syncGroups/types';
|
|
6
6
|
import type { uiTypes } from '../../ui';
|
|
7
7
|
import type { Dimension } from '../map/types';
|
|
@@ -178,6 +178,11 @@ export interface UpdateFeaturePropertiesPayload extends LayerPayload {
|
|
|
178
178
|
export interface DeleteFeaturePayload extends LayerPayload {
|
|
179
179
|
featureId: string;
|
|
180
180
|
}
|
|
181
|
+
export interface MoveFeaturesPayload extends LayerPayload {
|
|
182
|
+
movedFeatures: MovedFeature[];
|
|
183
|
+
geoJSONIntersectionLayerId?: string;
|
|
184
|
+
geoJSONIntersectionBoundsLayerId?: string;
|
|
185
|
+
}
|
|
181
186
|
export interface ToggleFeatureModePayload extends LayerPayload {
|
|
182
187
|
isInEditMode?: boolean;
|
|
183
188
|
drawMode?: string;
|
|
@@ -10,8 +10,8 @@ export declare const mapUtils: {
|
|
|
10
10
|
produceDraftStateSetWebMapDimension: (draft: mapTypes.WebMapState, mapId: string, dimensionFromAction: mapTypes.Dimension, overwriteCurrentValue: boolean) => void;
|
|
11
11
|
findMapIdFromLayerId: (mapState?: mapTypes.WebMapState, layerId?: string) => string | null;
|
|
12
12
|
produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: mapTypes.WebMapState, layerId: string, dimension: mapTypes.Dimension) => void;
|
|
13
|
-
getTimeStepFromDataInterval: (timeInterval: import("
|
|
14
|
-
getSpeedFactor: (speedDelay: number) => import("
|
|
13
|
+
getTimeStepFromDataInterval: (timeInterval: import("libs/webmap/dist").TimeInterval) => number;
|
|
14
|
+
getSpeedFactor: (speedDelay: number) => import("libs/time-slider/dist").SpeedFactorType;
|
|
15
15
|
getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
16
16
|
generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined, animationInterval?: number) => mapTypes.WebMapAnimationList;
|
|
17
17
|
parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
|
|
@@ -29,6 +29,15 @@ export declare const setStep: (timerId: string, timerStep: number) => void;
|
|
|
29
29
|
* @returns
|
|
30
30
|
*/
|
|
31
31
|
export declare const getCurrentStep: (timerId: string) => number;
|
|
32
|
+
/**
|
|
33
|
+
* Re-anchors the step index to the frame closest to what's already showing.
|
|
34
|
+
* Without this, a range change while animating leaves the index pointing at
|
|
35
|
+
* the same position in the (now different) frame list, so playback silently
|
|
36
|
+
* jumps by however far the range moved instead of continuing smoothly.
|
|
37
|
+
* @param timerId
|
|
38
|
+
* @param listenerApi
|
|
39
|
+
*/
|
|
40
|
+
export declare const preserveAnimationStep: (timerId: string, listenerApi: ListenerEffectAPI<CoreAppStore, Dispatch, unknown>) => void;
|
|
32
41
|
/**
|
|
33
42
|
* Checks if the next step is available for all provided layers
|
|
34
43
|
* @param reduxLayers
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import type { MapPinLocationPayload, SetBboxPayload, SetStepBackWardOrForward, UpdateAllMapDimensionsPayload } from '@opengeoweb/webmap-react';
|
|
3
|
-
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, SetDockedLayerManagerPosition, SetDockedLayerManagerDimensions, ToggleAnimationLengthAutoPayload, SetDefaultMapSettingsPayload, ToggleClockPayload, SetClockPositionSizePayload, SetLegendPositionSizePayload } from './types';
|
|
3
|
+
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, SetDockedLayerManagerPosition, SetDockedLayerManagerDimensions, ToggleAnimationLengthAutoPayload, SetAnimationLengthPayload, RefreshAnimationRangePayload, SetDefaultMapSettingsPayload, ToggleClockPayload, SetClockPositionSizePayload, SetPendingInitialZoomToLayerPayload, SetLegendPositionSizePayload } from './types';
|
|
4
4
|
import type { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
|
|
5
5
|
import type { MapActionOrigin } from './enums';
|
|
6
6
|
/**
|
|
@@ -27,6 +27,8 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
27
27
|
setTimeStep: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeStepPayload>) => void;
|
|
28
28
|
setAnimationStartTime: (draft: Draft<WebMapState>, action: PayloadAction<SetAnimationStartTimePayload>) => void;
|
|
29
29
|
setAnimationEndTime: (draft: Draft<WebMapState>, action: PayloadAction<SetAnimationEndTimePayload>) => void;
|
|
30
|
+
setAnimationLength: (draft: Draft<WebMapState>, action: PayloadAction<SetAnimationLengthPayload>) => void;
|
|
31
|
+
refreshAnimationRange: (draft: Draft<WebMapState>, action: PayloadAction<RefreshAnimationRangePayload>) => void;
|
|
30
32
|
setAnimationDelay: (draft: Draft<WebMapState>, action: PayloadAction<SetAnimationDelayPayload>) => void;
|
|
31
33
|
layerMoveLayer: (draft: Draft<WebMapState>, action: PayloadAction<MoveLayerPayload>) => void;
|
|
32
34
|
setAutoLayerId: (draft: Draft<WebMapState>, action: PayloadAction<SetAutoLayerIdPayload>) => void;
|
|
@@ -46,6 +48,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
46
48
|
setEndTimeOverriding: (draft: Draft<WebMapState>, action: PayloadAction<SetEndTimeOverriding>) => void;
|
|
47
49
|
toggleTimestepAuto: (draft: Draft<WebMapState>, action: PayloadAction<ToggleTimestepAutoPayload>) => void;
|
|
48
50
|
toggleTimeSpanAuto: (draft: Draft<WebMapState>, action: PayloadAction<ToggleTimeSpanAutoPayload>) => void;
|
|
51
|
+
/** Superseded by setAnimationLength; removed together with the old animation length button. */
|
|
49
52
|
toggleAnimationLengthAuto: (draft: Draft<WebMapState>, action: PayloadAction<ToggleAnimationLengthAutoPayload>) => void;
|
|
50
53
|
toggleTimeSliderHover: (draft: Draft<WebMapState>, action: PayloadAction<ToggleTimeSliderHoverPayload>) => void;
|
|
51
54
|
toggleTimeSliderIsVisible: (draft: Draft<WebMapState>, action: PayloadAction<ToggleTimeSliderIsVisiblePayload>) => void;
|
|
@@ -56,6 +59,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
56
59
|
setDockedLayerManagerSize: (draft: Draft<WebMapState>, action: PayloadAction<SetDockedLayerManagerSize>) => void;
|
|
57
60
|
setDockedLayerManagerPosition: (draft: Draft<WebMapState>, action: PayloadAction<SetDockedLayerManagerPosition>) => void;
|
|
58
61
|
setDockedLayerManagerDimensions: (draft: Draft<WebMapState>, action: PayloadAction<SetDockedLayerManagerDimensions>) => void;
|
|
62
|
+
setPendingInitialZoomToLayer: (draft: Draft<WebMapState>, action: PayloadAction<SetPendingInitialZoomToLayerPayload>) => void;
|
|
59
63
|
setMapPresetError: (_draft: Draft<WebMapState>, _action: PayloadAction<{
|
|
60
64
|
mapId: string;
|
|
61
65
|
error?: string;
|
|
@@ -93,6 +97,8 @@ export declare const mapActions: {
|
|
|
93
97
|
setTimeStep: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeStepPayload, "mapReducer/setTimeStep">;
|
|
94
98
|
setAnimationStartTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationStartTimePayload, "mapReducer/setAnimationStartTime">;
|
|
95
99
|
setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationEndTimePayload, "mapReducer/setAnimationEndTime">;
|
|
100
|
+
setAnimationLength: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationLengthPayload, "mapReducer/setAnimationLength">;
|
|
101
|
+
refreshAnimationRange: import("@reduxjs/toolkit").ActionCreatorWithPayload<RefreshAnimationRangePayload, "mapReducer/refreshAnimationRange">;
|
|
96
102
|
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationDelayPayload, "mapReducer/setAnimationDelay">;
|
|
97
103
|
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveLayerPayload, "mapReducer/layerMoveLayer">;
|
|
98
104
|
setAutoLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAutoLayerIdPayload, "mapReducer/setAutoLayerId">;
|
|
@@ -122,6 +128,7 @@ export declare const mapActions: {
|
|
|
122
128
|
setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDockedLayerManagerSize, "mapReducer/setDockedLayerManagerSize">;
|
|
123
129
|
setDockedLayerManagerPosition: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDockedLayerManagerPosition, "mapReducer/setDockedLayerManagerPosition">;
|
|
124
130
|
setDockedLayerManagerDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDockedLayerManagerDimensions, "mapReducer/setDockedLayerManagerDimensions">;
|
|
131
|
+
setPendingInitialZoomToLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetPendingInitialZoomToLayerPayload, "mapReducer/setPendingInitialZoomToLayer">;
|
|
125
132
|
setMapPresetError: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
126
133
|
mapId: string;
|
|
127
134
|
error?: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AnimationLengthSetting } from '@opengeoweb/time-slider';
|
|
1
2
|
import type { Bbox, ClockPosition, ClockSize, LegendPosition, LegendSize, MapPreset, WebMap, WebMapState } from './types';
|
|
2
3
|
import type { CoreAppStore } from '../../types';
|
|
3
4
|
import { uiTypes } from '../../ui';
|
|
@@ -1412,7 +1413,35 @@ export declare const isTimestepAuto: ((state: CoreAppStore, mapId: string) => bo
|
|
|
1412
1413
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
1413
1414
|
};
|
|
1414
1415
|
/**
|
|
1415
|
-
* Returns
|
|
1416
|
+
* Returns how the animation length is determined for the map
|
|
1417
|
+
* @param {object} store store: object - store object
|
|
1418
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
1419
|
+
* @returns {AnimationLengthSetting | undefined} returnType: AnimationLengthSetting
|
|
1420
|
+
*/
|
|
1421
|
+
export declare const getAnimationLength: ((state: CoreAppStore, mapId: string) => AnimationLengthSetting | undefined) & {
|
|
1422
|
+
clearCache: () => void;
|
|
1423
|
+
resultsCount: () => number;
|
|
1424
|
+
resetResultsCount: () => void;
|
|
1425
|
+
} & {
|
|
1426
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => AnimationLengthSetting | undefined;
|
|
1427
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => AnimationLengthSetting | undefined) & {
|
|
1428
|
+
clearCache: () => void;
|
|
1429
|
+
resultsCount: () => number;
|
|
1430
|
+
resetResultsCount: () => void;
|
|
1431
|
+
};
|
|
1432
|
+
lastResult: () => AnimationLengthSetting | undefined;
|
|
1433
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
1434
|
+
recomputations: () => number;
|
|
1435
|
+
resetRecomputations: () => void;
|
|
1436
|
+
dependencyRecomputations: () => number;
|
|
1437
|
+
resetDependencyRecomputations: () => void;
|
|
1438
|
+
} & {
|
|
1439
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
1440
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
1441
|
+
};
|
|
1442
|
+
/**
|
|
1443
|
+
* Returns map is animation auto. Superseded by getAnimationLength; removed
|
|
1444
|
+
* together with the old animation length button.
|
|
1416
1445
|
* @param {object} store store: object - store object
|
|
1417
1446
|
* @param {string} mapId mapId: string - Id of the map
|
|
1418
1447
|
* @returns {boolean} returnType: boolean
|
|
@@ -1959,18 +1988,18 @@ export declare const getAllUniqueDimensions: ((state: CoreAppStore) => string[])
|
|
|
1959
1988
|
* @param {string} mapId mapId: string - Id of the map
|
|
1960
1989
|
* @returns {object} returnType: latitude and longitude of pin
|
|
1961
1990
|
*/
|
|
1962
|
-
export declare const getPinLocation: ((state: CoreAppStore, mapId: string) => import("
|
|
1991
|
+
export declare const getPinLocation: ((state: CoreAppStore, mapId: string) => import("libs/webmap-react/dist").MapLocation | undefined) & {
|
|
1963
1992
|
clearCache: () => void;
|
|
1964
1993
|
resultsCount: () => number;
|
|
1965
1994
|
resetResultsCount: () => void;
|
|
1966
1995
|
} & {
|
|
1967
|
-
resultFunc: (resultFuncArgs_0: WebMap | undefined) => import("
|
|
1968
|
-
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => import("
|
|
1996
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => import("libs/webmap-react/dist").MapLocation | undefined;
|
|
1997
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => import("libs/webmap-react/dist").MapLocation | undefined) & {
|
|
1969
1998
|
clearCache: () => void;
|
|
1970
1999
|
resultsCount: () => number;
|
|
1971
2000
|
resetResultsCount: () => void;
|
|
1972
2001
|
};
|
|
1973
|
-
lastResult: () => import("
|
|
2002
|
+
lastResult: () => import("libs/webmap-react/dist").MapLocation | undefined;
|
|
1974
2003
|
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
1975
2004
|
recomputations: () => number;
|
|
1976
2005
|
resetRecomputations: () => void;
|
|
@@ -2202,8 +2231,8 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
|
|
|
2202
2231
|
resultsCount: () => number;
|
|
2203
2232
|
resetResultsCount: () => void;
|
|
2204
2233
|
} & {
|
|
2205
|
-
resultFunc: (resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: Dimension[] | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: boolean | undefined, resultFuncArgs_21:
|
|
2206
|
-
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: Dimension[] | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: boolean | undefined, resultFuncArgs_21:
|
|
2234
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: Dimension[] | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: boolean | undefined, resultFuncArgs_21: AnimationLengthSetting | undefined, resultFuncArgs_22: DockedLayerManagerSize, resultFuncArgs_23: DockedLayerManagerPosition, resultFuncArgs_24: DockedLayerManagerDimensions | undefined, resultFuncArgs_25: boolean | undefined, resultFuncArgs_26: boolean | undefined, resultFuncArgs_27: ClockPosition | undefined, resultFuncArgs_28: ClockSize | undefined, resultFuncArgs_29: LegendPosition | undefined, resultFuncArgs_30: LegendSize | undefined, resultFuncArgs_31: uiTypes.UIStoreType, resultFuncArgs_32: string, resultFuncArgs_33: string) => MapPreset;
|
|
2235
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer[], resultFuncArgs_1: ReduxLayer[], resultFuncArgs_2: ReduxLayer[], resultFuncArgs_3: Bbox, resultFuncArgs_4: string, resultFuncArgs_5: string | undefined, resultFuncArgs_6: string | undefined, resultFuncArgs_7: string | undefined, resultFuncArgs_8: boolean, resultFuncArgs_9: boolean, resultFuncArgs_10: boolean | undefined, resultFuncArgs_11: boolean | undefined, resultFuncArgs_12: boolean | undefined, resultFuncArgs_13: number, resultFuncArgs_14: number | undefined, resultFuncArgs_15: string | undefined, resultFuncArgs_16: string | undefined, resultFuncArgs_17: number | undefined, resultFuncArgs_18: Dimension[] | undefined, resultFuncArgs_19: boolean | undefined, resultFuncArgs_20: boolean | undefined, resultFuncArgs_21: AnimationLengthSetting | undefined, resultFuncArgs_22: DockedLayerManagerSize, resultFuncArgs_23: DockedLayerManagerPosition, resultFuncArgs_24: DockedLayerManagerDimensions | undefined, resultFuncArgs_25: boolean | undefined, resultFuncArgs_26: boolean | undefined, resultFuncArgs_27: ClockPosition | undefined, resultFuncArgs_28: ClockSize | undefined, resultFuncArgs_29: LegendPosition | undefined, resultFuncArgs_30: LegendSize | undefined, resultFuncArgs_31: uiTypes.UIStoreType, resultFuncArgs_32: string, resultFuncArgs_33: string) => MapPreset) & {
|
|
2207
2236
|
clearCache: () => void;
|
|
2208
2237
|
resultsCount: () => number;
|
|
2209
2238
|
resetResultsCount: () => void;
|
|
@@ -2729,6 +2758,26 @@ export declare const getMapPreset: ((state: CoreAppStore & uiTypes.UIModuleState
|
|
|
2729
2758
|
} & {
|
|
2730
2759
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2731
2760
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2761
|
+
}, ((state: CoreAppStore, mapId: string) => AnimationLengthSetting | undefined) & {
|
|
2762
|
+
clearCache: () => void;
|
|
2763
|
+
resultsCount: () => number;
|
|
2764
|
+
resetResultsCount: () => void;
|
|
2765
|
+
} & {
|
|
2766
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => AnimationLengthSetting | undefined;
|
|
2767
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => AnimationLengthSetting | undefined) & {
|
|
2768
|
+
clearCache: () => void;
|
|
2769
|
+
resultsCount: () => number;
|
|
2770
|
+
resetResultsCount: () => void;
|
|
2771
|
+
};
|
|
2772
|
+
lastResult: () => AnimationLengthSetting | undefined;
|
|
2773
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2774
|
+
recomputations: () => number;
|
|
2775
|
+
resetRecomputations: () => void;
|
|
2776
|
+
dependencyRecomputations: () => number;
|
|
2777
|
+
resetDependencyRecomputations: () => void;
|
|
2778
|
+
} & {
|
|
2779
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2780
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2732
2781
|
}, (store: CoreAppStore, mapId: string) => DockedLayerManagerSize, (store: CoreAppStore, mapId: string) => DockedLayerManagerPosition, (store: CoreAppStore, mapId: string) => DockedLayerManagerDimensions | undefined, ((state: CoreAppStore, mapId: string) => boolean | undefined) & {
|
|
2733
2782
|
clearCache: () => void;
|
|
2734
2783
|
resultsCount: () => number;
|
|
@@ -3340,11 +3389,11 @@ export declare const getAnimationRange: ((state: CoreAppStore, mapId: string) =>
|
|
|
3340
3389
|
resultsCount: () => number;
|
|
3341
3390
|
resetResultsCount: () => void;
|
|
3342
3391
|
} & {
|
|
3343
|
-
resultFunc: (resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4:
|
|
3392
|
+
resultFunc: (resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4: AnimationLengthSetting | undefined) => {
|
|
3344
3393
|
animationStartTime: string | undefined;
|
|
3345
3394
|
animationEndTime: string | undefined;
|
|
3346
3395
|
};
|
|
3347
|
-
memoizedResultFunc: ((resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4:
|
|
3396
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: string | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4: AnimationLengthSetting | undefined) => {
|
|
3348
3397
|
animationStartTime: string | undefined;
|
|
3349
3398
|
animationEndTime: string | undefined;
|
|
3350
3399
|
}) & {
|
|
@@ -3436,18 +3485,18 @@ export declare const getAnimationRange: ((state: CoreAppStore, mapId: string) =>
|
|
|
3436
3485
|
} & {
|
|
3437
3486
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3438
3487
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
3439
|
-
}, ((state: CoreAppStore, mapId: string) =>
|
|
3488
|
+
}, ((state: CoreAppStore, mapId: string) => AnimationLengthSetting | undefined) & {
|
|
3440
3489
|
clearCache: () => void;
|
|
3441
3490
|
resultsCount: () => number;
|
|
3442
3491
|
resetResultsCount: () => void;
|
|
3443
3492
|
} & {
|
|
3444
|
-
resultFunc: (resultFuncArgs_0: WebMap | undefined) =>
|
|
3445
|
-
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) =>
|
|
3493
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => AnimationLengthSetting | undefined;
|
|
3494
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => AnimationLengthSetting | undefined) & {
|
|
3446
3495
|
clearCache: () => void;
|
|
3447
3496
|
resultsCount: () => number;
|
|
3448
3497
|
resetResultsCount: () => void;
|
|
3449
3498
|
};
|
|
3450
|
-
lastResult: () =>
|
|
3499
|
+
lastResult: () => AnimationLengthSetting | undefined;
|
|
3451
3500
|
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
3452
3501
|
recomputations: () => number;
|
|
3453
3502
|
resetRecomputations: () => void;
|
|
@@ -3613,3 +3662,27 @@ export declare const getRefTimeDimensionModes: ((state: CoreAppStore) => import(
|
|
|
3613
3662
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3614
3663
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
3615
3664
|
};
|
|
3665
|
+
/**
|
|
3666
|
+
* Gets the initialZoomToLayerId flag from map state
|
|
3667
|
+
*/
|
|
3668
|
+
export declare const getInitialZoomToLayerId: ((state: CoreAppStore, mapId: string) => string | undefined) & {
|
|
3669
|
+
clearCache: () => void;
|
|
3670
|
+
resultsCount: () => number;
|
|
3671
|
+
resetResultsCount: () => void;
|
|
3672
|
+
} & {
|
|
3673
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => string | undefined;
|
|
3674
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => string | undefined) & {
|
|
3675
|
+
clearCache: () => void;
|
|
3676
|
+
resultsCount: () => number;
|
|
3677
|
+
resetResultsCount: () => void;
|
|
3678
|
+
};
|
|
3679
|
+
lastResult: () => string | undefined;
|
|
3680
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
3681
|
+
recomputations: () => number;
|
|
3682
|
+
resetRecomputations: () => void;
|
|
3683
|
+
dependencyRecomputations: () => number;
|
|
3684
|
+
resetDependencyRecomputations: () => void;
|
|
3685
|
+
} & {
|
|
3686
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3687
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3688
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
1
|
+
import type { AnimationLengthSetting, SpeedFactorType } from '@opengeoweb/time-slider';
|
|
2
2
|
import type { RefTimeDimensionModes, TimeInterval } from '@opengeoweb/webmap';
|
|
3
3
|
import type { MapLocation } from '@opengeoweb/webmap-react';
|
|
4
4
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
@@ -43,7 +43,7 @@ export interface WebMap {
|
|
|
43
43
|
timeSliderSecondsPerPx?: number;
|
|
44
44
|
isTimestepAuto?: boolean;
|
|
45
45
|
isTimeSpanAuto?: boolean;
|
|
46
|
-
|
|
46
|
+
animationLength?: AnimationLengthSetting;
|
|
47
47
|
isTimeSliderHoverOn?: boolean;
|
|
48
48
|
isTimeSliderVisible?: boolean;
|
|
49
49
|
shouldShowZoomControls?: boolean;
|
|
@@ -59,6 +59,7 @@ export interface WebMap {
|
|
|
59
59
|
isClockOptionsMenuVisible?: boolean;
|
|
60
60
|
clockPosition?: ClockPosition;
|
|
61
61
|
clockSize?: ClockSize;
|
|
62
|
+
initialZoomToLayerId?: string;
|
|
62
63
|
legendPosition?: LegendPosition;
|
|
63
64
|
legendSize?: LegendSize;
|
|
64
65
|
}
|
|
@@ -98,6 +99,7 @@ export interface AnimationPayloadType {
|
|
|
98
99
|
speed?: SpeedFactorType;
|
|
99
100
|
endTime?: string;
|
|
100
101
|
shouldEndtimeOverride?: boolean;
|
|
102
|
+
animationLength?: AnimationLengthSetting;
|
|
101
103
|
}
|
|
102
104
|
export interface MapPreset {
|
|
103
105
|
layers?: Layer[];
|
|
@@ -134,6 +136,7 @@ export interface MapPreset {
|
|
|
134
136
|
isClockOptionsMenuVisible?: boolean;
|
|
135
137
|
clockPosition?: ClockPosition;
|
|
136
138
|
clockSize?: ClockSize;
|
|
139
|
+
initialZoomToLayerId?: string;
|
|
137
140
|
}
|
|
138
141
|
export interface MapPresetInitialProps {
|
|
139
142
|
mapPreset: MapPreset;
|
|
@@ -197,11 +200,13 @@ export interface SetAnimationDelayPayload {
|
|
|
197
200
|
export interface SetAnimationStartTimePayload {
|
|
198
201
|
mapId: string;
|
|
199
202
|
animationStartTime: string;
|
|
203
|
+
skipSync?: boolean;
|
|
200
204
|
origin?: MapActionOrigin;
|
|
201
205
|
}
|
|
202
206
|
export interface SetAnimationEndTimePayload {
|
|
203
207
|
mapId: string;
|
|
204
208
|
animationEndTime: string;
|
|
209
|
+
skipSync?: boolean;
|
|
205
210
|
origin?: MapActionOrigin;
|
|
206
211
|
}
|
|
207
212
|
export interface ToggleTimestepAutoPayload {
|
|
@@ -219,6 +224,19 @@ export interface ToggleAnimationLengthAutoPayload {
|
|
|
219
224
|
autoAnimationLength: boolean;
|
|
220
225
|
origin?: MapActionOrigin;
|
|
221
226
|
}
|
|
227
|
+
export interface SetAnimationLengthPayload {
|
|
228
|
+
mapId: string;
|
|
229
|
+
animationLength: AnimationLengthSetting;
|
|
230
|
+
animationStartTime?: string;
|
|
231
|
+
animationEndTime?: string;
|
|
232
|
+
skipSync?: boolean;
|
|
233
|
+
origin?: MapActionOrigin;
|
|
234
|
+
}
|
|
235
|
+
export interface RefreshAnimationRangePayload {
|
|
236
|
+
mapId: string;
|
|
237
|
+
animationStartTime: string;
|
|
238
|
+
animationEndTime: string;
|
|
239
|
+
}
|
|
222
240
|
export interface ToggleTimeSliderHoverPayload {
|
|
223
241
|
mapId: string;
|
|
224
242
|
isTimeSliderHoverOn: boolean;
|
|
@@ -256,6 +274,10 @@ export interface SetMapPresetPayload {
|
|
|
256
274
|
mapId: string;
|
|
257
275
|
initialProps: MapPresetInitialProps;
|
|
258
276
|
}
|
|
277
|
+
export interface SetPendingInitialZoomToLayerPayload {
|
|
278
|
+
mapId: string;
|
|
279
|
+
layerId?: string;
|
|
280
|
+
}
|
|
259
281
|
export interface SetDockedLayerManagerSize {
|
|
260
282
|
mapId: string;
|
|
261
283
|
dockedLayerManagerSize: DockedLayerManagerSize;
|