@opengeoweb/store 12.13.0 → 13.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/index.esm.js +449 -289
- package/package.json +6 -6
- package/src/store/generic/linking/constants.d.ts +2 -1
- package/src/store/generic/selectors.d.ts +4 -4
- package/src/store/generic/synchronizationActions/types.d.ts +10 -1
- package/src/store/generic/types.d.ts +2 -1
- package/src/store/map/layer/reducer.d.ts +3 -1
- package/src/store/map/layer/selectors.d.ts +268 -0
- package/src/store/map/layer/types.d.ts +5 -0
- package/src/store/map/map/index.d.ts +2 -1
- package/src/store/map/map/reducer.d.ts +1 -3
- package/src/store/map/map/selectors.d.ts +151 -1
- package/src/store/map/map/types.d.ts +1 -1
- package/src/store/map/map/utils.d.ts +3 -1
- package/src/store/map/service/selectors.d.ts +100 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/shared": "
|
|
11
|
+
"@opengeoweb/shared": "13.0.0",
|
|
12
12
|
"react-redux": "^9.2.0",
|
|
13
13
|
"@reduxjs/toolkit": "^2.6.1",
|
|
14
|
-
"@opengeoweb/webmap-react": "
|
|
15
|
-
"@opengeoweb/webmap": "
|
|
14
|
+
"@opengeoweb/webmap-react": "13.0.0",
|
|
15
|
+
"@opengeoweb/webmap": "13.0.0",
|
|
16
16
|
"immer": "^10.0.3",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
|
-
"@opengeoweb/metronome": "
|
|
19
|
-
"@opengeoweb/
|
|
18
|
+
"@opengeoweb/metronome": "13.0.0",
|
|
19
|
+
"@opengeoweb/time-slider": "13.0.0",
|
|
20
20
|
"react-router-dom": "^6.23.1",
|
|
21
21
|
"ol": "^10.4.0",
|
|
22
22
|
"@turf/turf": "^7.2.0",
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { CoreAppStore } from '../types';
|
|
2
2
|
import type { LinkedState, PotentialData, SynchronizationGroupState, SynchronizationSource } from './syncGroups/types';
|
|
3
3
|
export declare const getSynchronizationGroupStore: (store: CoreAppStore) => SynchronizationGroupState;
|
|
4
|
-
export declare const getTime: ((state: SynchronizationGroupState, id: string) =>
|
|
4
|
+
export declare const getTime: ((state: SynchronizationGroupState, id: string) => import("./synchronizationActions/types").SetTimeSyncProps | null) & {
|
|
5
5
|
clearCache: () => void;
|
|
6
6
|
resultsCount: () => number;
|
|
7
7
|
resetResultsCount: () => void;
|
|
8
8
|
} & {
|
|
9
|
-
resultFunc: (resultFuncArgs_0: SynchronizationSource) =>
|
|
10
|
-
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationSource) =>
|
|
9
|
+
resultFunc: (resultFuncArgs_0: SynchronizationSource) => import("./synchronizationActions/types").SetTimeSyncProps | null;
|
|
10
|
+
memoizedResultFunc: ((resultFuncArgs_0: SynchronizationSource) => import("./synchronizationActions/types").SetTimeSyncProps | null) & {
|
|
11
11
|
clearCache: () => void;
|
|
12
12
|
resultsCount: () => number;
|
|
13
13
|
resetResultsCount: () => void;
|
|
14
14
|
};
|
|
15
|
-
lastResult: () =>
|
|
15
|
+
lastResult: () => import("./synchronizationActions/types").SetTimeSyncProps | null;
|
|
16
16
|
dependencies: [(state: SynchronizationGroupState, id: string) => SynchronizationSource];
|
|
17
17
|
recomputations: () => number;
|
|
18
18
|
resetRecomputations: () => void;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { setBbox, setTime } from '../actions';
|
|
2
2
|
import { SyncLayerPayloads } from '../types';
|
|
3
|
+
export interface SetTimeSyncProps {
|
|
4
|
+
currentTime?: string;
|
|
5
|
+
timeSliderCenterTime?: number;
|
|
6
|
+
timeSliderSpan?: number;
|
|
7
|
+
timeSliderStep?: number;
|
|
8
|
+
timeSliderAnimationStartTime?: string;
|
|
9
|
+
timeSliderAnimationEndTime?: string;
|
|
10
|
+
timeSliderAnimationDelay?: number;
|
|
11
|
+
}
|
|
3
12
|
export interface SetTimeSyncPayload {
|
|
4
13
|
targetId: string;
|
|
5
|
-
value:
|
|
14
|
+
value: SetTimeSyncProps;
|
|
6
15
|
}
|
|
7
16
|
export interface SetBboxSyncPayload {
|
|
8
17
|
targetId: string;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SetLayerStylePayload } from '@opengeoweb/webmap-react';
|
|
2
2
|
import { MapActionOrigin } from '../map/map/enums';
|
|
3
3
|
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../map/types';
|
|
4
|
+
import type { SetTimeSyncProps } from './synchronizationActions/types';
|
|
4
5
|
export interface SetTimePayload {
|
|
5
6
|
sourceId: string;
|
|
6
7
|
origin: string;
|
|
7
|
-
value:
|
|
8
|
+
value: SetTimeSyncProps;
|
|
8
9
|
}
|
|
9
10
|
export interface SetBboxPayload {
|
|
10
11
|
sourceId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
2
|
import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
|
-
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload } from './types';
|
|
3
|
+
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload, SetLayerOptionsPayload } 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, {
|
|
@@ -15,6 +15,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
15
15
|
acceptanceTime: number | undefined;
|
|
16
16
|
}>) => void;
|
|
17
17
|
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
18
|
+
layerChangeOptions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOptionsPayload>) => void;
|
|
18
19
|
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
19
20
|
layerSetGeojsonFromLayer: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonFromLayerPayload>) => void;
|
|
20
21
|
layerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
@@ -55,6 +56,7 @@ export declare const layerReducer: import("redux").Reducer<LayerState>, layerAct
|
|
|
55
56
|
acceptanceTime: number | undefined;
|
|
56
57
|
}>) => void;
|
|
57
58
|
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
59
|
+
layerChangeOptions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOptionsPayload>) => void;
|
|
58
60
|
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
59
61
|
layerSetGeojsonFromLayer: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonFromLayerPayload>) => void;
|
|
60
62
|
layerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
@@ -2162,6 +2162,47 @@ export declare const getLayerType: ((state: any, layerId: any) => LayerType | "m
|
|
|
2162
2162
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2163
2163
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2164
2164
|
};
|
|
2165
|
+
export declare const getLayerOptions: ((state: any, layerId: any) => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined) & {
|
|
2166
|
+
clearCache: () => void;
|
|
2167
|
+
resultsCount: () => number;
|
|
2168
|
+
resetResultsCount: () => void;
|
|
2169
|
+
} & {
|
|
2170
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined;
|
|
2171
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined) & {
|
|
2172
|
+
clearCache: () => void;
|
|
2173
|
+
resultsCount: () => number;
|
|
2174
|
+
resetResultsCount: () => void;
|
|
2175
|
+
};
|
|
2176
|
+
lastResult: () => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined;
|
|
2177
|
+
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
2178
|
+
clearCache: () => void;
|
|
2179
|
+
resultsCount: () => number;
|
|
2180
|
+
resetResultsCount: () => void;
|
|
2181
|
+
} & {
|
|
2182
|
+
resultFunc: (resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined;
|
|
2183
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined) & {
|
|
2184
|
+
clearCache: () => void;
|
|
2185
|
+
resultsCount: () => number;
|
|
2186
|
+
resetResultsCount: () => void;
|
|
2187
|
+
};
|
|
2188
|
+
lastResult: () => ReduxLayer | undefined;
|
|
2189
|
+
dependencies: [(store: CoreAppStore) => LayerState | undefined, (layerStore: any, layerId: any) => string];
|
|
2190
|
+
recomputations: () => number;
|
|
2191
|
+
resetRecomputations: () => void;
|
|
2192
|
+
dependencyRecomputations: () => number;
|
|
2193
|
+
resetDependencyRecomputations: () => void;
|
|
2194
|
+
} & {
|
|
2195
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2196
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2197
|
+
}];
|
|
2198
|
+
recomputations: () => number;
|
|
2199
|
+
resetRecomputations: () => void;
|
|
2200
|
+
dependencyRecomputations: () => number;
|
|
2201
|
+
resetDependencyRecomputations: () => void;
|
|
2202
|
+
} & {
|
|
2203
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2204
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2205
|
+
};
|
|
2165
2206
|
/**
|
|
2166
2207
|
* Gets all overlayers for a given mapId
|
|
2167
2208
|
* Example: overlayers = getOverlayersForMapId(store, 'mapId123')
|
|
@@ -2202,3 +2243,230 @@ export declare const getOverlayersForMapId: ((state: CoreAppStore, mapId: string
|
|
|
2202
2243
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2203
2244
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2204
2245
|
};
|
|
2246
|
+
/**
|
|
2247
|
+
* Gets the layer title from the service store using the layerId
|
|
2248
|
+
*
|
|
2249
|
+
* Example: layerTitle = getLayerTitleFromService(store, 'layerId_1')
|
|
2250
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
2251
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
2252
|
+
* @returns {string} returnType: string - string containing layer title
|
|
2253
|
+
*/
|
|
2254
|
+
export declare const getLayerTitleFromService: ((state: any, ...params: any[]) => string | undefined) & {
|
|
2255
|
+
clearCache: () => void;
|
|
2256
|
+
resultsCount: () => number;
|
|
2257
|
+
resetResultsCount: () => void;
|
|
2258
|
+
} & {
|
|
2259
|
+
resultFunc: (...resultFuncArgs: readonly any[]) => string | undefined;
|
|
2260
|
+
memoizedResultFunc: ((...resultFuncArgs: readonly any[]) => string | undefined) & {
|
|
2261
|
+
clearCache: () => void;
|
|
2262
|
+
resultsCount: () => number;
|
|
2263
|
+
resetResultsCount: () => void;
|
|
2264
|
+
};
|
|
2265
|
+
lastResult: () => string | undefined;
|
|
2266
|
+
dependencies: import("reselect").SelectorArray<any>;
|
|
2267
|
+
recomputations: () => number;
|
|
2268
|
+
resetRecomputations: () => void;
|
|
2269
|
+
dependencyRecomputations: () => number;
|
|
2270
|
+
resetDependencyRecomputations: () => void;
|
|
2271
|
+
} & {
|
|
2272
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2273
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2274
|
+
};
|
|
2275
|
+
/**
|
|
2276
|
+
* Gets layer displayname. For EDR layers with multiple parameters, the collectionId is used as displayname. Otherwise the layer title from the service is used.
|
|
2277
|
+
*
|
|
2278
|
+
* Example: layerName = getLayerDisplayName(store, 'layerId_1')
|
|
2279
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
2280
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
2281
|
+
* @returns {string} returnType: string - layer displayname
|
|
2282
|
+
*/
|
|
2283
|
+
export declare const getLayerDisplayName: ((state: any, layerId: any) => string) & {
|
|
2284
|
+
clearCache: () => void;
|
|
2285
|
+
resultsCount: () => number;
|
|
2286
|
+
resetResultsCount: () => void;
|
|
2287
|
+
} & {
|
|
2288
|
+
resultFunc: (resultFuncArgs_0: LayerType | "mapLayer", resultFuncArgs_1: import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string) => string;
|
|
2289
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerType | "mapLayer", resultFuncArgs_1: import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string) => string) & {
|
|
2290
|
+
clearCache: () => void;
|
|
2291
|
+
resultsCount: () => number;
|
|
2292
|
+
resetResultsCount: () => void;
|
|
2293
|
+
};
|
|
2294
|
+
lastResult: () => string;
|
|
2295
|
+
dependencies: [((state: any, layerId: any) => LayerType | "mapLayer") & {
|
|
2296
|
+
clearCache: () => void;
|
|
2297
|
+
resultsCount: () => number;
|
|
2298
|
+
resetResultsCount: () => void;
|
|
2299
|
+
} & {
|
|
2300
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => LayerType | "mapLayer";
|
|
2301
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => LayerType | "mapLayer") & {
|
|
2302
|
+
clearCache: () => void;
|
|
2303
|
+
resultsCount: () => number;
|
|
2304
|
+
resetResultsCount: () => void;
|
|
2305
|
+
};
|
|
2306
|
+
lastResult: () => LayerType | "mapLayer";
|
|
2307
|
+
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
2308
|
+
clearCache: () => void;
|
|
2309
|
+
resultsCount: () => number;
|
|
2310
|
+
resetResultsCount: () => void;
|
|
2311
|
+
} & {
|
|
2312
|
+
resultFunc: (resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined;
|
|
2313
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined) & {
|
|
2314
|
+
clearCache: () => void;
|
|
2315
|
+
resultsCount: () => number;
|
|
2316
|
+
resetResultsCount: () => void;
|
|
2317
|
+
};
|
|
2318
|
+
lastResult: () => ReduxLayer | undefined;
|
|
2319
|
+
dependencies: [(store: CoreAppStore) => LayerState | undefined, (layerStore: any, layerId: any) => string];
|
|
2320
|
+
recomputations: () => number;
|
|
2321
|
+
resetRecomputations: () => void;
|
|
2322
|
+
dependencyRecomputations: () => number;
|
|
2323
|
+
resetDependencyRecomputations: () => void;
|
|
2324
|
+
} & {
|
|
2325
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2326
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2327
|
+
}];
|
|
2328
|
+
recomputations: () => number;
|
|
2329
|
+
resetRecomputations: () => void;
|
|
2330
|
+
dependencyRecomputations: () => number;
|
|
2331
|
+
resetDependencyRecomputations: () => void;
|
|
2332
|
+
} & {
|
|
2333
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2334
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2335
|
+
}, ((state: any, layerId: any) => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined) & {
|
|
2336
|
+
clearCache: () => void;
|
|
2337
|
+
resultsCount: () => number;
|
|
2338
|
+
resetResultsCount: () => void;
|
|
2339
|
+
} & {
|
|
2340
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined;
|
|
2341
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined) & {
|
|
2342
|
+
clearCache: () => void;
|
|
2343
|
+
resultsCount: () => number;
|
|
2344
|
+
resetResultsCount: () => void;
|
|
2345
|
+
};
|
|
2346
|
+
lastResult: () => import("@opengeoweb/webmap").EDRFeatureLayerOptions | undefined;
|
|
2347
|
+
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
2348
|
+
clearCache: () => void;
|
|
2349
|
+
resultsCount: () => number;
|
|
2350
|
+
resetResultsCount: () => void;
|
|
2351
|
+
} & {
|
|
2352
|
+
resultFunc: (resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined;
|
|
2353
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined) & {
|
|
2354
|
+
clearCache: () => void;
|
|
2355
|
+
resultsCount: () => number;
|
|
2356
|
+
resetResultsCount: () => void;
|
|
2357
|
+
};
|
|
2358
|
+
lastResult: () => ReduxLayer | undefined;
|
|
2359
|
+
dependencies: [(store: CoreAppStore) => LayerState | undefined, (layerStore: any, layerId: any) => string];
|
|
2360
|
+
recomputations: () => number;
|
|
2361
|
+
resetRecomputations: () => void;
|
|
2362
|
+
dependencyRecomputations: () => number;
|
|
2363
|
+
resetDependencyRecomputations: () => void;
|
|
2364
|
+
} & {
|
|
2365
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2366
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2367
|
+
}];
|
|
2368
|
+
recomputations: () => number;
|
|
2369
|
+
resetRecomputations: () => void;
|
|
2370
|
+
dependencyRecomputations: () => number;
|
|
2371
|
+
resetDependencyRecomputations: () => void;
|
|
2372
|
+
} & {
|
|
2373
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2374
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2375
|
+
}, ((state: any, ...params: any[]) => string | undefined) & {
|
|
2376
|
+
clearCache: () => void;
|
|
2377
|
+
resultsCount: () => number;
|
|
2378
|
+
resetResultsCount: () => void;
|
|
2379
|
+
} & {
|
|
2380
|
+
resultFunc: (...resultFuncArgs: readonly any[]) => string | undefined;
|
|
2381
|
+
memoizedResultFunc: ((...resultFuncArgs: readonly any[]) => string | undefined) & {
|
|
2382
|
+
clearCache: () => void;
|
|
2383
|
+
resultsCount: () => number;
|
|
2384
|
+
resetResultsCount: () => void;
|
|
2385
|
+
};
|
|
2386
|
+
lastResult: () => string | undefined;
|
|
2387
|
+
dependencies: import("reselect").SelectorArray<any>;
|
|
2388
|
+
recomputations: () => number;
|
|
2389
|
+
resetRecomputations: () => void;
|
|
2390
|
+
dependencyRecomputations: () => number;
|
|
2391
|
+
resetDependencyRecomputations: () => void;
|
|
2392
|
+
} & {
|
|
2393
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2394
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2395
|
+
}, ((state: any, layerId: any) => string) & {
|
|
2396
|
+
clearCache: () => void;
|
|
2397
|
+
resultsCount: () => number;
|
|
2398
|
+
resetResultsCount: () => void;
|
|
2399
|
+
} & {
|
|
2400
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => string;
|
|
2401
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => string) & {
|
|
2402
|
+
clearCache: () => void;
|
|
2403
|
+
resultsCount: () => number;
|
|
2404
|
+
resetResultsCount: () => void;
|
|
2405
|
+
};
|
|
2406
|
+
lastResult: () => string;
|
|
2407
|
+
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
2408
|
+
clearCache: () => void;
|
|
2409
|
+
resultsCount: () => number;
|
|
2410
|
+
resetResultsCount: () => void;
|
|
2411
|
+
} & {
|
|
2412
|
+
resultFunc: (resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined;
|
|
2413
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined) & {
|
|
2414
|
+
clearCache: () => void;
|
|
2415
|
+
resultsCount: () => number;
|
|
2416
|
+
resetResultsCount: () => void;
|
|
2417
|
+
};
|
|
2418
|
+
lastResult: () => ReduxLayer | undefined;
|
|
2419
|
+
dependencies: [(store: CoreAppStore) => LayerState | undefined, (layerStore: any, layerId: any) => string];
|
|
2420
|
+
recomputations: () => number;
|
|
2421
|
+
resetRecomputations: () => void;
|
|
2422
|
+
dependencyRecomputations: () => number;
|
|
2423
|
+
resetDependencyRecomputations: () => void;
|
|
2424
|
+
} & {
|
|
2425
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2426
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2427
|
+
}];
|
|
2428
|
+
recomputations: () => number;
|
|
2429
|
+
resetRecomputations: () => void;
|
|
2430
|
+
dependencyRecomputations: () => number;
|
|
2431
|
+
resetDependencyRecomputations: () => void;
|
|
2432
|
+
} & {
|
|
2433
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2434
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2435
|
+
}];
|
|
2436
|
+
recomputations: () => number;
|
|
2437
|
+
resetRecomputations: () => void;
|
|
2438
|
+
dependencyRecomputations: () => number;
|
|
2439
|
+
resetDependencyRecomputations: () => void;
|
|
2440
|
+
} & {
|
|
2441
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2442
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2443
|
+
};
|
|
2444
|
+
/**
|
|
2445
|
+
* Gets the layer missing status. A layer is missing if it is not found in the service store or if its status is 'error'.
|
|
2446
|
+
*
|
|
2447
|
+
* Example: isLayerMissing = getIsLayerMissing(store, 'layerId_1')
|
|
2448
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
2449
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
2450
|
+
* @returns {boolean} returnType: boolean - true if layer is missing
|
|
2451
|
+
*/
|
|
2452
|
+
export declare const getIsLayerMissing: ((state: any, ...params: any[]) => boolean) & {
|
|
2453
|
+
clearCache: () => void;
|
|
2454
|
+
resultsCount: () => number;
|
|
2455
|
+
resetResultsCount: () => void;
|
|
2456
|
+
} & {
|
|
2457
|
+
resultFunc: (...resultFuncArgs: readonly any[]) => boolean;
|
|
2458
|
+
memoizedResultFunc: ((...resultFuncArgs: readonly any[]) => boolean) & {
|
|
2459
|
+
clearCache: () => void;
|
|
2460
|
+
resultsCount: () => number;
|
|
2461
|
+
resetResultsCount: () => void;
|
|
2462
|
+
};
|
|
2463
|
+
lastResult: () => boolean;
|
|
2464
|
+
dependencies: import("reselect").SelectorArray<any>;
|
|
2465
|
+
recomputations: () => number;
|
|
2466
|
+
resetRecomputations: () => void;
|
|
2467
|
+
dependencyRecomputations: () => number;
|
|
2468
|
+
resetDependencyRecomputations: () => void;
|
|
2469
|
+
} & {
|
|
2470
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2471
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2472
|
+
};
|
|
@@ -78,6 +78,11 @@ export interface SetLayerNamePayload extends LayerPayload {
|
|
|
78
78
|
mapId?: string;
|
|
79
79
|
origin?: LayerActionOrigin;
|
|
80
80
|
}
|
|
81
|
+
export interface SetLayerOptionsPayload extends LayerPayload {
|
|
82
|
+
options: LayerFoundation['options'];
|
|
83
|
+
mapId?: string;
|
|
84
|
+
origin?: LayerActionOrigin;
|
|
85
|
+
}
|
|
81
86
|
export interface SetLayerEnabledPayload extends LayerPayload {
|
|
82
87
|
enabled: boolean;
|
|
83
88
|
mapId?: string;
|
|
@@ -11,10 +11,11 @@ export declare const mapUtils: {
|
|
|
11
11
|
findMapIdFromLayerId: (mapState?: mapTypes.WebMapState, layerId?: string) => string | null;
|
|
12
12
|
produceDraftStateSetMapDimensionFromLayerChangeDimension: (draft: mapTypes.WebMapState, layerId: string, dimension: mapTypes.Dimension) => void;
|
|
13
13
|
getTimeStepFromDataInterval: (timeInterval: import("@opengeoweb/webmap").TimeInterval) => number;
|
|
14
|
-
getSpeedFactor: (speedDelay: number) => import("@opengeoweb/
|
|
14
|
+
getSpeedFactor: (speedDelay: number) => import("@opengeoweb/time-slider").SpeedFactorType;
|
|
15
15
|
getAnimationDuration: (animationEndTime: string | undefined, animationStartTime: string | undefined) => number;
|
|
16
16
|
generateAnimationList: (unixAnimationStart: number, unixAnimationEnd: number, timeValues: string | undefined) => mapTypes.WebMapAnimationList;
|
|
17
17
|
parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => mapTypes.ISO8601Interval[];
|
|
18
|
+
produceTimeSliderTimeSpan: (draft: import("immer").Draft<mapTypes.WebMapState>, mapId: string, timeSliderSpan: number) => void;
|
|
18
19
|
};
|
|
19
20
|
export { mapTypes };
|
|
20
21
|
export { mapActions, mapReducer } from './reducer';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
2
|
import { 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,
|
|
3
|
+
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize, ToggleAnimationLengthAutoPayload, SetDefaultMapSettingsPayload } from './types';
|
|
4
4
|
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload } from '../types';
|
|
5
5
|
import { MapActionOrigin } from './enums';
|
|
6
6
|
/**
|
|
@@ -42,7 +42,6 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
42
42
|
}>) => void;
|
|
43
43
|
setTimeSliderWidth: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderWidthPayload>) => void;
|
|
44
44
|
setTimeSliderCenterTime: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderCenterTimePayload>) => void;
|
|
45
|
-
setTimeSliderSecondsPerPx: (draft: Draft<WebMapState>, action: PayloadAction<SetTimeSliderSecondsPerPxPayload>) => void;
|
|
46
45
|
toggleAutoUpdate: (draft: Draft<WebMapState>, action: PayloadAction<ToggleAutoUpdatePayload>) => void;
|
|
47
46
|
setEndTimeOverriding: (draft: Draft<WebMapState>, action: PayloadAction<SetEndTimeOverriding>) => void;
|
|
48
47
|
toggleTimestepAuto: (draft: Draft<WebMapState>, action: PayloadAction<ToggleTimestepAutoPayload>) => void;
|
|
@@ -99,7 +98,6 @@ export declare const mapActions: {
|
|
|
99
98
|
}, "mapReducer/setAutoUpdateLayerId">;
|
|
100
99
|
setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
|
|
101
100
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
|
|
102
|
-
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
|
|
103
101
|
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
|
|
104
102
|
setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
|
|
105
103
|
toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleTimestepAutoPayload, "mapReducer/toggleTimestepAuto">;
|
|
@@ -953,9 +953,38 @@ export declare const isAnimating: (store: CoreAppStore, mapId: string) => boolea
|
|
|
953
953
|
* @param {string} mapId mapId: string - Id of the map
|
|
954
954
|
* @returns {object} returnType: object - object containing isAnimating boolean and id string
|
|
955
955
|
*/
|
|
956
|
-
export declare const linkedMapAnimationInfo: (
|
|
956
|
+
export declare const linkedMapAnimationInfo: ((state: CoreAppStore, mapId: string) => {
|
|
957
957
|
isAnimating: boolean;
|
|
958
958
|
id: string;
|
|
959
|
+
}) & {
|
|
960
|
+
clearCache: () => void;
|
|
961
|
+
resultsCount: () => number;
|
|
962
|
+
resetResultsCount: () => void;
|
|
963
|
+
} & {
|
|
964
|
+
resultFunc: (resultFuncArgs_0: WebMapState | undefined, resultFuncArgs_1: import("../../generic/syncGroups/types").SynchronizationGroupState, resultFuncArgs_2: WebMap | undefined) => {
|
|
965
|
+
isAnimating: boolean;
|
|
966
|
+
id: string;
|
|
967
|
+
};
|
|
968
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMapState | undefined, resultFuncArgs_1: import("../../generic/syncGroups/types").SynchronizationGroupState, resultFuncArgs_2: WebMap | undefined) => {
|
|
969
|
+
isAnimating: boolean;
|
|
970
|
+
id: string;
|
|
971
|
+
}) & {
|
|
972
|
+
clearCache: () => void;
|
|
973
|
+
resultsCount: () => number;
|
|
974
|
+
resetResultsCount: () => void;
|
|
975
|
+
};
|
|
976
|
+
lastResult: () => {
|
|
977
|
+
isAnimating: boolean;
|
|
978
|
+
id: string;
|
|
979
|
+
};
|
|
980
|
+
dependencies: [(store: CoreAppStore) => WebMapState | undefined, (store: CoreAppStore) => import("../../generic/syncGroups/types").SynchronizationGroupState, (store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
981
|
+
recomputations: () => number;
|
|
982
|
+
resetRecomputations: () => void;
|
|
983
|
+
dependencyRecomputations: () => number;
|
|
984
|
+
resetDependencyRecomputations: () => void;
|
|
985
|
+
} & {
|
|
986
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
987
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
959
988
|
};
|
|
960
989
|
/**
|
|
961
990
|
* Gets start time of animation
|
|
@@ -2882,6 +2911,127 @@ export declare const getAnimationList: ((state: CoreAppStore, mapId: string) =>
|
|
|
2882
2911
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2883
2912
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2884
2913
|
};
|
|
2914
|
+
export declare const getAnimationListAsEpochTimes: ((state: CoreAppStore, mapId: string) => number[]) & {
|
|
2915
|
+
clearCache: () => void;
|
|
2916
|
+
resultsCount: () => number;
|
|
2917
|
+
resetResultsCount: () => void;
|
|
2918
|
+
} & {
|
|
2919
|
+
resultFunc: (resultFuncArgs_0: WebMapAnimationList) => number[];
|
|
2920
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMapAnimationList) => number[]) & {
|
|
2921
|
+
clearCache: () => void;
|
|
2922
|
+
resultsCount: () => number;
|
|
2923
|
+
resetResultsCount: () => void;
|
|
2924
|
+
};
|
|
2925
|
+
lastResult: () => number[];
|
|
2926
|
+
dependencies: [((state: CoreAppStore, mapId: string) => WebMapAnimationList) & {
|
|
2927
|
+
clearCache: () => void;
|
|
2928
|
+
resultsCount: () => number;
|
|
2929
|
+
resetResultsCount: () => void;
|
|
2930
|
+
} & {
|
|
2931
|
+
resultFunc: (resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: WebMap | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4: number) => WebMapAnimationList;
|
|
2932
|
+
memoizedResultFunc: ((resultFuncArgs_0: Record<string, ReduxLayer> | null, resultFuncArgs_1: WebMap | undefined, resultFuncArgs_2: string | undefined, resultFuncArgs_3: string | undefined, resultFuncArgs_4: number) => WebMapAnimationList) & {
|
|
2933
|
+
clearCache: () => void;
|
|
2934
|
+
resultsCount: () => number;
|
|
2935
|
+
resetResultsCount: () => void;
|
|
2936
|
+
};
|
|
2937
|
+
lastResult: () => WebMapAnimationList;
|
|
2938
|
+
dependencies: [((state: CoreAppStore) => Record<string, ReduxLayer> | null) & {
|
|
2939
|
+
clearCache: () => void;
|
|
2940
|
+
resultsCount: () => number;
|
|
2941
|
+
resetResultsCount: () => void;
|
|
2942
|
+
} & {
|
|
2943
|
+
resultFunc: (resultFuncArgs_0: import("../types").LayerState | undefined) => Record<string, ReduxLayer> | null;
|
|
2944
|
+
memoizedResultFunc: ((resultFuncArgs_0: import("../types").LayerState | undefined) => Record<string, ReduxLayer> | null) & {
|
|
2945
|
+
clearCache: () => void;
|
|
2946
|
+
resultsCount: () => number;
|
|
2947
|
+
resetResultsCount: () => void;
|
|
2948
|
+
};
|
|
2949
|
+
lastResult: () => Record<string, ReduxLayer> | null;
|
|
2950
|
+
dependencies: [(store: CoreAppStore) => import("../types").LayerState | undefined];
|
|
2951
|
+
recomputations: () => number;
|
|
2952
|
+
resetRecomputations: () => void;
|
|
2953
|
+
dependencyRecomputations: () => number;
|
|
2954
|
+
resetDependencyRecomputations: () => void;
|
|
2955
|
+
} & {
|
|
2956
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2957
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2958
|
+
}, (store: CoreAppStore, mapId: string) => WebMap | undefined, ((state: CoreAppStore, mapId: string) => string | undefined) & {
|
|
2959
|
+
clearCache: () => void;
|
|
2960
|
+
resultsCount: () => number;
|
|
2961
|
+
resetResultsCount: () => void;
|
|
2962
|
+
} & {
|
|
2963
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => string | undefined;
|
|
2964
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => string | undefined) & {
|
|
2965
|
+
clearCache: () => void;
|
|
2966
|
+
resultsCount: () => number;
|
|
2967
|
+
resetResultsCount: () => void;
|
|
2968
|
+
};
|
|
2969
|
+
lastResult: () => string | undefined;
|
|
2970
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2971
|
+
recomputations: () => number;
|
|
2972
|
+
resetRecomputations: () => void;
|
|
2973
|
+
dependencyRecomputations: () => number;
|
|
2974
|
+
resetDependencyRecomputations: () => void;
|
|
2975
|
+
} & {
|
|
2976
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2977
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2978
|
+
}, ((state: CoreAppStore, mapId: string) => string | undefined) & {
|
|
2979
|
+
clearCache: () => void;
|
|
2980
|
+
resultsCount: () => number;
|
|
2981
|
+
resetResultsCount: () => void;
|
|
2982
|
+
} & {
|
|
2983
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => string | undefined;
|
|
2984
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => string | undefined) & {
|
|
2985
|
+
clearCache: () => void;
|
|
2986
|
+
resultsCount: () => number;
|
|
2987
|
+
resetResultsCount: () => void;
|
|
2988
|
+
};
|
|
2989
|
+
lastResult: () => string | undefined;
|
|
2990
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
2991
|
+
recomputations: () => number;
|
|
2992
|
+
resetRecomputations: () => void;
|
|
2993
|
+
dependencyRecomputations: () => number;
|
|
2994
|
+
resetDependencyRecomputations: () => void;
|
|
2995
|
+
} & {
|
|
2996
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2997
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2998
|
+
}, ((state: CoreAppStore, mapId: string) => number) & {
|
|
2999
|
+
clearCache: () => void;
|
|
3000
|
+
resultsCount: () => number;
|
|
3001
|
+
resetResultsCount: () => void;
|
|
3002
|
+
} & {
|
|
3003
|
+
resultFunc: (resultFuncArgs_0: WebMap | undefined) => number;
|
|
3004
|
+
memoizedResultFunc: ((resultFuncArgs_0: WebMap | undefined) => number) & {
|
|
3005
|
+
clearCache: () => void;
|
|
3006
|
+
resultsCount: () => number;
|
|
3007
|
+
resetResultsCount: () => void;
|
|
3008
|
+
};
|
|
3009
|
+
lastResult: () => number;
|
|
3010
|
+
dependencies: [(store: CoreAppStore, mapId: string) => WebMap | undefined];
|
|
3011
|
+
recomputations: () => number;
|
|
3012
|
+
resetRecomputations: () => void;
|
|
3013
|
+
dependencyRecomputations: () => number;
|
|
3014
|
+
resetDependencyRecomputations: () => void;
|
|
3015
|
+
} & {
|
|
3016
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3017
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3018
|
+
}];
|
|
3019
|
+
recomputations: () => number;
|
|
3020
|
+
resetRecomputations: () => void;
|
|
3021
|
+
dependencyRecomputations: () => number;
|
|
3022
|
+
resetDependencyRecomputations: () => void;
|
|
3023
|
+
} & {
|
|
3024
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3025
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3026
|
+
}];
|
|
3027
|
+
recomputations: () => number;
|
|
3028
|
+
resetRecomputations: () => void;
|
|
3029
|
+
dependencyRecomputations: () => number;
|
|
3030
|
+
resetDependencyRecomputations: () => void;
|
|
3031
|
+
} & {
|
|
3032
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
3033
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
3034
|
+
};
|
|
2885
3035
|
/**
|
|
2886
3036
|
* @param {object} store store: object - store object
|
|
2887
3037
|
* @param {string} mapId mapId: string - Id of the map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
2
|
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
3
|
-
import { SpeedFactorType } from '@opengeoweb/
|
|
3
|
+
import { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
4
4
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
5
5
|
import { MapActionOrigin } from './enums';
|
|
6
6
|
export interface Dimension {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
-
import { SpeedFactorType } from '@opengeoweb/
|
|
2
|
+
import { SpeedFactorType } from '@opengeoweb/time-slider';
|
|
3
|
+
import { Draft } from 'immer';
|
|
3
4
|
import { Bbox, Dimension } from './types';
|
|
4
5
|
import type { WebMapState, WebMap, ISO8601Interval, WebMapAnimationList } from '../types';
|
|
5
6
|
import type { Layer } from '../layer/types';
|
|
@@ -83,3 +84,4 @@ export declare const generateAnimationList: (unixAnimationStart: number, unixAni
|
|
|
83
84
|
* @returns An array of ISO8601 intervals
|
|
84
85
|
*/
|
|
85
86
|
export declare const parseTimeDimToISO8601Interval: (timeInterval: string | undefined) => ISO8601Interval[];
|
|
87
|
+
export declare const produceTimeSliderTimeSpan: (draft: Draft<WebMapState>, mapId: string, timeSliderSpan: number) => void;
|