@opengeoweb/core 1.2.2 → 2.1.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/README.md +11 -12
- package/core.esm.js +10901 -9141
- package/core.umd.js +12644 -10566
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +14 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.spec.d.ts → ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.spec.d.ts} +0 -0
- package/lib/components/ConfigurableMapWithSlider/index.d.ts +1 -0
- package/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.spec.d.ts → LayerManagerButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +9 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DuplicateLayer/DuplicateButton.spec.d.ts → ActivateLayer/ActivateLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayerConnect.d.ts +16 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DuplicateLayer/DuplicateLayerConnect.spec.d.ts → ActivateLayer/ActivateLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer/DeleteButton.d.ts → DeleteLayer/DeleteLayer.d.ts} +2 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/LayerManagerMenuButton.spec.d.ts → DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/DeleteLayer/DeleteLayerConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DragHandle/DragHandle.d.ts +7 -3
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +1 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayerConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +4 -2
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/{LayerManagerMenuButton.d.ts → MenuButton.d.ts} +1 -7
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButton.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.d.ts +7 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuItemButton.d.ts +8 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelect.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/OpacitySelect/OpacitySelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +4 -0
- package/lib/components/LayerManager/LayerManager.d.ts +5 -1
- package/lib/components/LayerManager/LayerManager.stories.d.ts +3 -1
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → LayerManager/LayerSelect/LayerSelect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +11 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.stories.d.ts +13 -0
- package/lib/components/LayerManager/{tooltipSelectContainerStyles.d.ts → tooltipContainerStyles.d.ts} +0 -0
- package/lib/components/Legend/LegendConnect.d.ts +1 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Mapcontrols/MapControlButton.d.ts +11 -0
- package/lib/components/Mapcontrols/MapControlButton.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/MapControls.d.ts +7 -0
- package/lib/components/Mapcontrols/MapControls.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/ZoomControls.d.ts +0 -8
- package/lib/components/Mapcontrols/ZoomControlsConnect.d.ts +6 -0
- package/lib/components/Mapcontrols/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/Mapcontrols/index.d.ts +4 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +7 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +12 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.d.ts → MultiMapDimensionSelect/DimensionSelectSlider.d.ts} +5 -4
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.d.ts +11 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectSliderConnect.spec.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/EnsembleDimensionExample.stories.d.ts +0 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelect.stories.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +11 -0
- package/lib/components/{MultiDimensionSelect → MultiMapDimensionSelect}/MultiDimensionSelectConnect.stories.d.ts +0 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +6 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelect.stories.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.d.ts +9 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapMultiDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.d.ts +8 -0
- package/lib/components/MultiMapDimensionSelect/MultiMapSingleDimensionSelectConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/index.d.ts +2 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +9 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.spec.d.ts +1 -0
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +11 -0
- package/lib/components/MultiMapView/HarmoniePresets/index.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +0 -2
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +6 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +23 -11
- package/lib/components/Providers/Providers.d.ts +2 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +9 -9
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +3 -4
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +5 -0
- package/lib/components/SyncGroups/SyncGroupList.d.ts +11 -0
- package/lib/components/SyncGroups/SyncGroupListItem.d.ts +10 -0
- package/lib/components/SyncGroups/SyncGroupViewer.d.ts +11 -7
- package/lib/components/SyncGroups/SyncGroupViewer.spec.d.ts +1 -0
- package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +7 -1
- package/lib/components/SyncGroups/selector.d.ts +10 -0
- package/lib/components/SyncGroups/types.d.ts +17 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +5 -0
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.stories.d.ts +0 -4
- package/lib/components/TimeSlider/TimeSliderButtons/TimeStepButton/TimeStepButton.d.ts +2 -2
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderScaleSlider/TimeSliderScaleSlider.stories.d.ts +5 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +11 -13
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +9 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.stories.d.ts +13 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +7 -0
- package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
- package/lib/components/WMSLoader/services.d.ts +0 -1
- package/lib/index.d.ts +16 -4
- package/lib/store/generic/sagas.d.ts +7 -0
- package/lib/store/generic/synchronizationActions/actions.d.ts +5 -4
- package/lib/store/generic/synchronizationActions/constants.d.ts +1 -0
- package/lib/store/generic/synchronizationActions/types.d.ts +25 -11
- package/lib/store/generic/synchronizationGroups/actions.d.ts +4 -0
- package/lib/store/generic/synchronizationGroups/constants.d.ts +2 -0
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/selectors.spec.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +7 -3
- package/lib/store/generic/synchronizationGroups/utils.d.ts +81 -0
- package/lib/store/generic/synchronizationGroups/utils.spec.d.ts +1 -0
- package/lib/store/generic/types.d.ts +7 -4
- package/lib/store/mapStore/layers/actions.d.ts +0 -3
- package/lib/store/mapStore/layers/selectors.d.ts +21 -1
- package/lib/store/mapStore/layers/types.d.ts +7 -0
- package/lib/store/mapStore/layers/utils.d.ts +4 -2
- package/lib/store/mapStore/layers/utils.spec.d.ts +1 -0
- package/lib/store/mapStore/map/selectors.d.ts +86 -4
- package/lib/store/mapStore/map/types.d.ts +2 -0
- package/lib/store/mapStore/service/actions.d.ts +1 -10
- package/lib/store/mapStore/service/constants.d.ts +0 -1
- package/lib/store/mapStore/service/reducer.d.ts +4 -2
- package/lib/store/mapStore/service/selectors.d.ts +9 -39
- package/lib/store/mapStore/service/types.d.ts +4 -15
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/actions.d.ts +12 -5
- package/lib/store/ui/constants.d.ts +1 -0
- package/lib/store/ui/reducer.d.ts +12 -4
- package/lib/store/ui/sagas.d.ts +5 -0
- package/lib/store/ui/sagas.test.d.ts +1 -0
- package/lib/store/ui/selectors.d.ts +21 -4
- package/lib/store/ui/types.d.ts +17 -4
- package/lib/storybookUtils/defaultStorySettings.d.ts +1 -0
- package/lib/utils/defaultConfigurations.d.ts +21 -0
- package/lib/utils/defaultTestSettings.d.ts +0 -44
- package/lib/utils/dimensionUtils.d.ts +13 -0
- package/lib/utils/dimensionUtils.spec.d.ts +1 -0
- package/lib/utils/getCapabilities.d.ts +2 -0
- package/lib/utils/{exampleLayers.d.ts → publicLayers.d.ts} +148 -70
- package/lib/utils/publicServices.d.ts +100 -0
- package/lib/utils/testLayers.d.ts +17 -0
- package/lib/utils/testUtils.d.ts +1 -0
- package/package.json +10 -10
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.d.ts +0 -7
- package/lib/components/LayerManager/LayerContainerRow/SortableRowContainer/SortableRowContainer.d.ts +0 -6
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -10
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -12
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/MultiMapView/MultiMapViewHarmonie.stories.d.ts +0 -2
- package/lib/components/MultiMapView/storyUtils/HarmonieTempAndPrecipPreset.d.ts +0 -6
- package/lib/components/SyncGroups/SyncGroupComponent.d.ts +0 -13
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
- package/lib/utils/DimensionUtils.d.ts +0 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { SetTimePayload, SetBboxPayload } from '../types';
|
|
2
|
-
import { SetTimeSync, SetBboxSync, SetBboxSyncPayload, SetTimeSyncPayload } from './types';
|
|
1
|
+
import { SetTimePayload, SetBboxPayload, SyncLayerPayloads } from '../types';
|
|
2
|
+
import { SetTimeSync, SetBboxSync, SetBboxSyncPayload, SetTimeSyncPayload, SetLayerActionsSync } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* These actions are fired by the generic/saga.ts, based on generic actions and the synchronizationGroup state.
|
|
5
5
|
*
|
|
6
6
|
* These actions should not be used by components directly. Components should only use the generic actions.
|
|
7
7
|
*/
|
|
8
|
-
export declare const setTimeSync: (payload: SetTimePayload, targets: SetTimeSyncPayload[]) => SetTimeSync;
|
|
9
|
-
export declare const setBboxSync: (payload: SetBboxPayload, targets: SetBboxSyncPayload[]) => SetBboxSync;
|
|
8
|
+
export declare const setTimeSync: (payload: SetTimePayload, targets: SetTimeSyncPayload[], groups: string[]) => SetTimeSync;
|
|
9
|
+
export declare const setBboxSync: (payload: SetBboxPayload, targets: SetBboxSyncPayload[], groups: string[]) => SetBboxSync;
|
|
10
|
+
export declare const setLayerActionSync: (payload: SyncLayerPayloads, targets: SyncLayerPayloads[], type: string) => SetLayerActionsSync;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import { GENERIC_SYNC_SETBBOX, GENERIC_SYNC_SETTIME } from './constants';
|
|
3
|
-
import { SetBbox, SetTime } from '../types';
|
|
2
|
+
import { GENERIC_SYNC_SETBBOX, GENERIC_SYNC_SETTIME, GENERIC_SYNC_SETLAYERACTIONS } from './constants';
|
|
3
|
+
import { SetBbox, SetTime, SyncLayerPayloads } from '../types';
|
|
4
4
|
export interface SetTimeSyncPayload {
|
|
5
5
|
targetId: string;
|
|
6
6
|
value: string;
|
|
7
7
|
}
|
|
8
|
-
export interface SetTimeSync extends Action {
|
|
9
|
-
type: typeof GENERIC_SYNC_SETTIME;
|
|
10
|
-
payload: {
|
|
11
|
-
source: SetTime;
|
|
12
|
-
targets: SetTimeSyncPayload[];
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
8
|
export interface SetBboxSyncPayload {
|
|
16
9
|
targetId: string;
|
|
17
10
|
bbox: {
|
|
@@ -22,12 +15,33 @@ export interface SetBboxSyncPayload {
|
|
|
22
15
|
};
|
|
23
16
|
srs: string;
|
|
24
17
|
}
|
|
18
|
+
export interface SetLayerActionsSyncPayload {
|
|
19
|
+
source: {
|
|
20
|
+
type: string;
|
|
21
|
+
payload: SyncLayerPayloads;
|
|
22
|
+
};
|
|
23
|
+
targets: SyncLayerPayloads[];
|
|
24
|
+
}
|
|
25
|
+
export interface SetTimeSync extends Action {
|
|
26
|
+
type: typeof GENERIC_SYNC_SETTIME;
|
|
27
|
+
payload: {
|
|
28
|
+
source: SetTime;
|
|
29
|
+
groups: string[];
|
|
30
|
+
targets: SetTimeSyncPayload[];
|
|
31
|
+
};
|
|
32
|
+
}
|
|
25
33
|
export interface SetBboxSync extends Action {
|
|
26
34
|
type: typeof GENERIC_SYNC_SETBBOX;
|
|
27
35
|
payload: {
|
|
28
36
|
source: SetBbox;
|
|
37
|
+
groups: string[];
|
|
29
38
|
targets: SetBboxSyncPayload[];
|
|
30
39
|
};
|
|
31
40
|
}
|
|
32
|
-
export
|
|
33
|
-
|
|
41
|
+
export interface SetLayerActionsSync extends Action {
|
|
42
|
+
type: typeof GENERIC_SYNC_SETLAYERACTIONS;
|
|
43
|
+
payload: SetLayerActionsSyncPayload;
|
|
44
|
+
}
|
|
45
|
+
export declare type GenericSyncActionPayload = SetBboxSyncPayload | SetTimeSyncPayload | SetLayerActionsSyncPayload;
|
|
46
|
+
export declare type GenericSyncActionPayloads = SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
47
|
+
export declare type GenericSyncActions = SetTimeSync | SetBboxSync | SetLayerActionsSync;
|
|
@@ -73,3 +73,7 @@ export declare const syncGroupAddGroup: (payload: SyncGroupAddGroupPayload) => S
|
|
|
73
73
|
* }
|
|
74
74
|
*/
|
|
75
75
|
export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload) => SynchronizationGroupActions;
|
|
76
|
+
/**
|
|
77
|
+
* Clear syncGroups
|
|
78
|
+
*/
|
|
79
|
+
export declare const syncGroupClear: () => SynchronizationGroupActions;
|
|
@@ -5,5 +5,7 @@ export declare const SYNCGROUPS_ADD_TARGET = "SYNCGROUPS_ADD_TARGET";
|
|
|
5
5
|
export declare const SYNCGROUPS_REMOVE_TARGET = "SYNCGROUPS_REMOVE_TARGET";
|
|
6
6
|
export declare const SYNCGROUPS_ADD_GROUP = "SYNCGROUPS_ADD_GROUP";
|
|
7
7
|
export declare const SYNCGROUPS_REMOVE_GROUP = "SYNCGROUPS_REMOVE_GROUP";
|
|
8
|
+
export declare const SYNCGROUPS_CLEAR = "SYNCGROUPS_CLEAR";
|
|
8
9
|
export declare const SYNCGROUPS_TYPE_SETTIME = "SYNCGROUPS_TYPE_SETTIME";
|
|
9
10
|
export declare const SYNCGROUPS_TYPE_SETBBOX = "SYNCGROUPS_TYPE_SETBBOX";
|
|
11
|
+
export declare const SYNCGROUPS_TYPE_SETLAYERACTIONS = "SYNCGROUPS_TYPE_SETLAYERACTIONS";
|
|
@@ -2,6 +2,7 @@ import { AppStore } from '../../../types/types';
|
|
|
2
2
|
import { SetBboxSyncPayload, SetTimeSyncPayload } from '../synchronizationActions/types';
|
|
3
3
|
import { GenericActionPayload } from '../types';
|
|
4
4
|
import { SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
|
|
5
|
+
export declare const syncGroupStore: (store: AppStore) => SynchronizationGroupState;
|
|
5
6
|
/**
|
|
6
7
|
* Gets synchronization group state
|
|
7
8
|
*
|
|
@@ -12,5 +13,5 @@ import { SynchronizationGroup, SynchronizationGroupState, SynchronizationSource,
|
|
|
12
13
|
export declare const getSynchronizationGroupState: import("reselect").OutputSelector<AppStore, any[] | SynchronizationGroupState, (res: SynchronizationGroupState) => any[] | SynchronizationGroupState>;
|
|
13
14
|
export declare const getSynchronizationGroup: (state: AppStore, id: string) => SynchronizationGroup;
|
|
14
15
|
export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
|
|
15
|
-
export declare const getLinkedGroupTargetsIds: (state: AppStore, id: string, targetId: string) => string[];
|
|
16
16
|
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
17
|
+
export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { GenericActionPayload } from '../types';
|
|
3
|
-
import { SYNCGROUPS_ADD_SOURCE, SYNCGROUPS_REMOVE_SOURCE, SYNCGROUPS_TOGGLE_LINK_TARGET, SYNCGROUPS_ADD_TARGET, SYNCGROUPS_REMOVE_TARGET, SYNCGROUPS_ADD_GROUP, SYNCGROUPS_REMOVE_GROUP, SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME } from './constants';
|
|
3
|
+
import { SYNCGROUPS_ADD_SOURCE, SYNCGROUPS_REMOVE_SOURCE, SYNCGROUPS_TOGGLE_LINK_TARGET, SYNCGROUPS_ADD_TARGET, SYNCGROUPS_REMOVE_TARGET, SYNCGROUPS_ADD_GROUP, SYNCGROUPS_REMOVE_GROUP, SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS, SYNCGROUPS_CLEAR } from './constants';
|
|
4
4
|
export interface SynchronizationGroup {
|
|
5
5
|
type: SyncType;
|
|
6
6
|
title?: string;
|
|
7
|
+
payloadByType: SynchronizationSourcePayLoadByType;
|
|
7
8
|
targets: {
|
|
8
9
|
byId: Record<string, {
|
|
9
10
|
linked: boolean;
|
|
@@ -31,7 +32,7 @@ export interface SynchronizationGroupState {
|
|
|
31
32
|
export interface SynchronizationGroupModuleState {
|
|
32
33
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
33
34
|
}
|
|
34
|
-
export declare type SyncType = typeof SYNCGROUPS_TYPE_SETBBOX | typeof SYNCGROUPS_TYPE_SETTIME;
|
|
35
|
+
export declare type SyncType = typeof SYNCGROUPS_TYPE_SETBBOX | typeof SYNCGROUPS_TYPE_SETTIME | typeof SYNCGROUPS_TYPE_SETLAYERACTIONS;
|
|
35
36
|
export interface SyncGroupsAddSourcePayload {
|
|
36
37
|
id: string;
|
|
37
38
|
type: SyncType[];
|
|
@@ -90,4 +91,7 @@ export interface SyncGroupRemoveGroup extends Action {
|
|
|
90
91
|
type: typeof SYNCGROUPS_REMOVE_GROUP;
|
|
91
92
|
payload: SyncGroupRemoveGroupPayload;
|
|
92
93
|
}
|
|
93
|
-
export
|
|
94
|
+
export interface SyncGroupClear extends Action {
|
|
95
|
+
type: typeof SYNCGROUPS_CLEAR;
|
|
96
|
+
}
|
|
97
|
+
export declare type SynchronizationGroupActions = SyncGroupsAddSource | SyncGroupsRemoveSource | SyncGroupAddTarget | SyncGroupRemoveTarget | SyncGroupLinkTarget | SyncGroupAddGroup | SyncGroupRemoveGroup | SyncGroupClear;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { AppStore } from '../../../types/types';
|
|
2
|
+
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
|
|
3
|
+
import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
4
|
+
import { SyncType } from './types';
|
|
5
|
+
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_DELETEACTION";
|
|
6
|
+
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_LAYERACTIONS";
|
|
7
|
+
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_MOVEACTION";
|
|
8
|
+
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ADDACTION";
|
|
9
|
+
export declare const ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION = "ORIGIN_GENERIC_SYNCHRONIZATIONGROUP_UTILS_ACTIVELAYERIDACTION";
|
|
10
|
+
interface FoundTargets {
|
|
11
|
+
payload: SyncLayerPayloads;
|
|
12
|
+
targetId: string;
|
|
13
|
+
layerId: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Tries to find the layerId's in the other map based on the payload of the action. It works for all layer actions.
|
|
17
|
+
* @param state
|
|
18
|
+
* @param mapId
|
|
19
|
+
* @param targetMapId
|
|
20
|
+
* @param payload
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const getTargetLayerIdFromPayload: (state: AppStore, mapId: string, targetMapId: string, payload: SyncLayerPayloads) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Local helper function used by getLayerDeleteActionsTargets, getLayerActionsTargets, getAddLayerActionsTargets, getTargetLayerIdFromPayload to find the targets
|
|
26
|
+
* @param state
|
|
27
|
+
* @param payload
|
|
28
|
+
* @param actionType
|
|
29
|
+
* @param sourceMapId
|
|
30
|
+
* @returns The found targets
|
|
31
|
+
*/
|
|
32
|
+
export declare const findTargets: (state: AppStore, payload: SyncLayerPayloads, actionType: SyncType, sourceMapId: string) => FoundTargets[];
|
|
33
|
+
/**
|
|
34
|
+
* These targets are found for layer actions that work with a layerId like: SetLayerName, SetLayerEnabled, SetLayerOpacity, SetLayerDimension and SetLayerStyle
|
|
35
|
+
* @param state
|
|
36
|
+
* @param payload
|
|
37
|
+
* @param actionType
|
|
38
|
+
* @returns
|
|
39
|
+
*/
|
|
40
|
+
export declare const getLayerActionsTargets: (state: AppStore, payload: LayerActionPayloadsWithLayerIds, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
|
|
41
|
+
/**
|
|
42
|
+
* These targets are found for the layer/map action AddLayer. AddLayer does not have a layerId (because it's new)
|
|
43
|
+
* @param state
|
|
44
|
+
* @param payload
|
|
45
|
+
* @param actionType
|
|
46
|
+
* @returns
|
|
47
|
+
*/
|
|
48
|
+
export declare const getAddLayerActionsTargets: (state: AppStore, payload: AddLayerPayload, actionType: SyncType) => AddLayerPayload[];
|
|
49
|
+
/**
|
|
50
|
+
* These targets are found for the layer/map action DeleteLayer. The layer is already gone, so there is no layerId anymore. Using layerIndex instead.
|
|
51
|
+
* @param state
|
|
52
|
+
* @param payload
|
|
53
|
+
* @param actionType
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
export declare const getLayerDeleteActionsTargets: (state: AppStore, payload: DeleteLayerPayload, actionType: SyncType) => DeleteLayerPayload[];
|
|
57
|
+
/**
|
|
58
|
+
* These targets are found for the layer/map action MoveLayer. Here layers are referenced by newIndex and oldIndex.
|
|
59
|
+
* @param state
|
|
60
|
+
* @param payload
|
|
61
|
+
* @param actionType
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
export declare const getLayerMoveActionsTargets: (state: AppStore, payload: MoveLayerPayload, actionType: SyncType) => MoveLayerPayload[];
|
|
65
|
+
/**
|
|
66
|
+
* These targets are found for the layer/map action SetActiveLayerId. It needs both a target mapId and layerId
|
|
67
|
+
* @param state
|
|
68
|
+
* @param payload
|
|
69
|
+
* @param actionType
|
|
70
|
+
* @returns
|
|
71
|
+
*/
|
|
72
|
+
export declare const getSetActiveLayerIdActionsTargets: (state: AppStore, payload: LayerActionPayloadsWithLayerIds, actionType: SyncType) => LayerActionPayloadsWithLayerIds[];
|
|
73
|
+
/**
|
|
74
|
+
* These targets are found for baselayer actions that work with a mapId like: setBaseLayers
|
|
75
|
+
* @param state
|
|
76
|
+
* @param payload
|
|
77
|
+
* @param actionType
|
|
78
|
+
* @returns
|
|
79
|
+
*/
|
|
80
|
+
export declare const getMapBaseLayerActionsTargets: (state: AppStore, payload: SetBaseLayersPayload, actionType: SyncType) => SetBaseLayersPayload[];
|
|
81
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
+
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetActiveLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
|
|
2
3
|
import { GENERIC_SETTIME, GENERIC_SETBBOX } from './constants';
|
|
3
4
|
export interface SetTimePayload {
|
|
4
5
|
sourceId: string;
|
|
5
6
|
origin: string;
|
|
6
7
|
value: string;
|
|
7
8
|
}
|
|
8
|
-
export interface SetTime extends Action {
|
|
9
|
-
type: typeof GENERIC_SETTIME;
|
|
10
|
-
payload: SetTimePayload;
|
|
11
|
-
}
|
|
12
9
|
export interface SetBboxPayload {
|
|
13
10
|
sourceId: string;
|
|
14
11
|
bbox: {
|
|
@@ -19,9 +16,15 @@ export interface SetBboxPayload {
|
|
|
19
16
|
};
|
|
20
17
|
srs: string;
|
|
21
18
|
}
|
|
19
|
+
export interface SetTime extends Action {
|
|
20
|
+
type: typeof GENERIC_SETTIME;
|
|
21
|
+
payload: SetTimePayload;
|
|
22
|
+
}
|
|
22
23
|
export interface SetBbox extends Action {
|
|
23
24
|
type: typeof GENERIC_SETBBOX;
|
|
24
25
|
payload: SetBboxPayload;
|
|
25
26
|
}
|
|
26
27
|
export declare type GenericActionPayload = SetBboxPayload | SetTimePayload;
|
|
27
28
|
export declare type GenericActions = SetTime | SetBbox;
|
|
29
|
+
export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetActiveLayerIdPayload;
|
|
30
|
+
export declare type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
|
|
@@ -5,7 +5,6 @@ import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayloa
|
|
|
5
5
|
* - serviceSetLayers
|
|
6
6
|
* - layerSetStyles
|
|
7
7
|
* - layerChangeStyle
|
|
8
|
-
* - setLayerDimensionsForService
|
|
9
8
|
* - layerChangeDimension
|
|
10
9
|
*
|
|
11
10
|
* Example: setLayers ({layers: someLayerObjectArray, mapId: 'mapId1'});
|
|
@@ -19,7 +18,6 @@ export declare const setLayers: (payload: SetLayersPayload) => LayerActions;
|
|
|
19
18
|
* - serviceSetLayers
|
|
20
19
|
* - layerSetStyles
|
|
21
20
|
* - layerChangeStyle
|
|
22
|
-
* - setLayerDimensionsForService
|
|
23
21
|
* - layerChangeDimension
|
|
24
22
|
*
|
|
25
23
|
* Example: setBaseLayers({layers: someLayerObjectArray, mapId:'mapId1'})
|
|
@@ -40,7 +38,6 @@ export declare const addBaseLayer: (payload: AddBaseLayerPayload) => LayerAction
|
|
|
40
38
|
* - serviceSetLayers
|
|
41
39
|
* - layerSetStyles
|
|
42
40
|
* - layerChangeStyle
|
|
43
|
-
* - setLayerDimensionsForService
|
|
44
41
|
* - layerChangeDimension
|
|
45
42
|
*
|
|
46
43
|
* Example: addLayer ({layerId: 'someLayerId', layer: someLayerObject, mapId:'mapId1'});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Dimension } from '@opengeoweb/webmap';
|
|
1
2
|
import { AppStore } from '../../../types/types';
|
|
2
3
|
import { LayerState, Layer, LayerStatus } from './types';
|
|
3
4
|
/**
|
|
@@ -63,9 +64,18 @@ export declare const getOverLayers: import("reselect").OutputSelector<AppStore,
|
|
|
63
64
|
* Example: layerDimensions = getLayerDimensions(store, 'layerId_1')
|
|
64
65
|
* @param {object} store store: object - object from which the layers state will be extracted
|
|
65
66
|
* @param {string} layerId layerId: string - Id of the layer
|
|
66
|
-
* @returns {array} returnType:
|
|
67
|
+
* @returns {array} returnType: Dimension[] - array containing layer dimensions
|
|
67
68
|
*/
|
|
68
69
|
export declare const getLayerDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("../types").Dimension[], (res: Layer) => import("../types").Dimension[]>;
|
|
70
|
+
/**
|
|
71
|
+
* Gets dimensions of the passed layer, excluding the time dimension
|
|
72
|
+
*
|
|
73
|
+
* Example: layerNonTimeDimensions = getLayerNonTimeDimensions(store, 'layerId_1')
|
|
74
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
75
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
76
|
+
* @returns {array} returnType: Dimension[] - array containing layer dimensions, excluding the time dimension
|
|
77
|
+
*/
|
|
78
|
+
export declare const getLayerNonTimeDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("../types").Dimension[], (res: import("../types").Dimension[]) => import("../types").Dimension[]>;
|
|
69
79
|
/**
|
|
70
80
|
* Gets time dimension of the passed layer
|
|
71
81
|
*
|
|
@@ -75,6 +85,16 @@ export declare const getLayerDimensions: import("reselect").OutputParametricSele
|
|
|
75
85
|
* @returns {array} returnType: object - object of layer time dimension
|
|
76
86
|
*/
|
|
77
87
|
export declare const getLayerTimeDimension: import("reselect").OutputParametricSelector<AppStore, string, any[] | import("../types").Dimension, (res: import("../types").Dimension[]) => any[] | import("../types").Dimension>;
|
|
88
|
+
/**
|
|
89
|
+
* Gets specified dimension of the passed layer
|
|
90
|
+
*
|
|
91
|
+
* Example: dimension = getLayerDimension(store, 'layerId_1', 'elevation')
|
|
92
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
93
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
94
|
+
* @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
|
|
95
|
+
* @returns {object} returnType: object - object of layer dimension
|
|
96
|
+
*/
|
|
97
|
+
export declare const getLayerDimension: import("reselect").OutputParametricSelector<AppStore, string, Dimension, (res1: import("../types").Dimension[], res2: string) => Dimension>;
|
|
78
98
|
/**
|
|
79
99
|
* Gets opacity of the passed layer
|
|
80
100
|
*
|
|
@@ -57,6 +57,7 @@ export interface LayerPayload {
|
|
|
57
57
|
export interface SetLayersPayload {
|
|
58
58
|
mapId: string;
|
|
59
59
|
layers: Layer[];
|
|
60
|
+
origin?: string;
|
|
60
61
|
}
|
|
61
62
|
export interface SetLayers extends Action {
|
|
62
63
|
type: typeof WEBMAP_SET_LAYERS;
|
|
@@ -65,6 +66,7 @@ export interface SetLayers extends Action {
|
|
|
65
66
|
export interface SetBaseLayersPayload {
|
|
66
67
|
mapId: string;
|
|
67
68
|
layers: Layer[];
|
|
69
|
+
origin?: string;
|
|
68
70
|
}
|
|
69
71
|
export interface SetBaseLayers extends Action {
|
|
70
72
|
type: typeof WEBMAP_SET_BASELAYERS;
|
|
@@ -117,6 +119,7 @@ export interface SetLayerStyle extends Action {
|
|
|
117
119
|
}
|
|
118
120
|
export interface DeleteLayerPayload extends LayerPayload {
|
|
119
121
|
mapId: string;
|
|
122
|
+
layerIndex: number;
|
|
120
123
|
}
|
|
121
124
|
export interface DeleteLayer extends Action {
|
|
122
125
|
type: typeof WEBMAP_LAYER_DELETE;
|
|
@@ -130,6 +133,7 @@ export interface AddLayerPayload {
|
|
|
130
133
|
mapId: string;
|
|
131
134
|
layerId: string;
|
|
132
135
|
layer: Layer;
|
|
136
|
+
origin: string;
|
|
133
137
|
}
|
|
134
138
|
export interface AddLayer extends Action {
|
|
135
139
|
type: typeof WEBMAP_ADD_LAYER;
|
|
@@ -143,6 +147,7 @@ export interface AddBaseLayerPayload {
|
|
|
143
147
|
mapId: string;
|
|
144
148
|
layerId: string;
|
|
145
149
|
layer: Layer;
|
|
150
|
+
origin?: string;
|
|
146
151
|
}
|
|
147
152
|
export interface AddAvailableBaseLayer extends Action {
|
|
148
153
|
type: typeof WEBMAP_ADD_AVAILABLE_BASELAYER;
|
|
@@ -150,6 +155,7 @@ export interface AddAvailableBaseLayer extends Action {
|
|
|
150
155
|
}
|
|
151
156
|
export interface AddAvailableBaseLayerPayload {
|
|
152
157
|
layer: Layer;
|
|
158
|
+
origin?: string;
|
|
153
159
|
}
|
|
154
160
|
export interface AddAvailableBaseLayers extends Action {
|
|
155
161
|
type: typeof WEBMAP_ADD_AVAILABLE_BASELAYERS;
|
|
@@ -157,6 +163,7 @@ export interface AddAvailableBaseLayers extends Action {
|
|
|
157
163
|
}
|
|
158
164
|
export interface AddAvailableBaseLayersPayload {
|
|
159
165
|
layers: Layer[];
|
|
166
|
+
origin?: string;
|
|
160
167
|
}
|
|
161
168
|
export interface ErrorLayerPayload extends LayerPayload {
|
|
162
169
|
error: Error;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { WritableDraft } from 'immer/dist/types/types-external';
|
|
2
2
|
import { Dimension } from '../types';
|
|
3
|
-
import { LayerState } from './types';
|
|
3
|
+
import { LayerState, WMJSDimension } from './types';
|
|
4
|
+
export declare const isActionLayerSynced: (state: LayerState, layerIdFromAction: string, dimension: Dimension) => boolean;
|
|
5
|
+
export declare const produceDimensionActionForMapLayer: (layerDim: Dimension, wmjsDimension: WMJSDimension, newDimension: Dimension) => Dimension;
|
|
4
6
|
/**
|
|
5
|
-
* For the given dimension, it creates a new draft state for all other (linked) layers inside the map.
|
|
7
|
+
* For the given dimension, it creates a new draft state for all other (linked or synced) layers inside the map.
|
|
6
8
|
* @param draft
|
|
7
9
|
* @param dimension
|
|
8
10
|
* @param mapId
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { Scale, WebMap } from './types';
|
|
2
|
+
import { Scale, WebMap, WebMapState } from './types';
|
|
3
3
|
import { AppStore } from '../../../types/types';
|
|
4
|
+
import { Layer } from '../types';
|
|
4
5
|
/**
|
|
5
6
|
* Gets the map state by mapId
|
|
6
7
|
*
|
|
@@ -10,6 +11,30 @@ import { AppStore } from '../../../types/types';
|
|
|
10
11
|
* @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
|
|
11
12
|
*/
|
|
12
13
|
export declare const getMapById: (store: AppStore, mapId: string) => WebMap;
|
|
14
|
+
/**
|
|
15
|
+
* Gets all mapIds
|
|
16
|
+
*
|
|
17
|
+
* Example: getAllMapIds(store)
|
|
18
|
+
* @param {object} store store object from which the map state wll be extracted
|
|
19
|
+
* @returns {array} array containing all map ids
|
|
20
|
+
*/
|
|
21
|
+
export declare const getAllMapIds: (store: AppStore) => string[];
|
|
22
|
+
/**
|
|
23
|
+
* Gets the map state of the first map in the store
|
|
24
|
+
*
|
|
25
|
+
* Example: getFirstMap(store)
|
|
26
|
+
* @param {object} store store object from which the map state wll be extracted
|
|
27
|
+
* @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
|
|
28
|
+
*/
|
|
29
|
+
export declare const getFirstMap: (store: AppStore) => WebMap;
|
|
30
|
+
/**
|
|
31
|
+
* Gets the id of first map in store
|
|
32
|
+
*
|
|
33
|
+
* Example: getFirstMapId(store)
|
|
34
|
+
* @param {object} store store object from which the map state wll be extracted
|
|
35
|
+
* @returns {object} map id
|
|
36
|
+
*/
|
|
37
|
+
export declare const getFirstMapId: import("reselect").OutputSelector<AppStore, string, (res: WebMap) => string>;
|
|
13
38
|
/**
|
|
14
39
|
* Determines if map is present
|
|
15
40
|
*
|
|
@@ -35,7 +60,7 @@ export declare const getLayerIds: import("reselect").OutputParametricSelector<Ap
|
|
|
35
60
|
* @param {string} mapId mapId: string - Id of the map
|
|
36
61
|
* @returns {array} returnType: array - array containing all layer states for the map
|
|
37
62
|
*/
|
|
38
|
-
export declare const getMapLayers: import("reselect").OutputParametricSelector<AppStore, string,
|
|
63
|
+
export declare const getMapLayers: import("reselect").OutputParametricSelector<AppStore, string, Layer[], (res1: string[], res2: Record<string, Layer>) => Layer[]>;
|
|
39
64
|
/**
|
|
40
65
|
* Gets an array of baselayers ids for a map
|
|
41
66
|
*
|
|
@@ -53,7 +78,7 @@ export declare const getMapBaseLayersIds: import("reselect").OutputParametricSel
|
|
|
53
78
|
* @param {string} mapId mapId: string - Id of the map
|
|
54
79
|
* @returns {array} returnType: array - array containing all baselayers for the map
|
|
55
80
|
*/
|
|
56
|
-
export declare const getMapBaseLayers: import("reselect").OutputParametricSelector<AppStore, string,
|
|
81
|
+
export declare const getMapBaseLayers: import("reselect").OutputParametricSelector<AppStore, string, Layer[], (res1: string[], res2: Record<string, Layer>) => Layer[]>;
|
|
57
82
|
/**
|
|
58
83
|
* Gets and array of overLayers ids for a map
|
|
59
84
|
*
|
|
@@ -71,7 +96,7 @@ export declare const getMapOverLayersIds: import("reselect").OutputParametricSel
|
|
|
71
96
|
* @param {string} mapId mapId: string - Id of the map
|
|
72
97
|
* @returns {array} returnType: array - array containing all overLayers for the map
|
|
73
98
|
*/
|
|
74
|
-
export declare const getMapOverLayers: import("reselect").OutputParametricSelector<AppStore, string,
|
|
99
|
+
export declare const getMapOverLayers: import("reselect").OutputParametricSelector<AppStore, string, Layer[], (res1: string[], res2: Record<string, Layer>) => Layer[]>;
|
|
75
100
|
/**
|
|
76
101
|
* Gets map dimensions
|
|
77
102
|
*
|
|
@@ -81,6 +106,16 @@ export declare const getMapOverLayers: import("reselect").OutputParametricSelect
|
|
|
81
106
|
* @returns {array} returnType: array - array containing map dimensions
|
|
82
107
|
*/
|
|
83
108
|
export declare const getMapDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("./types").Dimension[], (res: WebMap) => import("./types").Dimension[]>;
|
|
109
|
+
/**
|
|
110
|
+
* Gets the map dimension requested
|
|
111
|
+
*
|
|
112
|
+
* Example: mapDimensions = getMapDimension(store, 'mapid_1', 'elevation')
|
|
113
|
+
* @param {object} store store: object - store object
|
|
114
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
115
|
+
* @param {string} dimensionName dimensionName: string - name of the dimension
|
|
116
|
+
* @returns {object} returnType: object - object containing the map dimension details
|
|
117
|
+
*/
|
|
118
|
+
export declare const getMapDimension: import("reselect").OutputParametricSelector<AppStore, string, import("./types").Dimension, (res1: WebMap, res2: string) => import("./types").Dimension>;
|
|
84
119
|
/**
|
|
85
120
|
* Gets map srs
|
|
86
121
|
*
|
|
@@ -234,3 +269,50 @@ export declare const isTimeSliderHoverOn: import("reselect").OutputParametricSel
|
|
|
234
269
|
* @returns {boolean} returnType: boolean
|
|
235
270
|
*/
|
|
236
271
|
export declare const getIsLayerActiveLayer: import("reselect").OutputParametricSelector<AppStore, string, boolean, (res1: string, res2: any) => boolean>;
|
|
272
|
+
/**
|
|
273
|
+
* Returns the mapId for given layerId
|
|
274
|
+
*
|
|
275
|
+
* Example const mapId = getMapIdFromLayerId(store 'layerId-A');
|
|
276
|
+
* @param {object} store store: object - store object
|
|
277
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
278
|
+
* @returns {string} returnType: the mapId, or null if not found
|
|
279
|
+
*/
|
|
280
|
+
export declare const getMapIdFromLayerId: import("reselect").OutputParametricSelector<AppStore, string, string, (res1: WebMapState, res2: string) => string>;
|
|
281
|
+
/**
|
|
282
|
+
* Returns the layerId for given layerName
|
|
283
|
+
*
|
|
284
|
+
* Example const layerId = getLayerIdByLayerName(store, 'mapid-1', 'precipitation');
|
|
285
|
+
* @param {object} store store: object - store object
|
|
286
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
287
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
288
|
+
* @returns {string} returnType: the layerId, or null if not found
|
|
289
|
+
*/
|
|
290
|
+
export declare const getLayerIdByLayerName: import("reselect").OutputParametricSelector<AppStore, string, string, (res1: Layer[], res2: string) => string>;
|
|
291
|
+
/**
|
|
292
|
+
* Returns the layerIndex in the map for given layerId
|
|
293
|
+
*
|
|
294
|
+
* Example const layerIndex = getLayerIndexByLayerId(store, 'mapid-1', 'precipitation');
|
|
295
|
+
* @param {object} store store: object - store object
|
|
296
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
297
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
298
|
+
* @returns {number} returnType: index number or -1 if not found
|
|
299
|
+
*/
|
|
300
|
+
export declare const getLayerIndexByLayerId: import("reselect").OutputParametricSelector<AppStore, string, number, (res1: Layer[], res2: string) => number>;
|
|
301
|
+
/**
|
|
302
|
+
* Returns the Layer in the map for given layerIndex
|
|
303
|
+
*
|
|
304
|
+
* Example const layer = getLayerByLayerIndex(store, 'mapid-1', 0);
|
|
305
|
+
* @param {object} store store: object - store object
|
|
306
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
307
|
+
* @param {number} layerIndex layerId: number - Index of the layer in the map
|
|
308
|
+
* @returns {object} returnType: layer, or null if not found
|
|
309
|
+
*/
|
|
310
|
+
export declare const getLayerByLayerIndex: import("reselect").OutputParametricSelector<AppStore, string, Layer, (res1: Layer[], res2: number) => Layer>;
|
|
311
|
+
/**
|
|
312
|
+
* Returns name of all unique dimensions present in all maps
|
|
313
|
+
*
|
|
314
|
+
* Example getAllUniqueDimensions(store);
|
|
315
|
+
* @param {object} store store: object - store object
|
|
316
|
+
* @returns {array} returnType: array of dimension names
|
|
317
|
+
*/
|
|
318
|
+
export declare const getAllUniqueDimensions: import("reselect").OutputSelector<AppStore, string[], (res1: string[], res2: AppStore) => string[]>;
|
|
@@ -10,6 +10,7 @@ export interface Dimension {
|
|
|
10
10
|
minValue?: string;
|
|
11
11
|
timeInterval?: DateInterval;
|
|
12
12
|
synced?: boolean;
|
|
13
|
+
validSyncSelection?: boolean;
|
|
13
14
|
values?: string;
|
|
14
15
|
}
|
|
15
16
|
export interface WebMap {
|
|
@@ -73,6 +74,7 @@ export interface MoveLayerPayload {
|
|
|
73
74
|
mapId: string;
|
|
74
75
|
oldIndex: number;
|
|
75
76
|
newIndex: number;
|
|
77
|
+
origin: string;
|
|
76
78
|
}
|
|
77
79
|
export interface MoveLayer extends Action {
|
|
78
80
|
type: typeof WEBMAP_LAYER_MOVE;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import { ServiceActions,
|
|
2
|
-
/**
|
|
3
|
-
* Action setLayerDimensionsForService is used automatically after calling the setLayers action.
|
|
4
|
-
* It is populating the intial list of dimensions for the layer.
|
|
5
|
-
* Contents is based on WMS GetCapabilities
|
|
6
|
-
*
|
|
7
|
-
* Example: setLayerDimensionsForService({origin: 'someOrigin', service: someService, name: 'layerName', dimensions: dimensionObjecttArray})
|
|
8
|
-
* @param {object} payload consisting of service: string, name: string (layerName) and dimensions: Dimension[]
|
|
9
|
-
*/
|
|
10
|
-
export declare const setLayerDimensionsForService: (payload: SetLayerDimensionsForServicePayload) => ServiceActions;
|
|
1
|
+
import { ServiceActions, SetLayersForServicePayload, SetLayerStylesForServicePayload } from './types';
|
|
11
2
|
/**
|
|
12
3
|
* Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
13
4
|
*
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ServiceActions } from '../types';
|
|
2
2
|
import { ServiceState } from './types';
|
|
3
3
|
export declare const initialState: {
|
|
4
|
-
|
|
4
|
+
byId: {};
|
|
5
|
+
allIds: any[];
|
|
5
6
|
};
|
|
6
7
|
export declare const WEBMAPJS_REDUCERNAME = "react-webmapjs";
|
|
7
8
|
export declare const reducer: (state: {
|
|
8
|
-
|
|
9
|
+
byId: {};
|
|
10
|
+
allIds: any[];
|
|
9
11
|
}, action: ServiceActions) => ServiceState;
|