@opengeoweb/store 12.12.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 +497 -305
- package/package.json +6 -6
- package/src/store/generic/linking/constants.d.ts +2 -1
- package/src/store/generic/selectors.d.ts +7 -28
- 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 +310 -0
- package/src/store/map/layer/types.d.ts +7 -1
- package/src/store/map/map/index.d.ts +2 -1
- package/src/store/map/map/reducer.d.ts +3 -3
- package/src/store/map/map/selectors.d.ts +151 -1
- package/src/store/map/map/types.d.ts +2 -1
- package/src/store/map/map/utils.d.ts +3 -1
- package/src/store/map/service/selectors.d.ts +90 -0
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;
|
|
@@ -299,28 +299,14 @@ export declare const getSelectedFeature: ((state: SynchronizationGroupState, map
|
|
|
299
299
|
resultsCount: () => number;
|
|
300
300
|
resetResultsCount: () => void;
|
|
301
301
|
} & {
|
|
302
|
-
resultFunc: (resultFuncArgs_0: {
|
|
303
|
-
features: {
|
|
304
|
-
id: string;
|
|
305
|
-
originalId?: string;
|
|
306
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
307
|
-
}[];
|
|
308
|
-
selectedFeatureId: string | undefined;
|
|
309
|
-
}) => {
|
|
302
|
+
resultFunc: (resultFuncArgs_0: PotentialData) => {
|
|
310
303
|
lat: number;
|
|
311
304
|
lon: number;
|
|
312
305
|
id: string;
|
|
313
306
|
name: any;
|
|
314
307
|
occurrences: any;
|
|
315
308
|
} | null;
|
|
316
|
-
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
317
|
-
features: {
|
|
318
|
-
id: string;
|
|
319
|
-
originalId?: string;
|
|
320
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
321
|
-
}[];
|
|
322
|
-
selectedFeatureId: string | undefined;
|
|
323
|
-
}) => {
|
|
309
|
+
memoizedResultFunc: ((resultFuncArgs_0: PotentialData) => {
|
|
324
310
|
lat: number;
|
|
325
311
|
lon: number;
|
|
326
312
|
id: string;
|
|
@@ -338,14 +324,7 @@ export declare const getSelectedFeature: ((state: SynchronizationGroupState, map
|
|
|
338
324
|
name: any;
|
|
339
325
|
occurrences: any;
|
|
340
326
|
} | null;
|
|
341
|
-
dependencies: [(state: SynchronizationGroupState, mapId: string) =>
|
|
342
|
-
features: {
|
|
343
|
-
id: string;
|
|
344
|
-
originalId?: string;
|
|
345
|
-
geoJSON: GeoJSON.FeatureCollection;
|
|
346
|
-
}[];
|
|
347
|
-
selectedFeatureId: string | undefined;
|
|
348
|
-
}];
|
|
327
|
+
dependencies: [(state: SynchronizationGroupState, mapId: string) => PotentialData];
|
|
349
328
|
recomputations: () => number;
|
|
350
329
|
resetRecomputations: () => void;
|
|
351
330
|
dependencyRecomputations: () => number;
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LayerType } from '@opengeoweb/webmap';
|
|
1
2
|
import type { CoreAppStore } from '../../types';
|
|
2
3
|
import type { Dimension, ReduxLayer } from '../types';
|
|
3
4
|
import { LayerState, Layer, LayerStatus } from './types';
|
|
@@ -2120,6 +2121,88 @@ export declare const getActiveLayerInfo: ((state: CoreAppStore) => {
|
|
|
2120
2121
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2121
2122
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2122
2123
|
};
|
|
2124
|
+
export declare const getLayerType: ((state: any, layerId: any) => LayerType | "mapLayer") & {
|
|
2125
|
+
clearCache: () => void;
|
|
2126
|
+
resultsCount: () => number;
|
|
2127
|
+
resetResultsCount: () => void;
|
|
2128
|
+
} & {
|
|
2129
|
+
resultFunc: (resultFuncArgs_0: ReduxLayer | undefined) => LayerType | "mapLayer";
|
|
2130
|
+
memoizedResultFunc: ((resultFuncArgs_0: ReduxLayer | undefined) => LayerType | "mapLayer") & {
|
|
2131
|
+
clearCache: () => void;
|
|
2132
|
+
resultsCount: () => number;
|
|
2133
|
+
resetResultsCount: () => void;
|
|
2134
|
+
};
|
|
2135
|
+
lastResult: () => LayerType | "mapLayer";
|
|
2136
|
+
dependencies: [((state: any, layerId: any) => ReduxLayer | undefined) & {
|
|
2137
|
+
clearCache: () => void;
|
|
2138
|
+
resultsCount: () => number;
|
|
2139
|
+
resetResultsCount: () => void;
|
|
2140
|
+
} & {
|
|
2141
|
+
resultFunc: (resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined;
|
|
2142
|
+
memoizedResultFunc: ((resultFuncArgs_0: LayerState | undefined, resultFuncArgs_1: string) => ReduxLayer | undefined) & {
|
|
2143
|
+
clearCache: () => void;
|
|
2144
|
+
resultsCount: () => number;
|
|
2145
|
+
resetResultsCount: () => void;
|
|
2146
|
+
};
|
|
2147
|
+
lastResult: () => ReduxLayer | undefined;
|
|
2148
|
+
dependencies: [(store: CoreAppStore) => LayerState | undefined, (layerStore: any, layerId: any) => string];
|
|
2149
|
+
recomputations: () => number;
|
|
2150
|
+
resetRecomputations: () => void;
|
|
2151
|
+
dependencyRecomputations: () => number;
|
|
2152
|
+
resetDependencyRecomputations: () => void;
|
|
2153
|
+
} & {
|
|
2154
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2155
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2156
|
+
}];
|
|
2157
|
+
recomputations: () => number;
|
|
2158
|
+
resetRecomputations: () => void;
|
|
2159
|
+
dependencyRecomputations: () => number;
|
|
2160
|
+
resetDependencyRecomputations: () => void;
|
|
2161
|
+
} & {
|
|
2162
|
+
memoize: typeof import("reselect").weakMapMemoize;
|
|
2163
|
+
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
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
|
+
};
|
|
2123
2206
|
/**
|
|
2124
2207
|
* Gets all overlayers for a given mapId
|
|
2125
2208
|
* Example: overlayers = getOverlayersForMapId(store, 'mapId123')
|
|
@@ -2160,3 +2243,230 @@ export declare const getOverlayersForMapId: ((state: CoreAppStore, mapId: string
|
|
|
2160
2243
|
memoize: typeof import("reselect").weakMapMemoize;
|
|
2161
2244
|
argsMemoize: typeof import("reselect").weakMapMemoize;
|
|
2162
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
|
+
};
|
|
@@ -15,7 +15,8 @@ export declare enum LayerActionOrigin {
|
|
|
15
15
|
ReactMapViewParseLayer = "ReactMapViewParseLayer",
|
|
16
16
|
updateLayerInformationListener = "updateLayerInformationListener",
|
|
17
17
|
toggleAutoUpdateListener = "toggleAutoUpdateListener",
|
|
18
|
-
unregisterMapListener = "unregisterMapListener"
|
|
18
|
+
unregisterMapListener = "unregisterMapListener",
|
|
19
|
+
dataExplorer = "dataExplorer"
|
|
19
20
|
}
|
|
20
21
|
export interface FeatureLayer {
|
|
21
22
|
geojson?: FeatureCollection;
|
|
@@ -77,6 +78,11 @@ export interface SetLayerNamePayload extends LayerPayload {
|
|
|
77
78
|
mapId?: string;
|
|
78
79
|
origin?: LayerActionOrigin;
|
|
79
80
|
}
|
|
81
|
+
export interface SetLayerOptionsPayload extends LayerPayload {
|
|
82
|
+
options: LayerFoundation['options'];
|
|
83
|
+
mapId?: string;
|
|
84
|
+
origin?: LayerActionOrigin;
|
|
85
|
+
}
|
|
80
86
|
export interface SetLayerEnabledPayload extends LayerPayload {
|
|
81
87
|
enabled: boolean;
|
|
82
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;
|
|
@@ -63,6 +62,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
63
62
|
changeOverlayer: (draft: Draft<WebMapState>, action: PayloadAction<{
|
|
64
63
|
mapId: string;
|
|
65
64
|
selectedOverlayer: string;
|
|
65
|
+
origin: string;
|
|
66
66
|
}>) => void;
|
|
67
67
|
}, "mapReducer", "mapReducer", import("@reduxjs/toolkit").SliceSelectors<WebMapState>>;
|
|
68
68
|
export declare const mapActions: {
|
|
@@ -98,7 +98,6 @@ export declare const mapActions: {
|
|
|
98
98
|
}, "mapReducer/setAutoUpdateLayerId">;
|
|
99
99
|
setTimeSliderWidth: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderWidthPayload, "mapReducer/setTimeSliderWidth">;
|
|
100
100
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderCenterTimePayload, "mapReducer/setTimeSliderCenterTime">;
|
|
101
|
-
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderSecondsPerPxPayload, "mapReducer/setTimeSliderSecondsPerPx">;
|
|
102
101
|
toggleAutoUpdate: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleAutoUpdatePayload, "mapReducer/toggleAutoUpdate">;
|
|
103
102
|
setEndTimeOverriding: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetEndTimeOverriding, "mapReducer/setEndTimeOverriding">;
|
|
104
103
|
toggleTimestepAuto: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleTimestepAutoPayload, "mapReducer/toggleTimestepAuto">;
|
|
@@ -119,6 +118,7 @@ export declare const mapActions: {
|
|
|
119
118
|
changeOverlayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
120
119
|
mapId: string;
|
|
121
120
|
selectedOverlayer: string;
|
|
121
|
+
origin: string;
|
|
122
122
|
}, "mapReducer/changeOverlayer">;
|
|
123
123
|
};
|
|
124
124
|
export declare const mapReducer: import("redux").Reducer<WebMapState>;
|