@opengeoweb/store 19.1.0 → 19.1.1
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/README.md +11 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +10819 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/store/common/auth/index.d.ts +3 -0
- package/dist/src/store/common/auth/reducer.d.ts +14 -0
- package/dist/src/store/common/auth/selectors.d.ts +87 -0
- package/dist/src/store/common/auth/types.d.ts +22 -0
- package/dist/src/store/common/index.d.ts +81 -0
- package/dist/src/store/common/listener.d.ts +2 -0
- package/dist/src/store/common/types.d.ts +6 -0
- package/dist/src/store/drawingTool/index.d.ts +4 -0
- package/dist/src/store/drawingTool/listener.d.ts +3 -0
- package/dist/src/store/drawingTool/reducer.d.ts +45 -0
- package/dist/src/store/drawingTool/selectors.d.ts +347 -0
- package/dist/src/store/drawingTool/testUtils.d.ts +1 -0
- package/dist/src/store/drawingTool/utils.d.ts +1 -0
- package/dist/src/store/generic/actions.d.ts +28 -0
- package/dist/src/store/generic/hooks.d.ts +6 -0
- package/dist/src/store/generic/index.d.ts +27 -0
- package/dist/src/store/generic/linking/constants.d.ts +6 -0
- package/dist/src/store/generic/linking/index.d.ts +2 -0
- package/dist/src/store/generic/linking/utils.d.ts +9 -0
- package/dist/src/store/generic/listener.d.ts +2 -0
- package/dist/src/store/generic/loadingIndicator/constants.d.ts +1 -0
- package/dist/src/store/generic/loadingIndicator/index.d.ts +3 -0
- package/dist/src/store/generic/loadingIndicator/reducer.d.ts +13 -0
- package/dist/src/store/generic/loadingIndicator/selectors.d.ts +337 -0
- package/dist/src/store/generic/loadingIndicator/types.d.ts +22 -0
- package/dist/src/store/generic/selectors.d.ts +715 -0
- package/dist/src/store/generic/syncGroups/__mocks__/mockState.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/constants.d.ts +5 -0
- package/dist/src/store/generic/syncGroups/featureGroupUtils.d.ts +11 -0
- package/dist/src/store/generic/syncGroups/featureLinks.d.ts +6 -0
- package/dist/src/store/generic/syncGroups/featureSyncLayers.d.ts +10 -0
- package/dist/src/store/generic/syncGroups/hooks.d.ts +20 -0
- package/dist/src/store/generic/syncGroups/index.d.ts +13 -0
- package/dist/src/store/generic/syncGroups/listener.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/reducer.d.ts +62 -0
- package/dist/src/store/generic/syncGroups/selector.d.ts +50 -0
- package/dist/src/store/generic/syncGroups/selectors.d.ts +235 -0
- package/dist/src/store/generic/syncGroups/syncSourceDisplayName.d.ts +2 -0
- package/dist/src/store/generic/syncGroups/types.d.ts +200 -0
- package/dist/src/store/generic/syncGroups/utils.d.ts +76 -0
- package/dist/src/store/generic/synchronizationActions/actions.d.ts +11 -0
- package/dist/src/store/generic/synchronizationActions/types.d.ts +43 -0
- package/dist/src/store/generic/types.d.ts +24 -0
- package/dist/src/store/generic/utils.d.ts +9 -0
- package/dist/src/store/index.d.ts +22 -0
- package/dist/src/store/map/index.d.ts +5 -0
- package/dist/src/store/map/layer/index.d.ts +6 -0
- package/dist/src/store/map/layer/listeners.d.ts +2 -0
- package/dist/src/store/map/layer/reducer.d.ts +94 -0
- package/dist/src/store/map/layer/selectors.d.ts +2547 -0
- package/dist/src/store/map/layer/types.d.ts +198 -0
- package/dist/src/store/map/layer/utils.d.ts +41 -0
- package/dist/src/store/map/map/actions.d.ts +9 -0
- package/dist/src/store/map/map/constants.d.ts +3 -0
- package/dist/src/store/map/map/enums.d.ts +3 -0
- package/dist/src/store/map/map/filterLayers.d.ts +10 -0
- package/dist/src/store/map/map/index.d.ts +26 -0
- package/dist/src/store/map/map/listener.d.ts +4 -0
- package/dist/src/store/map/map/mapListenerAnimationUtils.d.ts +28 -0
- package/dist/src/store/map/map/metronomeListener.d.ts +2 -0
- package/dist/src/store/map/map/olMapListenerAnimationUtils.d.ts +46 -0
- package/dist/src/store/map/map/reducer.d.ts +142 -0
- package/dist/src/store/map/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts +7 -0
- package/dist/src/store/map/map/selectors.d.ts +3533 -0
- package/dist/src/store/map/map/types.d.ts +328 -0
- package/dist/src/store/map/map/utils.d.ts +87 -0
- package/dist/src/store/map/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/dist/src/store/map/service/index.d.ts +4 -0
- package/dist/src/store/map/service/listener.d.ts +5 -0
- package/dist/src/store/map/service/localStorage.d.ts +3 -0
- package/dist/src/store/map/service/reducer.d.ts +10 -0
- package/dist/src/store/map/service/selectors.d.ts +386 -0
- package/dist/src/store/map/service/types.d.ts +53 -0
- package/dist/src/store/map/storeTestSettings.d.ts +8 -0
- package/dist/src/store/map/storeTestUtils.d.ts +17 -0
- package/dist/src/store/map/types.d.ts +11 -0
- package/dist/src/store/mapStore/openlayers/listener.d.ts +2 -0
- package/dist/src/store/mapStore/openlayers/syncGroupViewStore.d.ts +26 -0
- package/dist/src/store/router/index.d.ts +2 -0
- package/dist/src/store/router/listener.d.ts +2 -0
- package/dist/src/store/router/reducer.d.ts +9 -0
- package/dist/src/store/router/types.d.ts +9 -0
- package/dist/src/store/router/utils.d.ts +4 -0
- package/dist/src/store/store.d.ts +37 -0
- package/dist/src/store/types.d.ts +7 -0
- package/dist/src/store/ui/index.d.ts +5 -0
- package/dist/src/store/ui/reducer.d.ts +39 -0
- package/dist/src/store/ui/selectors.d.ts +234 -0
- package/dist/src/store/ui/types.d.ts +98 -0
- package/dist/src/store/ui/useSetupDialog.d.ts +11 -0
- package/dist/src/store/unifyReducerMaps.d.ts +3 -0
- package/dist/src/store/utils.d.ts +6 -0
- package/package.json +3 -2
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { SyncType } from './types';
|
|
2
|
+
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload } from '../../map/types';
|
|
3
|
+
import type { CoreAppStore } from '../../types';
|
|
4
|
+
import type { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
5
|
+
interface FoundTargets {
|
|
6
|
+
payload: SyncLayerPayloads;
|
|
7
|
+
targetId: string;
|
|
8
|
+
layerId: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Tries to find the layerId's in the other map based on the payload of the action. It works for all layer actions.
|
|
12
|
+
* @param state
|
|
13
|
+
* @param mapId
|
|
14
|
+
* @param targetMapId
|
|
15
|
+
* @param payload
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
export declare const getTargetLayerIdFromPayload: (state: CoreAppStore, mapId: string, targetMapId: string, payload: SyncLayerPayloads) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Local helper function used by getLayerDeleteActionsTargets, getLayerActionsTargets, getAddLayerActionsTargets, getTargetLayerIdFromPayload to find the targets
|
|
21
|
+
* @param state
|
|
22
|
+
* @param payload
|
|
23
|
+
* @param actionType
|
|
24
|
+
* @param sourceMapId
|
|
25
|
+
* @returns The found targets
|
|
26
|
+
*/
|
|
27
|
+
export declare const findTargets: (state: CoreAppStore, payload: SyncLayerPayloads, actionType: SyncType, sourceMapId: string) => FoundTargets[];
|
|
28
|
+
/**
|
|
29
|
+
* These targets are found for layer actions that work with a layerId like: SetLayerName, SetLayerEnabled, SetLayerOpacity, SetLayerDimension and SetLayerStyle
|
|
30
|
+
* @param state
|
|
31
|
+
* @param payload
|
|
32
|
+
* @param actionType
|
|
33
|
+
* @returns
|
|
34
|
+
*/
|
|
35
|
+
export declare const getLayerActionsTargets: (state: CoreAppStore, payload: LayerActionPayloadsWithLayerIds, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
|
|
36
|
+
/**
|
|
37
|
+
* These targets are found for the layer/map action AddLayer. AddLayer does not have a layerId (because it's new)
|
|
38
|
+
* @param state
|
|
39
|
+
* @param payload
|
|
40
|
+
* @param actionType
|
|
41
|
+
* @returns
|
|
42
|
+
*/
|
|
43
|
+
export declare const getAddLayerActionsTargets: (state: CoreAppStore, payload: AddLayerPayload, actionType: SyncType) => AddLayerPayload[];
|
|
44
|
+
/**
|
|
45
|
+
* These targets are found for the layer/map action DeleteLayer. The layer is already gone, so there is no layerId anymore. Using layerIndex instead.
|
|
46
|
+
* @param state
|
|
47
|
+
* @param payload
|
|
48
|
+
* @param actionType
|
|
49
|
+
* @returns
|
|
50
|
+
*/
|
|
51
|
+
export declare const getLayerDeleteActionsTargets: (state: CoreAppStore, payload: DeleteLayerPayload, actionType: SyncType) => DeleteLayerPayload[];
|
|
52
|
+
/**
|
|
53
|
+
* These targets are found for the layer/map action MoveLayer. Here layers are referenced by newIndex and oldIndex.
|
|
54
|
+
* @param state
|
|
55
|
+
* @param payload
|
|
56
|
+
* @param actionType
|
|
57
|
+
* @returns
|
|
58
|
+
*/
|
|
59
|
+
export declare const getLayerMoveActionsTargets: (state: CoreAppStore, payload: MoveLayerPayload, actionType: SyncType) => MoveLayerPayload[];
|
|
60
|
+
/**
|
|
61
|
+
* These targets are found for the map action SetAutoLayerId. It needs both a target mapId and layerId
|
|
62
|
+
* @param state
|
|
63
|
+
* @param payload
|
|
64
|
+
* @param actionType
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
export declare const getSetAutoLayerIdActionsTargets: (state: CoreAppStore, payload: SetAutoLayerIdPayload, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
|
|
68
|
+
/**
|
|
69
|
+
* These targets are found for baselayer actions that work with a mapId like: setBaseLayers
|
|
70
|
+
* @param state
|
|
71
|
+
* @param payload
|
|
72
|
+
* @param actionType
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
export declare const getMapBaseLayerActionsTargets: (state: CoreAppStore, payload: SetBaseLayersPayload, actionType: SyncType) => SetBaseLayersPayload[];
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { SetBboxPayload, SetTimePayload, SyncLayerPayloads } from '../types';
|
|
2
|
+
import type { SetBboxSyncActionPayload, SetBboxSyncPayload, SetLayerActionsSyncPayload, SetTimeSyncActionPayload, SetTimeSyncPayload } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* These actions are fired by the generic/listener.ts, based on generic actions and the synchronizationGroup state.
|
|
5
|
+
*
|
|
6
|
+
* These actions should not be used by components directly. Components should only use the generic actions.
|
|
7
|
+
*/
|
|
8
|
+
export declare const setTimeSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[setTimePayload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]], SetTimeSyncActionPayload, "GENERIC_SYNC_SETTIME", never, never>;
|
|
9
|
+
export declare const setBboxSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]], SetBboxSyncActionPayload, "GENERIC_SYNC_SETBBOX", never, never>;
|
|
10
|
+
export declare const setLayerActionSync: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string], SetLayerActionsSyncPayload, "GENERIC_SYNC_SETLAYERACTIONS", never, never>;
|
|
11
|
+
export type GenericSyncActions = ReturnType<typeof setTimeSync> | ReturnType<typeof setBboxSync> | ReturnType<typeof setLayerActionSync>;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { setBbox, setTime } from '../actions';
|
|
2
|
+
import type { 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
|
+
}
|
|
12
|
+
export interface SetTimeSyncPayload {
|
|
13
|
+
targetId: string;
|
|
14
|
+
value: SetTimeSyncProps;
|
|
15
|
+
}
|
|
16
|
+
export interface SetBboxSyncPayload {
|
|
17
|
+
targetId: string;
|
|
18
|
+
bbox: {
|
|
19
|
+
left: number;
|
|
20
|
+
bottom: number;
|
|
21
|
+
right: number;
|
|
22
|
+
top: number;
|
|
23
|
+
};
|
|
24
|
+
srs: string;
|
|
25
|
+
}
|
|
26
|
+
export interface SetLayerActionsSyncPayload {
|
|
27
|
+
source: {
|
|
28
|
+
type: string;
|
|
29
|
+
payload: SyncLayerPayloads;
|
|
30
|
+
} | null;
|
|
31
|
+
targets: SyncLayerPayloads[];
|
|
32
|
+
}
|
|
33
|
+
export interface SetTimeSyncActionPayload {
|
|
34
|
+
source: ReturnType<typeof setTime> | null;
|
|
35
|
+
groups: string[];
|
|
36
|
+
targets: SetTimeSyncPayload[];
|
|
37
|
+
}
|
|
38
|
+
export interface SetBboxSyncActionPayload {
|
|
39
|
+
source: ReturnType<typeof setBbox> | null;
|
|
40
|
+
groups: string[];
|
|
41
|
+
targets: SetBboxSyncPayload[];
|
|
42
|
+
}
|
|
43
|
+
export type GenericSyncActionPayload = SetBboxSyncPayload | SetTimeSyncPayload | SetLayerActionsSyncPayload;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { SetLayerStylePayload } from '@opengeoweb/webmap-react';
|
|
2
|
+
import type { MapActionOrigin } from '../map/map/enums';
|
|
3
|
+
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerServicePayload } from '../map/types';
|
|
4
|
+
import type { SetTimeSyncProps } from './synchronizationActions/types';
|
|
5
|
+
export interface SetTimePayload {
|
|
6
|
+
sourceId: string;
|
|
7
|
+
origin: string;
|
|
8
|
+
value: SetTimeSyncProps;
|
|
9
|
+
}
|
|
10
|
+
export interface SetBboxPayload {
|
|
11
|
+
sourceId: string;
|
|
12
|
+
bbox: {
|
|
13
|
+
left: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
right: number;
|
|
16
|
+
top: number;
|
|
17
|
+
};
|
|
18
|
+
srs: string;
|
|
19
|
+
origin?: MapActionOrigin | string;
|
|
20
|
+
mapId?: string;
|
|
21
|
+
}
|
|
22
|
+
export type GenericActionPayload = SetBboxPayload | SetTimePayload;
|
|
23
|
+
export type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerServicePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetAutoLayerIdPayload;
|
|
24
|
+
export type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The removeInPlace() method modifies an array in place, by removing elements that pass the test implemented by the provided function.
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This should only be used on draft properties as provided by the immer produce library, as modifying elements in place is bad practice on non draft variables.
|
|
5
|
+
*
|
|
6
|
+
* @param inDraftArray The draft array to filter, will be modified in place.
|
|
7
|
+
* @param condition Function to check each element in the array
|
|
8
|
+
*/
|
|
9
|
+
export declare const removeInPlace: <T>(inDraftArray: T[], condition: (c: T) => boolean) => void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './map';
|
|
2
|
+
export * from './ui';
|
|
3
|
+
export * from './generic';
|
|
4
|
+
export { genericListener } from './generic/listener';
|
|
5
|
+
export { mapListener } from './map/map/listener';
|
|
6
|
+
export { openlayersListener } from './mapStore/openlayers/listener';
|
|
7
|
+
export { serviceListener } from './map/service/listener';
|
|
8
|
+
export { routerListener } from './router/listener';
|
|
9
|
+
export { drawingToolListener } from './drawingTool/listener';
|
|
10
|
+
export { layersListener } from './map/layer/listeners';
|
|
11
|
+
export { metronomeListener } from './map/map/metronomeListener';
|
|
12
|
+
export { commonListener } from './common/listener';
|
|
13
|
+
export { unifyReducerMaps, type ReducerMap } from './unifyReducerMaps';
|
|
14
|
+
export * from './router';
|
|
15
|
+
export * from './drawingTool';
|
|
16
|
+
export type * from './types';
|
|
17
|
+
export * as storeTestUtils from './map/storeTestUtils';
|
|
18
|
+
export * from './generic/linking';
|
|
19
|
+
export * as storeUtils from './utils';
|
|
20
|
+
export * from './utils';
|
|
21
|
+
export * from './store';
|
|
22
|
+
export * from './common';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { layerActions, layerReducer } from './reducer';
|
|
2
|
+
export type { LayerActions } from './reducer';
|
|
3
|
+
export * as layerSelectors from './selectors';
|
|
4
|
+
export * as layerTypes from './types';
|
|
5
|
+
export * as layerUtils from './utils';
|
|
6
|
+
export { LayerType } from '@opengeoweb/webmap';
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
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, DuplicateMapLayerPayload, ShowLayerInfoPayload, SetLayerGeojsonFromLayerPayload, SetLayerOptionsPayload, SetLayerLegendVisibilityPayload } from './types';
|
|
4
|
+
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, useLatestReferenceTime, ...props }: Layer) => Layer;
|
|
5
|
+
export declare const initialState: LayerState;
|
|
6
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
7
|
+
addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
|
|
8
|
+
duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
|
|
9
|
+
layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
|
|
10
|
+
layerChangeEnabled: (draft: Draft<LayerState>, action: PayloadAction<SetLayerEnabledPayload>) => void;
|
|
11
|
+
layerChangeOpacity: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOpacityPayload>) => void;
|
|
12
|
+
layerChangeStyle: (draft: Draft<LayerState>, action: PayloadAction<SetLayerStylePayload>) => void;
|
|
13
|
+
layerChangeAcceptanceTime: (draft: Draft<LayerState>, action: PayloadAction<SetLayerAcceptanceTimePayload>) => void;
|
|
14
|
+
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
15
|
+
layerChangeService: (draft: Draft<LayerState>, action: PayloadAction<SetLayerServicePayload>) => void;
|
|
16
|
+
layerChangeOptions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOptionsPayload>) => void;
|
|
17
|
+
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
18
|
+
layerSetGeojsonFromLayer: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonFromLayerPayload>) => void;
|
|
19
|
+
layerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
20
|
+
layerError: (draft: Draft<LayerState>, action: PayloadAction<ErrorLayerPayload>) => void;
|
|
21
|
+
baseLayerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
22
|
+
setLayers: (draft: Draft<LayerState>, action: PayloadAction<SetLayersPayload>) => void;
|
|
23
|
+
setBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetBaseLayersPayload>) => void;
|
|
24
|
+
addBaseLayer: (draft: Draft<LayerState>, action: PayloadAction<AddBaseLayerPayload>) => void;
|
|
25
|
+
layerSetDimensions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionsPayload>) => void;
|
|
26
|
+
addAvailableBaseLayer: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayerPayload>) => void;
|
|
27
|
+
addAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayersPayload>) => void;
|
|
28
|
+
setAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
|
|
29
|
+
setUseLatestReferenceTime: (draft: Draft<LayerState>, action: PayloadAction<{
|
|
30
|
+
id: string;
|
|
31
|
+
useLatestReferenceTime: boolean;
|
|
32
|
+
}>) => void;
|
|
33
|
+
onUpdateLayerInformation: (draft: Draft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => void;
|
|
34
|
+
orderLayerToFront: (draft: Draft<LayerState>, action: PayloadAction<{
|
|
35
|
+
layerId: string;
|
|
36
|
+
}>) => void;
|
|
37
|
+
setSelectedFeatures: (draft: Draft<LayerState>, action: PayloadAction<SetSelectedFeaturesPayload>) => void;
|
|
38
|
+
setHoveredFeatures: (draft: Draft<LayerState>, action: PayloadAction<SetHoveredFeaturesPayload>) => void;
|
|
39
|
+
updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
|
|
40
|
+
updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
|
|
41
|
+
toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
|
|
42
|
+
exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
|
|
43
|
+
toggleSelectableFeatures: (draft: Draft<LayerState>, action: PayloadAction<{
|
|
44
|
+
layerId: string;
|
|
45
|
+
}>) => void;
|
|
46
|
+
showLayerInfo: (draft: Draft<LayerState>, action: PayloadAction<ShowLayerInfoPayload>) => void;
|
|
47
|
+
hideLayerInfo: (draft: Draft<LayerState>) => void;
|
|
48
|
+
SetLayerLegendVisibilityPayload: (draft: Draft<LayerState>, action: PayloadAction<SetLayerLegendVisibilityPayload>) => void;
|
|
49
|
+
}, "layerReducer", "layerReducer", import("@reduxjs/toolkit").SliceSelectors<LayerState>>;
|
|
50
|
+
export declare const layerReducer: import("redux").Reducer<LayerState>, layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
51
|
+
addLayer: (draft: Draft<LayerState>, action: PayloadAction<AddLayerPayload>) => void;
|
|
52
|
+
duplicateMapLayer: (draft: Draft<LayerState>, action: PayloadAction<DuplicateMapLayerPayload>) => void;
|
|
53
|
+
layerChangeDimension: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionPayload>) => void;
|
|
54
|
+
layerChangeEnabled: (draft: Draft<LayerState>, action: PayloadAction<SetLayerEnabledPayload>) => void;
|
|
55
|
+
layerChangeOpacity: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOpacityPayload>) => void;
|
|
56
|
+
layerChangeStyle: (draft: Draft<LayerState>, action: PayloadAction<SetLayerStylePayload>) => void;
|
|
57
|
+
layerChangeAcceptanceTime: (draft: Draft<LayerState>, action: PayloadAction<SetLayerAcceptanceTimePayload>) => void;
|
|
58
|
+
layerChangeName: (draft: Draft<LayerState>, action: PayloadAction<SetLayerNamePayload>) => void;
|
|
59
|
+
layerChangeService: (draft: Draft<LayerState>, action: PayloadAction<SetLayerServicePayload>) => void;
|
|
60
|
+
layerChangeOptions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerOptionsPayload>) => void;
|
|
61
|
+
layerChangeGeojson: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonPayload>) => void;
|
|
62
|
+
layerSetGeojsonFromLayer: (draft: Draft<LayerState>, action: PayloadAction<SetLayerGeojsonFromLayerPayload>) => void;
|
|
63
|
+
layerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
64
|
+
layerError: (draft: Draft<LayerState>, action: PayloadAction<ErrorLayerPayload>) => void;
|
|
65
|
+
baseLayerDelete: (draft: Draft<LayerState>, action: PayloadAction<DeleteLayerPayload>) => void;
|
|
66
|
+
setLayers: (draft: Draft<LayerState>, action: PayloadAction<SetLayersPayload>) => void;
|
|
67
|
+
setBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetBaseLayersPayload>) => void;
|
|
68
|
+
addBaseLayer: (draft: Draft<LayerState>, action: PayloadAction<AddBaseLayerPayload>) => void;
|
|
69
|
+
layerSetDimensions: (draft: Draft<LayerState>, action: PayloadAction<SetLayerDimensionsPayload>) => void;
|
|
70
|
+
addAvailableBaseLayer: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayerPayload>) => void;
|
|
71
|
+
addAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<AddAvailableBaseLayersPayload>) => void;
|
|
72
|
+
setAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
|
|
73
|
+
setUseLatestReferenceTime: (draft: Draft<LayerState>, action: PayloadAction<{
|
|
74
|
+
id: string;
|
|
75
|
+
useLatestReferenceTime: boolean;
|
|
76
|
+
}>) => void;
|
|
77
|
+
onUpdateLayerInformation: (draft: Draft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => void;
|
|
78
|
+
orderLayerToFront: (draft: Draft<LayerState>, action: PayloadAction<{
|
|
79
|
+
layerId: string;
|
|
80
|
+
}>) => void;
|
|
81
|
+
setSelectedFeatures: (draft: Draft<LayerState>, action: PayloadAction<SetSelectedFeaturesPayload>) => void;
|
|
82
|
+
setHoveredFeatures: (draft: Draft<LayerState>, action: PayloadAction<SetHoveredFeaturesPayload>) => void;
|
|
83
|
+
updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
|
|
84
|
+
updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
|
|
85
|
+
toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
|
|
86
|
+
exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
|
|
87
|
+
toggleSelectableFeatures: (draft: Draft<LayerState>, action: PayloadAction<{
|
|
88
|
+
layerId: string;
|
|
89
|
+
}>) => void;
|
|
90
|
+
showLayerInfo: (draft: Draft<LayerState>, action: PayloadAction<ShowLayerInfoPayload>) => void;
|
|
91
|
+
hideLayerInfo: (draft: Draft<LayerState>) => void;
|
|
92
|
+
SetLayerLegendVisibilityPayload: (draft: Draft<LayerState>, action: PayloadAction<SetLayerLegendVisibilityPayload>) => void;
|
|
93
|
+
}, "layerReducer">;
|
|
94
|
+
export type LayerActions = ReturnType<typeof layerActions.layerSetDimensions> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.addAvailableBaseLayer> | ReturnType<typeof layerActions.addAvailableBaseLayers> | ReturnType<typeof layerActions.addBaseLayer> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.baseLayerDelete> | ReturnType<typeof layerActions.onUpdateLayerInformation> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeGeojson> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeService> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.layerError> | ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.setLayers> | ReturnType<typeof layerActions.SetLayerLegendVisibilityPayload>;
|