@opengeoweb/core 2.6.0 → 2.9.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 +6741 -7105
- package/index.umd.js +21864 -22115
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +7 -21
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts → ConfigurableMap/ConfigurableMapConnect.d.ts} +11 -17
- package/lib/components/{ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts → ConfigurableMap/ConfigurableMapConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.stories.d.ts +7 -0
- package/lib/components/ConfigurableMap/index.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerAddRemoveButton.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +3 -3
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +4 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +5 -3
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +1 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +3 -2
- package/lib/components/Legend/LegendConnect.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +0 -1
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.d.ts +12 -0
- package/lib/components/{ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts → MultiMapView/ModelRunInterval/ModelRunInterval.spec.d.ts} +0 -0
- package/lib/components/MultiMapView/ModelRunInterval/ModelRunInterval.stories.d.ts +4 -0
- package/lib/components/MultiMapView/ModelRunInterval/index.d.ts +1 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -3
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -3
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +1 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +1 -1
- package/lib/components/SyncGroups/selector.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSlider.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +2 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -2
- package/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +1 -1
- package/lib/index.d.ts +5 -4
- package/lib/store/generic/actions.d.ts +3 -4
- package/lib/store/generic/index.d.ts +2 -0
- package/lib/store/generic/sagas.d.ts +7 -6
- package/lib/store/generic/selectors.d.ts +0 -1
- package/lib/store/generic/synchronizationActions/actions.d.ts +6 -5
- package/lib/store/generic/synchronizationActions/types.d.ts +10 -23
- package/lib/store/generic/synchronizationGroups/constants.d.ts +0 -8
- package/lib/store/generic/synchronizationGroups/index.d.ts +1 -2
- package/lib/store/generic/synchronizationGroups/reducer.d.ts +25 -3
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +3 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +0 -2
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -38
- package/lib/store/generic/types.d.ts +0 -11
- package/lib/store/layerSelect/selectors.d.ts +0 -6
- package/lib/store/layerSelect/types.d.ts +7 -4
- package/lib/store/mapStore/actions.d.ts +1 -1
- package/lib/store/mapStore/constants.d.ts +0 -1
- package/lib/store/mapStore/layers/actions.d.ts +8 -1
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/reducer.d.ts +2 -2
- package/lib/store/mapStore/layers/selectors.d.ts +0 -17
- package/lib/store/mapStore/layers/types.d.ts +11 -3
- package/lib/store/mapStore/map/reducer.d.ts +12 -4
- package/lib/store/mapStore/map/sagas.d.ts +7 -5
- package/lib/store/mapStore/map/selectors.d.ts +40 -35
- package/lib/store/mapStore/map/types.d.ts +39 -96
- package/lib/store/mapStore/map/utils.d.ts +2 -1
- package/lib/store/mapStore/service/selectors.d.ts +0 -7
- package/lib/store/mapStore/service/types.d.ts +2 -0
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/actions.d.ts +8 -1
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +2 -8
- package/lib/store/ui/selectors.d.ts +11 -8
- package/lib/store/ui/types.d.ts +13 -3
- package/lib/types/types.d.ts +1 -2
- package/lib/utils/jsonPresetFilter.d.ts +26 -7
- package/lib/utils/types.d.ts +0 -38
- package/package.json +8 -7
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +0 -6
- package/lib/components/ConfigurableConnectedMap/index.d.ts +0 -1
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +0 -22
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +0 -1
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +0 -9
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/actions.d.ts +0 -15
- package/lib/store/advancedLayerStore/config.d.ts +0 -4
- package/lib/store/advancedLayerStore/constants.d.ts +0 -2
- package/lib/store/advancedLayerStore/reducer.d.ts +0 -14
- package/lib/store/advancedLayerStore/reducer.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/selectors.d.ts +0 -21
- package/lib/store/advancedLayerStore/selectors.spec.d.ts +0 -1
- package/lib/store/advancedLayerStore/types.d.ts +0 -30
- package/lib/store/generic/constants.d.ts +0 -2
- package/lib/store/generic/synchronizationActions/constants.d.ts +0 -3
- package/lib/store/generic/synchronizationGroups/actions.d.ts +0 -80
- package/lib/store/mapStore/map/actions.d.ts +0 -156
- package/lib/store/mapStore/map/constants.d.ts +0 -23
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
+
import { SynchronizationGroupState, SyncGroupAddTargetPayload, SyncGroupAddGroupPayload, SyncGroupRemoveTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupSetViewStatePayload, SyncGroupLinkTargetPayload, SyncGroupRemoveSourcePayload, SyncGroupsAddSourcePayload } from './types';
|
|
3
3
|
export declare const initialState: SynchronizationGroupState;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const slice: import("@reduxjs/toolkit").Slice<SynchronizationGroupState, {
|
|
5
|
+
syncGroupAddSource: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupsAddSourcePayload>) => void;
|
|
6
|
+
syncGroupRemoveSource: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveSourcePayload>) => void;
|
|
7
|
+
syncGroupAddTarget: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddTargetPayload>) => void;
|
|
8
|
+
syncGroupRemoveTarget: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveTargetPayload>) => void;
|
|
9
|
+
syncGroupLinkTarget: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupLinkTargetPayload>) => void;
|
|
10
|
+
syncGroupAddGroup: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddGroupPayload>) => void;
|
|
11
|
+
syncGroupRemoveGroup: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveGroupPayload>) => void;
|
|
12
|
+
syncGroupClear: () => SynchronizationGroupState;
|
|
13
|
+
syncGroupSetViewState: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupSetViewStatePayload>) => void;
|
|
14
|
+
}, "synchronizationGroupsReducer">;
|
|
15
|
+
export declare const syncGroupAddGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupAddGroupPayload, string>, syncGroupAddSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupsAddSourcePayload, string>, syncGroupAddTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupAddTargetPayload, string>, syncGroupClear: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, syncGroupLinkTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupLinkTargetPayload, string>, syncGroupRemoveGroup: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupRemoveGroupPayload, string>, syncGroupRemoveSource: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupRemoveSourcePayload, string>, syncGroupRemoveTarget: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupRemoveTargetPayload, string>, syncGroupSetViewState: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<SyncGroupSetViewStatePayload, string>;
|
|
16
|
+
export declare const actions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
17
|
+
syncGroupAddSource: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupsAddSourcePayload>) => void;
|
|
18
|
+
syncGroupRemoveSource: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveSourcePayload>) => void;
|
|
19
|
+
syncGroupAddTarget: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddTargetPayload>) => void;
|
|
20
|
+
syncGroupRemoveTarget: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveTargetPayload>) => void;
|
|
21
|
+
syncGroupLinkTarget: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupLinkTargetPayload>) => void;
|
|
22
|
+
syncGroupAddGroup: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupAddGroupPayload>) => void;
|
|
23
|
+
syncGroupRemoveGroup: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupRemoveGroupPayload>) => void;
|
|
24
|
+
syncGroupClear: () => SynchronizationGroupState;
|
|
25
|
+
syncGroupSetViewState: (draft: import("immer/dist/internal").WritableDraft<SynchronizationGroupState>, action: PayloadAction<SyncGroupSetViewStatePayload>) => void;
|
|
26
|
+
}>, reducer: import("@reduxjs/toolkit").Reducer<SynchronizationGroupState, import("@reduxjs/toolkit").AnyAction>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import
|
|
2
|
+
import * as synchronizationGroupActions from './reducer';
|
|
3
3
|
export declare function updateSourceValueWhenLinkingComponentToGroupSaga(groupId: string, targetToUpdate: string): SagaIterator;
|
|
4
|
-
export declare function addGroupTargetSaga({ payload, }:
|
|
5
|
-
export declare function linkGroupTargetSaga({ payload, }:
|
|
4
|
+
export declare function addGroupTargetSaga({ payload, }: ReturnType<typeof synchronizationGroupActions.syncGroupAddTarget>): SagaIterator;
|
|
5
|
+
export declare function linkGroupTargetSaga({ payload, }: ReturnType<typeof synchronizationGroupActions.syncGroupLinkTarget>): SagaIterator;
|
|
6
6
|
export declare function updateViewStateSaga(): SagaIterator;
|
|
7
7
|
declare function rootSaga(): SagaIterator;
|
|
8
8
|
export default rootSaga;
|
|
@@ -11,7 +11,6 @@ export declare const syncGroupStore: (store: AppStore) => SynchronizationGroupSt
|
|
|
11
11
|
* @returns {object} returnType: SynchronizationGroupState
|
|
12
12
|
*/
|
|
13
13
|
export declare const getSynchronizationGroupState: ((state: {
|
|
14
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
15
14
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
16
15
|
ui?: import("../../ui/types").UIStoreType;
|
|
17
16
|
webmap?: import("../../mapStore/types").WebMapState;
|
|
@@ -28,7 +27,6 @@ export declare const getSynchronizationGroupSource: (state: AppStore, id: string
|
|
|
28
27
|
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
29
28
|
export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
|
|
30
29
|
export declare const syncGroupGetViewState: ((state: {
|
|
31
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
30
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
33
31
|
ui?: import("../../ui/types").UIStoreType;
|
|
34
32
|
webmap?: import("../../mapStore/types").WebMapState;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Action } from 'redux';
|
|
2
1
|
import { GenericActionPayload } from '../types';
|
|
3
|
-
import {
|
|
2
|
+
import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
|
|
4
3
|
import { SyncGroupViewState } from '../../../components/SyncGroups/types';
|
|
5
4
|
export interface SynchronizationGroup {
|
|
6
5
|
type: SyncType;
|
|
@@ -68,40 +67,4 @@ export interface SyncGroupRemoveGroupPayload {
|
|
|
68
67
|
export interface SyncGroupSetViewStatePayload {
|
|
69
68
|
viewState: SyncGroupViewState;
|
|
70
69
|
}
|
|
71
|
-
export interface SyncGroupsAddSource extends Action {
|
|
72
|
-
type: typeof SYNCGROUPS_ADD_SOURCE;
|
|
73
|
-
payload: SyncGroupsAddSourcePayload;
|
|
74
|
-
}
|
|
75
|
-
export interface SyncGroupsRemoveSource extends Action {
|
|
76
|
-
type: typeof SYNCGROUPS_REMOVE_SOURCE;
|
|
77
|
-
payload: SyncGroupRemoveSourcePayload;
|
|
78
|
-
}
|
|
79
|
-
export interface SyncGroupAddTarget extends Action {
|
|
80
|
-
type: typeof SYNCGROUPS_ADD_TARGET;
|
|
81
|
-
payload: SyncGroupAddTargetPayload;
|
|
82
|
-
}
|
|
83
|
-
export interface SyncGroupRemoveTarget extends Action {
|
|
84
|
-
type: typeof SYNCGROUPS_REMOVE_TARGET;
|
|
85
|
-
payload: SyncGroupRemoveTargetPayload;
|
|
86
|
-
}
|
|
87
|
-
export interface SyncGroupLinkTarget extends Action {
|
|
88
|
-
type: typeof SYNCGROUPS_TOGGLE_LINK_TARGET;
|
|
89
|
-
payload: SyncGroupLinkTargetPayload;
|
|
90
|
-
}
|
|
91
|
-
export interface SyncGroupAddGroup extends Action {
|
|
92
|
-
type: typeof SYNCGROUPS_ADD_GROUP;
|
|
93
|
-
payload: SyncGroupAddGroupPayload;
|
|
94
|
-
}
|
|
95
|
-
export interface SyncGroupRemoveGroup extends Action {
|
|
96
|
-
type: typeof SYNCGROUPS_REMOVE_GROUP;
|
|
97
|
-
payload: SyncGroupRemoveGroupPayload;
|
|
98
|
-
}
|
|
99
|
-
export interface SyncGroupClear extends Action {
|
|
100
|
-
type: typeof SYNCGROUPS_CLEAR;
|
|
101
|
-
}
|
|
102
|
-
export interface SyncGroupSetViewState extends Action {
|
|
103
|
-
type: typeof SYNCGROUPS_SET_VIEW_STATE;
|
|
104
|
-
payload: SyncGroupSetViewStatePayload;
|
|
105
|
-
}
|
|
106
70
|
export declare const SyncGroupTypeList: string[];
|
|
107
|
-
export declare type SynchronizationGroupActions = SyncGroupsAddSource | SyncGroupsRemoveSource | SyncGroupAddTarget | SyncGroupRemoveTarget | SyncGroupLinkTarget | SyncGroupAddGroup | SyncGroupRemoveGroup | SyncGroupClear | SyncGroupSetViewState;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Action } from 'redux';
|
|
2
1
|
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetActiveLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
|
|
3
|
-
import { GENERIC_SETTIME, GENERIC_SETBBOX } from './constants';
|
|
4
2
|
export interface SetTimePayload {
|
|
5
3
|
sourceId: string;
|
|
6
4
|
origin: string;
|
|
@@ -16,15 +14,6 @@ export interface SetBboxPayload {
|
|
|
16
14
|
};
|
|
17
15
|
srs: string;
|
|
18
16
|
}
|
|
19
|
-
export interface SetTime extends Action {
|
|
20
|
-
type: typeof GENERIC_SETTIME;
|
|
21
|
-
payload: SetTimePayload;
|
|
22
|
-
}
|
|
23
|
-
export interface SetBbox extends Action {
|
|
24
|
-
type: typeof GENERIC_SETBBOX;
|
|
25
|
-
payload: SetBboxPayload;
|
|
26
|
-
}
|
|
27
17
|
export declare type GenericActionPayload = SetBboxPayload | SetTimePayload;
|
|
28
|
-
export declare type GenericActions = SetTime | SetBbox;
|
|
29
18
|
export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetActiveLayerIdPayload;
|
|
30
19
|
export declare type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
|
|
@@ -8,7 +8,6 @@ import { LayerSelectStoreType, ActiveServices, KeywordObject } from './types';
|
|
|
8
8
|
* @returns {array} returnType: string
|
|
9
9
|
*/
|
|
10
10
|
export declare const getSearchFilter: ((state: {
|
|
11
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
12
11
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
13
12
|
ui?: import("../ui/types").UIStoreType;
|
|
14
13
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -28,7 +27,6 @@ export declare const getSearchFilter: ((state: {
|
|
|
28
27
|
* @returns {object} returnType: object of active services
|
|
29
28
|
*/
|
|
30
29
|
export declare const getActiveServices: ((state: {
|
|
31
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
30
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
33
31
|
ui?: import("../ui/types").UIStoreType;
|
|
34
32
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -48,7 +46,6 @@ export declare const getActiveServices: ((state: {
|
|
|
48
46
|
* @returns {array} returnType: array of service ids that are enabled
|
|
49
47
|
*/
|
|
50
48
|
export declare const getEnabledServiceIds: ((state: {
|
|
51
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
52
49
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
53
50
|
ui?: import("../ui/types").UIStoreType;
|
|
54
51
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -68,7 +65,6 @@ export declare const getEnabledServiceIds: ((state: {
|
|
|
68
65
|
* @returns {array} returnType: array of keyword ids that are checked
|
|
69
66
|
*/
|
|
70
67
|
export declare const getCheckedKeywordIds: ((state: {
|
|
71
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
72
68
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
73
69
|
ui?: import("../ui/types").UIStoreType;
|
|
74
70
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -88,7 +84,6 @@ export declare const getCheckedKeywordIds: ((state: {
|
|
|
88
84
|
* @returns {array} returnType: array of all keyword ids
|
|
89
85
|
*/
|
|
90
86
|
export declare const getAllKeywordIds: ((state: {
|
|
91
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
92
87
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
93
88
|
ui?: import("../ui/types").UIStoreType;
|
|
94
89
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -108,7 +103,6 @@ export declare const getAllKeywordIds: ((state: {
|
|
|
108
103
|
* @returns {array} returnType: boolean if all keywords are checked
|
|
109
104
|
*/
|
|
110
105
|
export declare const isAllKeywordsChecked: ((state: {
|
|
111
|
-
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
112
106
|
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
113
107
|
ui?: import("../ui/types").UIStoreType;
|
|
114
108
|
webmap?: import("../mapStore/types").WebMapState;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { LAYER_SELECT_SET_SEARCH_FILTER, LAYER_SELECT_ENABLE_ACTIVE_SERVICE, LAYER_SELECT_DISABLE_ACTIVE_SERVICE, LAYER_SELECT_ADD_KEYWORDS_AND_ACTIVE_SERVICES, LAYER_SELECT_SERVICE_REMOVED, LAYER_SELECT_TOGGLE_KEYWORDS, LAYER_SELECT_ENABLE_ONLY_ONE_KEYWORD } from './constants';
|
|
3
3
|
export interface ActiveServiceObject {
|
|
4
|
-
|
|
4
|
+
serviceName?: string;
|
|
5
|
+
serviceUrl?: string;
|
|
5
6
|
enabled?: boolean;
|
|
6
7
|
keywordsPerService?: string[];
|
|
7
8
|
}
|
|
@@ -44,7 +45,7 @@ export interface SetSearchFilter extends Action {
|
|
|
44
45
|
payload: SetSearchFilterPayload;
|
|
45
46
|
}
|
|
46
47
|
export interface EnableActiveServicePayload {
|
|
47
|
-
|
|
48
|
+
serviceId: string;
|
|
48
49
|
keywords: string[];
|
|
49
50
|
}
|
|
50
51
|
export interface EnableActiveService extends Action {
|
|
@@ -52,7 +53,7 @@ export interface EnableActiveService extends Action {
|
|
|
52
53
|
payload: EnableActiveServicePayload;
|
|
53
54
|
}
|
|
54
55
|
export interface DisableActiveServicePayload {
|
|
55
|
-
|
|
56
|
+
serviceId: string;
|
|
56
57
|
keywords: string[];
|
|
57
58
|
}
|
|
58
59
|
export interface DisableActiveService extends Action {
|
|
@@ -60,6 +61,8 @@ export interface DisableActiveService extends Action {
|
|
|
60
61
|
payload: DisableActiveServicePayload;
|
|
61
62
|
}
|
|
62
63
|
export interface AddKeywordsAndActiveServicesPayload {
|
|
64
|
+
serviceId: string;
|
|
65
|
+
serviceName: string;
|
|
63
66
|
serviceUrl: string;
|
|
64
67
|
keywords: string[];
|
|
65
68
|
}
|
|
@@ -68,7 +71,7 @@ export interface AddKeywordsAndActiveServices extends Action {
|
|
|
68
71
|
payload: AddKeywordsAndActiveServicesPayload;
|
|
69
72
|
}
|
|
70
73
|
export interface LayerSelectServiceRemovedPayload {
|
|
71
|
-
|
|
74
|
+
serviceId: string;
|
|
72
75
|
}
|
|
73
76
|
export interface LayerSelectServiceRemoved extends Action {
|
|
74
77
|
type: typeof LAYER_SELECT_SERVICE_REMOVED;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './map/actions';
|
|
2
1
|
export * from './layers/actions';
|
|
3
2
|
export * from './service/actions';
|
|
3
|
+
export declare const layerMoveLayer: any, mapChangeDimension: any, mapStartAnimation: any, mapStopAnimation: any, mapUpdateAllMapDimensions: any, registerMap: any, setActiveLayerId: any, setActiveMapPresetId: any, setAnimationDelay: any, setAnimationEndTime: any, setAnimationStartTime: any, setBbox: any, setDisableMapPin: any, setMapPinLocation: any, setMapPreset: any, setSelectedFeature: any, setTimeSliderCenterTime: any, setTimeSliderDataScaleToSecondsPerPx: any, setTimeSliderScale: any, setTimeSliderSecondsPerPx: any, setTimeStep: any, toggleAutoUpdate: any, toggleLoop: any, toggleTimeSliderHover: any, toggleTimestepAuto: any, unregisterMap: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload } from './types';
|
|
1
|
+
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, UpdateLayerInfoPayload, SetLayerGeojsonPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Set the layers for a map. Erases all previous layers.
|
|
4
4
|
* The following action types are triggered after the getCapabilities are parsed:
|
|
@@ -86,6 +86,13 @@ export declare const layerChangeName: (payload: SetLayerNamePayload) => LayerAct
|
|
|
86
86
|
* @param {object} payload Object with a layerId: string, style: string, origin?: string, service?: string;
|
|
87
87
|
*/
|
|
88
88
|
export declare const layerChangeStyle: (payload: SetLayerStylePayload) => LayerActions;
|
|
89
|
+
/**
|
|
90
|
+
* Changes the geojson of a layer
|
|
91
|
+
*
|
|
92
|
+
* Example: layerChangeGeojson({ layerId: 'layerId1', geojson: geojson })
|
|
93
|
+
* @param {object} payload Object with a layerId: string, geojson: FeatureCollection;
|
|
94
|
+
*/
|
|
95
|
+
export declare const layerChangeGeojson: (payload: SetLayerGeojsonPayload) => LayerActions;
|
|
89
96
|
/**
|
|
90
97
|
* Deletes a layer
|
|
91
98
|
*
|
|
@@ -2,6 +2,7 @@ export declare const WEBMAP_LAYER_CHANGE_OPACITY = "WEBMAP_LAYER_CHANGE_OPACITY"
|
|
|
2
2
|
export declare const WEBMAP_LAYER_CHANGE_NAME = "WEBMAP_LAYER_CHANGE_NAME";
|
|
3
3
|
export declare const WEBMAP_LAYER_CHANGE_STYLE = "WEBMAP_LAYER_CHANGE_STYLE";
|
|
4
4
|
export declare const WEBMAP_LAYER_CHANGE_DIMENSION = "WEBMAP_LAYER_CHANGE_DIMENSION";
|
|
5
|
+
export declare const WEBMAP_LAYER_CHANGE_GEOJSON = "WEBMAP_LAYER_CHANGE_GEOJSON";
|
|
5
6
|
export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
|
|
6
7
|
export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
|
|
7
8
|
export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LayerActions, LayerState, Layer } from './types';
|
|
2
|
-
import { MapActions } from '../map/
|
|
3
|
-
import { GenericSyncActions } from '../../generic/synchronizationActions/
|
|
2
|
+
import { MapActions } from '../map/reducer';
|
|
3
|
+
import { GenericSyncActions } from '../../generic/synchronizationActions/actions';
|
|
4
4
|
export declare const createLayer: ({ id, opacity, enabled, layerType, status, ...props }: Layer) => Layer;
|
|
5
5
|
export declare const initialState: LayerState;
|
|
6
6
|
export declare const reducer: (state: LayerState, action: LayerActions | MapActions | GenericSyncActions) => LayerState;
|
|
@@ -18,7 +18,6 @@ export declare const getLayerById: (store: AppStore, layerId: string) => Layer;
|
|
|
18
18
|
* @returns {object} returnType: object - an object of all layers containing layer information (service, name, style, enabled etc.) indexed by layerId
|
|
19
19
|
*/
|
|
20
20
|
export declare const getLayersById: ((state: {
|
|
21
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
22
21
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
23
22
|
ui?: import("../../ui/types").UIStoreType;
|
|
24
23
|
webmap?: import("../types").WebMapState;
|
|
@@ -38,7 +37,6 @@ export declare const getLayersById: ((state: {
|
|
|
38
37
|
* @returns {array} returnType: array - an array of all layerIds
|
|
39
38
|
*/
|
|
40
39
|
export declare const getLayersIds: ((state: {
|
|
41
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
42
40
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
43
41
|
ui?: import("../../ui/types").UIStoreType;
|
|
44
42
|
webmap?: import("../types").WebMapState;
|
|
@@ -58,7 +56,6 @@ export declare const getLayersIds: ((state: {
|
|
|
58
56
|
* @returns {array} returnType: array - an array of all layers containing layer information (service, name, style, enabled etc.)
|
|
59
57
|
*/
|
|
60
58
|
export declare const getAllLayers: ((state: {
|
|
61
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
62
59
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
63
60
|
ui?: import("../../ui/types").UIStoreType;
|
|
64
61
|
webmap?: import("../types").WebMapState;
|
|
@@ -78,7 +75,6 @@ export declare const getAllLayers: ((state: {
|
|
|
78
75
|
* @returns {array} returnType: array - an array of all non-baselayers containing layer information (service, name, style, enabled etc.)
|
|
79
76
|
*/
|
|
80
77
|
export declare const getLayers: ((state: {
|
|
81
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
82
78
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
83
79
|
ui?: import("../../ui/types").UIStoreType;
|
|
84
80
|
webmap?: import("../types").WebMapState;
|
|
@@ -98,7 +94,6 @@ export declare const getLayers: ((state: {
|
|
|
98
94
|
* @returns {array} returnType: array - an array of all baselayers containing layer information (service, name, style, enabled etc.)
|
|
99
95
|
*/
|
|
100
96
|
export declare const getBaseLayers: ((state: {
|
|
101
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
102
97
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
103
98
|
ui?: import("../../ui/types").UIStoreType;
|
|
104
99
|
webmap?: import("../types").WebMapState;
|
|
@@ -118,7 +113,6 @@ export declare const getBaseLayers: ((state: {
|
|
|
118
113
|
* @returns {array} returnType: array - an array of all overLayers containing layer information (service, name, style, enabled etc.)
|
|
119
114
|
*/
|
|
120
115
|
export declare const getOverLayers: ((state: {
|
|
121
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
122
116
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
123
117
|
ui?: import("../../ui/types").UIStoreType;
|
|
124
118
|
webmap?: import("../types").WebMapState;
|
|
@@ -139,7 +133,6 @@ export declare const getOverLayers: ((state: {
|
|
|
139
133
|
* @returns {array} returnType: Dimension[] - array containing layer dimensions
|
|
140
134
|
*/
|
|
141
135
|
export declare const getLayerDimensions: ((state: {
|
|
142
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
143
136
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
144
137
|
ui?: import("../../ui/types").UIStoreType;
|
|
145
138
|
webmap?: import("../types").WebMapState;
|
|
@@ -160,7 +153,6 @@ export declare const getLayerDimensions: ((state: {
|
|
|
160
153
|
* @returns {array} returnType: Dimension[] - array containing layer dimensions, excluding the time dimension
|
|
161
154
|
*/
|
|
162
155
|
export declare const getLayerNonTimeDimensions: ((state: {
|
|
163
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
164
156
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
165
157
|
ui?: import("../../ui/types").UIStoreType;
|
|
166
158
|
webmap?: import("../types").WebMapState;
|
|
@@ -181,7 +173,6 @@ export declare const getLayerNonTimeDimensions: ((state: {
|
|
|
181
173
|
* @returns {object} returnType: object - object of layer time dimension
|
|
182
174
|
*/
|
|
183
175
|
export declare const getLayerTimeDimension: ((state: {
|
|
184
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
185
176
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
186
177
|
ui?: import("../../ui/types").UIStoreType;
|
|
187
178
|
webmap?: import("../types").WebMapState;
|
|
@@ -203,7 +194,6 @@ export declare const getLayerTimeDimension: ((state: {
|
|
|
203
194
|
* @returns {object} returnType: object - object of layer dimension
|
|
204
195
|
*/
|
|
205
196
|
export declare const getLayerDimension: ((state: {
|
|
206
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
207
197
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
208
198
|
ui?: import("../../ui/types").UIStoreType;
|
|
209
199
|
webmap?: import("../types").WebMapState;
|
|
@@ -224,7 +214,6 @@ export declare const getLayerDimension: ((state: {
|
|
|
224
214
|
* @returns {number} returnType: number - opacity as a number (between 0 and 1)
|
|
225
215
|
*/
|
|
226
216
|
export declare const getLayerOpacity: ((state: {
|
|
227
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
228
217
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
229
218
|
ui?: import("../../ui/types").UIStoreType;
|
|
230
219
|
webmap?: import("../types").WebMapState;
|
|
@@ -245,7 +234,6 @@ export declare const getLayerOpacity: ((state: {
|
|
|
245
234
|
* @returns {boolean} returnType: boolean - true if enabled, false if disabled
|
|
246
235
|
*/
|
|
247
236
|
export declare const getLayerEnabled: ((state: {
|
|
248
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
249
237
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
250
238
|
ui?: import("../../ui/types").UIStoreType;
|
|
251
239
|
webmap?: import("../types").WebMapState;
|
|
@@ -266,7 +254,6 @@ export declare const getLayerEnabled: ((state: {
|
|
|
266
254
|
* @returns {string} returnType: string - layer name
|
|
267
255
|
*/
|
|
268
256
|
export declare const getLayerName: ((state: {
|
|
269
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
270
257
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
271
258
|
ui?: import("../../ui/types").UIStoreType;
|
|
272
259
|
webmap?: import("../types").WebMapState;
|
|
@@ -287,7 +274,6 @@ export declare const getLayerName: ((state: {
|
|
|
287
274
|
* @returns {string} returnType: string - layer service
|
|
288
275
|
*/
|
|
289
276
|
export declare const getLayerService: ((state: {
|
|
290
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
291
277
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
292
278
|
ui?: import("../../ui/types").UIStoreType;
|
|
293
279
|
webmap?: import("../types").WebMapState;
|
|
@@ -308,7 +294,6 @@ export declare const getLayerService: ((state: {
|
|
|
308
294
|
* @returns {string} returnType: string - style that is currently selected
|
|
309
295
|
*/
|
|
310
296
|
export declare const getLayerStyle: ((state: {
|
|
311
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
312
297
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
313
298
|
ui?: import("../../ui/types").UIStoreType;
|
|
314
299
|
webmap?: import("../types").WebMapState;
|
|
@@ -329,7 +314,6 @@ export declare const getLayerStyle: ((state: {
|
|
|
329
314
|
* @returns {string} returnType: LayerStatus
|
|
330
315
|
*/
|
|
331
316
|
export declare const getLayerStatus: ((state: {
|
|
332
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
333
317
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
334
318
|
ui?: import("../../ui/types").UIStoreType;
|
|
335
319
|
webmap?: import("../types").WebMapState;
|
|
@@ -350,7 +334,6 @@ export declare const getLayerStatus: ((state: {
|
|
|
350
334
|
* @returns {array} returnType: array - array containing all available base layers
|
|
351
335
|
*/
|
|
352
336
|
export declare const getAvailableBaseLayersForMap: ((state: {
|
|
353
|
-
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
354
337
|
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
355
338
|
ui?: import("../../ui/types").UIStoreType;
|
|
356
339
|
webmap?: import("../types").WebMapState;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { Style } from '@opengeoweb/webmap';
|
|
3
|
+
import { FeatureCollection } from 'geojson';
|
|
3
4
|
import { Dimension, UpdateAllMapDimensionsPayload } from '../map/types';
|
|
4
|
-
import { WEBMAP_LAYER_CHANGE_OPACITY, WEBMAP_LAYER_CHANGE_NAME, WEBMAP_LAYER_CHANGE_STYLE, WEBMAP_LAYER_CHANGE_DIMENSION, WEBMAP_LAYER_CHANGE_ENABLED, WEBMAP_LAYER_DELETE, WEBMAP_ADD_LAYER, WEBMAP_SET_LAYERS, WEBMAP_SET_BASELAYERS, WEBMAP_ADD_BASELAYER, WEBMAP_BASELAYER_DELETE, WEBMAP_LAYER_ERROR, WEBMAP_ADD_AVAILABLE_BASELAYER, WEBMAP_ADD_AVAILABLE_BASELAYERS, WEBMAP_LAYER_SET_DIMENSIONS, WEBMAP_UPDATE_LAYER_INFO } from './constants';
|
|
5
|
+
import { WEBMAP_LAYER_CHANGE_OPACITY, WEBMAP_LAYER_CHANGE_NAME, WEBMAP_LAYER_CHANGE_STYLE, WEBMAP_LAYER_CHANGE_DIMENSION, WEBMAP_LAYER_CHANGE_ENABLED, WEBMAP_LAYER_DELETE, WEBMAP_ADD_LAYER, WEBMAP_SET_LAYERS, WEBMAP_SET_BASELAYERS, WEBMAP_ADD_BASELAYER, WEBMAP_BASELAYER_DELETE, WEBMAP_LAYER_ERROR, WEBMAP_ADD_AVAILABLE_BASELAYER, WEBMAP_ADD_AVAILABLE_BASELAYERS, WEBMAP_LAYER_SET_DIMENSIONS, WEBMAP_UPDATE_LAYER_INFO, WEBMAP_LAYER_CHANGE_GEOJSON } from './constants';
|
|
5
6
|
import type { SetLayersForServicePayload } from '../types';
|
|
6
7
|
export interface WMJSDimension {
|
|
7
8
|
getFirstValue(): string;
|
|
@@ -45,13 +46,13 @@ export interface ReduxLayer {
|
|
|
45
46
|
layerType?: LayerType;
|
|
46
47
|
status?: LayerStatus;
|
|
47
48
|
format?: string;
|
|
49
|
+
geojson?: FeatureCollection;
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Layer is used to define a layer with all its possible properties.
|
|
51
53
|
*/
|
|
52
54
|
export interface Layer extends ReduxLayer {
|
|
53
55
|
styles?: Style[];
|
|
54
|
-
geojson?: GeoJSON.FeatureCollection;
|
|
55
56
|
headers?: Headers[];
|
|
56
57
|
}
|
|
57
58
|
export interface AvailableBaseLayersType {
|
|
@@ -130,6 +131,13 @@ export interface SetLayerStyle extends Action {
|
|
|
130
131
|
type: typeof WEBMAP_LAYER_CHANGE_STYLE;
|
|
131
132
|
payload: SetLayerStylePayload;
|
|
132
133
|
}
|
|
134
|
+
export interface SetLayerGeojson extends Action {
|
|
135
|
+
type: typeof WEBMAP_LAYER_CHANGE_GEOJSON;
|
|
136
|
+
payload: SetLayerGeojsonPayload;
|
|
137
|
+
}
|
|
138
|
+
export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
139
|
+
geojson: FeatureCollection;
|
|
140
|
+
}
|
|
133
141
|
export interface DeleteLayerPayload extends LayerPayload {
|
|
134
142
|
mapId: string;
|
|
135
143
|
layerIndex: number;
|
|
@@ -196,4 +204,4 @@ export interface UpdateLayerInfo extends Action {
|
|
|
196
204
|
type: typeof WEBMAP_UPDATE_LAYER_INFO;
|
|
197
205
|
payload: UpdateLayerInfoPayload;
|
|
198
206
|
}
|
|
199
|
-
export declare type LayerActions = SetLayerDimensions | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers | UpdateLayerInfo;
|
|
207
|
+
export declare type LayerActions = SetLayerDimensions | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | SetLayerGeojson | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers | UpdateLayerInfo;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { WebMapState,
|
|
2
|
-
import { LayerActions } from '../layers/types';
|
|
3
|
-
import { GenericSyncActions } from '../../generic/synchronizationActions/types';
|
|
1
|
+
import { WebMapState, SetMapDimensionPayload, SetMapPresetPayload } from './types';
|
|
4
2
|
/**
|
|
5
3
|
* Checks if the layer id is already taken in one of the maps.
|
|
6
4
|
* @param state The WebMapState
|
|
@@ -9,4 +7,14 @@ import { GenericSyncActions } from '../../generic/synchronizationActions/types';
|
|
|
9
7
|
*/
|
|
10
8
|
export declare const checkIfMapLayerIdIsAlreadyTaken: (state: WebMapState, layerId: string) => boolean;
|
|
11
9
|
export declare const initialState: WebMapState;
|
|
12
|
-
export declare const
|
|
10
|
+
export declare const slice: any;
|
|
11
|
+
export declare const actions: any, reducer: any;
|
|
12
|
+
export declare type MapActions = SetMapDimension | SetMapPreset;
|
|
13
|
+
export interface SetMapPreset {
|
|
14
|
+
type: `mapReducer/setMapPreset`;
|
|
15
|
+
payload: SetMapPresetPayload;
|
|
16
|
+
}
|
|
17
|
+
export interface SetMapDimension {
|
|
18
|
+
type: `mapReducer/mapChangeDimension`;
|
|
19
|
+
payload: SetMapDimensionPayload;
|
|
20
|
+
}
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
|
-
import {
|
|
4
|
-
import { DeleteLayer, UpdateLayerInfo } from '../layers/types';
|
|
3
|
+
import { actions as mapActions } from './reducer';
|
|
4
|
+
import { DeleteLayer, Layer, UpdateLayerInfo } from '../layers/types';
|
|
5
5
|
export declare const generateTimeList: (start: Moment, end: Moment, interval: number) => {
|
|
6
6
|
name: string;
|
|
7
7
|
value: string;
|
|
8
8
|
}[];
|
|
9
9
|
export declare function updateMapDraw(mapId: string, draw: unknown): void;
|
|
10
|
-
export declare function startAnimationSaga({ payload, }:
|
|
11
|
-
export declare function stopAnimationSaga({ payload, }:
|
|
10
|
+
export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
|
|
11
|
+
export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
|
|
12
12
|
export declare function deleteLayerSaga({ payload }: DeleteLayer): SagaIterator;
|
|
13
13
|
export declare function updateAnimation(mapId: string, maxValue: string): SagaIterator;
|
|
14
14
|
export declare function setLayerDimensionsSaga({ payload, }: UpdateLayerInfo): SagaIterator;
|
|
15
|
-
export declare function toggleAutoUpdateSaga({ payload, }:
|
|
15
|
+
export declare function toggleAutoUpdateSaga({ payload, }: ReturnType<typeof mapActions.toggleAutoUpdate>): SagaIterator;
|
|
16
|
+
export declare function handleBaseLayersSaga(mapId: string, baseLayers: Layer[]): SagaIterator;
|
|
17
|
+
export declare function setMapPresetSaga({ payload, }: ReturnType<typeof mapActions.setMapPreset>): SagaIterator;
|
|
16
18
|
export declare function rootSaga(): SagaIterator;
|
|
17
19
|
export default rootSaga;
|