@opengeoweb/core 1.3.0 → 2.1.3
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 +7809 -5270
- package/core.umd.js +7897 -5209
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +48 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → ComponentsLookUp/componentsLookup.spec.d.ts} +0 -0
- package/lib/components/ComponentsLookUp/index.d.ts +1 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +37 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → ConfigurableConnectedMap/ConfigurableConnectedMap.spec.d.ts} +0 -0
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.stories.d.ts +6 -0
- package/lib/components/ConfigurableConnectedMap/index.d.ts +1 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +5 -0
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +3 -0
- package/lib/components/{MultiDimensionSelect/VerticalDimensionSelect.spec.d.ts → CustomSwitch/CustomSwitch.spec.d.ts} +0 -0
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +3 -0
- package/lib/components/CustomSwitch/index.d.ts +1 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +4 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRowConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +5 -5
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +0 -1
- package/lib/components/LayerManager/LayerManager.d.ts +2 -0
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -6
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +8 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +16 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +10 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.stories.d.ts +7 -7
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectConnect.stories.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceListConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsButton/ServiceOptionsButton.stories.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +13 -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/Legend/LegendConnect.d.ts +4 -2
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -0
- package/lib/components/MapView/MapView.Error.stories.d.ts +4 -0
- package/lib/components/MapView/{MapView.MapCursor.stories.d.ts → MapView.MapPin.stories.d.ts} +1 -1
- package/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +5 -0
- package/lib/components/MapView/MapView.stories.d.ts +2 -1
- package/lib/components/MapView/MapViewConnect.MapPin.stories.d.ts +5 -0
- package/lib/components/MapView/MapViewConnect.d.ts +5 -3
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -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/index.d.ts +2 -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 +9 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +14 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.spec.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.stories.d.ts +25 -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 +2 -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 +8 -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 +2 -5
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +1 -4
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +5 -3
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +3 -2
- package/lib/components/ReactMapView/types.d.ts +6 -13
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +3 -3
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtonComponents.stories.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRail.d.ts +4 -4
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +10 -1
- package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.d.ts +1 -0
- package/lib/components/ToggleIconButton/ToggleIconButton.spec.d.ts +1 -0
- package/lib/components/{TimeSlider/TimeSliderButtons → ToggleIconButton}/ToggleIconButton.stories.d.ts +4 -0
- package/lib/components/ToggleIconButton/index.d.ts +1 -0
- package/lib/index.d.ts +9 -5
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/generic/sagas.d.ts +8 -2
- package/lib/store/generic/synchronizationGroups/index.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +0 -1
- package/lib/store/generic/synchronizationGroups/utils.d.ts +79 -2
- package/lib/store/generic/types.d.ts +3 -3
- package/lib/store/layerSelect/actions.d.ts +15 -0
- package/lib/store/layerSelect/config.d.ts +4 -0
- package/lib/store/layerSelect/constants.d.ts +2 -0
- package/lib/store/layerSelect/reducer.d.ts +3 -0
- package/lib/store/layerSelect/reducer.spec.d.ts +1 -0
- package/lib/store/layerSelect/sagas.d.ts +5 -0
- package/lib/store/layerSelect/sagas.spec.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +4 -0
- package/lib/store/layerSelect/selectors.spec.d.ts +1 -0
- package/lib/store/layerSelect/types.d.ts +35 -0
- package/lib/store/mapStore/layers/actions.d.ts +8 -4
- package/lib/store/mapStore/layers/constants.d.ts +1 -0
- package/lib/store/mapStore/layers/selectors.d.ts +39 -1
- package/lib/store/mapStore/layers/types.d.ts +28 -10
- 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/actions.d.ts +12 -5
- package/lib/store/mapStore/map/constants.d.ts +1 -0
- package/lib/store/mapStore/map/reducer.d.ts +7 -0
- package/lib/store/mapStore/map/selectors.d.ts +48 -6
- package/lib/store/mapStore/map/types.d.ts +21 -7
- package/lib/store/mapStore/service/actions.d.ts +1 -17
- package/lib/store/mapStore/service/constants.d.ts +0 -2
- 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 +11 -30
- package/lib/store/mapStore/types.d.ts +1 -1
- package/lib/store/mapStore/utils/helpers.d.ts +4 -3
- package/lib/store/ui/actions.d.ts +6 -6
- 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 +5 -5
- package/lib/store/ui/types.d.ts +2 -1
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/types/types.d.ts +2 -1
- package/lib/utils/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/lib/utils/defaultTestSettings.d.ts +56 -233
- package/lib/utils/dimensionUtils.d.ts +5 -1
- package/lib/utils/getCapabilities.d.ts +8 -0
- package/lib/utils/testUtils.d.ts +3 -2
- package/package.json +9 -9
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConfig.d.ts +0 -3
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectConnect.d.ts +0 -15
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialog.d.ts +0 -15
- package/lib/components/MultiDimensionSelect/MultiDimensionSelectDialogConnect.d.ts +0 -8
- package/lib/components/MultiDimensionSelect/index.d.ts +0 -2
- package/lib/components/MultiDimensionSelect/types.d.ts +0 -18
- package/lib/components/SyncGroups/ConfigurableConnectedMap.d.ts +0 -17
- package/lib/components/SyncGroups/SyncGroupDialog.d.ts +0 -7
package/lib/index.d.ts
CHANGED
|
@@ -5,34 +5,38 @@ import * as mapConstants from './store/mapStore/constants';
|
|
|
5
5
|
import * as mapUtils from './store/mapStore/map/utils';
|
|
6
6
|
import * as uiActions from './store/ui/actions';
|
|
7
7
|
import * as uiTypes from './store/ui/types';
|
|
8
|
+
import * as syncGroupActions from './store/generic/actions';
|
|
8
9
|
import * as layerReducer from './store/mapStore/layers/reducer';
|
|
9
10
|
import synchronizationGroupConfig from './store/generic/config';
|
|
10
11
|
import TooltipSelect from './components/TooltipSelect/TooltipSelect';
|
|
11
|
-
import { SyncGroupDialog } from './components/SyncGroups/SyncGroupDialog';
|
|
12
12
|
import * as SyncGroups from './store/generic/synchronizationGroups';
|
|
13
13
|
import coreModuleConfig from './store/coreModuleConfig';
|
|
14
14
|
import { LayerManagerConnect, LayerManagerMapButtonConnect } from './components/LayerManager';
|
|
15
|
+
import { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect } from './components/MultiMapDimensionSelect';
|
|
15
16
|
export * from './components/MultiMapView/MultiMapViewConnect';
|
|
16
17
|
export * from './components/MultiMapView/HarmoniePresets';
|
|
17
18
|
export { MapViewConnect, MapView, MapViewLayer } from './components/MapView';
|
|
18
19
|
export { ReactMapView, ReactMapViewLayer } from './components/ReactMapView';
|
|
19
|
-
export { MultiDimensionSelectConnect } from './components/MultiDimensionSelect';
|
|
20
20
|
export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Legend';
|
|
21
21
|
export { ZoomControls, ZoomControlConnect } from './components/Mapcontrols';
|
|
22
22
|
export { TimeSliderConnect } from './components/TimeSlider';
|
|
23
|
-
export {
|
|
23
|
+
export { MapControls } from './components/Mapcontrols';
|
|
24
|
+
export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiTypes, syncGroupActions, };
|
|
24
25
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
26
|
+
export * from './components/ComponentsLookUp';
|
|
25
27
|
export * from './components/ConfigurableMapWithSlider';
|
|
26
|
-
export { ConfigurableConnectedMap } from './components/
|
|
28
|
+
export { ConfigurableConnectedMap } from './components/ConfigurableConnectedMap';
|
|
27
29
|
export * from './store/mapStore/utils/helpers';
|
|
28
30
|
export { TooltipSelect };
|
|
29
|
-
export {
|
|
31
|
+
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
30
32
|
export { SyncGroups };
|
|
31
33
|
export { store } from './store';
|
|
32
34
|
export * from './types/types';
|
|
33
35
|
export { coreModuleConfig };
|
|
34
36
|
export { LayerManagerConnect, LayerManagerMapButtonConnect };
|
|
37
|
+
export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
|
|
35
38
|
export * as publicLayers from './utils/publicLayers';
|
|
36
39
|
export * as publicServices from './utils/publicServices';
|
|
37
40
|
export * as testLayers from './utils/testLayers';
|
|
38
41
|
export * as defaultConfigurations from './utils/defaultConfigurations';
|
|
42
|
+
export * from './components/Providers/Providers';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState>)[];
|
|
1
|
+
declare const coreModuleConfig: (import("redux-dynamic-modules-saga").ISagaModule<import("./mapStore/types").WebMapStateModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./ui/types").UIModuleState> | import("redux-dynamic-modules-saga").ISagaModule<import("./layerSelect/types").LayerSelectModuleState>)[];
|
|
2
2
|
export default coreModuleConfig;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { SetBbox, SetTime
|
|
2
|
+
import { SetBbox, SetTime } from './types';
|
|
3
|
+
import { AddLayer, DeleteLayer, LayerActions, MoveLayer, SetActiveLayerId, SetBaseLayers } from '../mapStore/types';
|
|
3
4
|
export declare function setTimeSaga({ payload }: SetTime): SagaIterator;
|
|
4
5
|
export declare function setBBoxSaga({ payload }: SetBbox): SagaIterator;
|
|
5
|
-
export declare function layerActionsSaga({ payload, type, }:
|
|
6
|
+
export declare function layerActionsSaga({ payload, type, }: LayerActions): SagaIterator;
|
|
7
|
+
export declare function addLayerActionsSaga({ payload, type, }: AddLayer): SagaIterator;
|
|
8
|
+
export declare function deleteLayerActionsSaga({ payload, type, }: DeleteLayer): SagaIterator;
|
|
9
|
+
export declare function moveLayerActionsSaga({ payload, type, }: MoveLayer): SagaIterator;
|
|
10
|
+
export declare function setActiveLayerIdActionsSaga({ payload, type, }: SetActiveLayerId): SagaIterator;
|
|
11
|
+
export declare function mapBaseLayerActionsSaga({ payload, type, }: SetBaseLayers): SagaIterator;
|
|
6
12
|
export declare function rootSaga(): SagaIterator;
|
|
7
13
|
export default rootSaga;
|
|
@@ -3,6 +3,5 @@ import { SyncGroupAddTarget, SyncGroupLinkTarget } from './types';
|
|
|
3
3
|
export declare function updateSourceValueWhenLinkingComponentToGroupSaga(groupId: string, targetToUpdate: string): SagaIterator;
|
|
4
4
|
export declare function addGroupTargetSaga({ payload, }: SyncGroupAddTarget): SagaIterator;
|
|
5
5
|
export declare function linkGroupTargetSaga({ payload, }: SyncGroupLinkTarget): SagaIterator;
|
|
6
|
-
export declare function clearGroupsSaga(): SagaIterator;
|
|
7
6
|
declare function rootSaga(): SagaIterator;
|
|
8
7
|
export default rootSaga;
|
|
@@ -1,4 +1,81 @@
|
|
|
1
1
|
import { AppStore } from '../../../types/types';
|
|
2
|
-
import {
|
|
2
|
+
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
|
|
3
|
+
import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
3
4
|
import { SyncType } from './types';
|
|
4
|
-
export declare const
|
|
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 {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import {
|
|
2
|
+
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetActiveLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
|
|
3
3
|
import { GENERIC_SETTIME, GENERIC_SETBBOX } from './constants';
|
|
4
4
|
export interface SetTimePayload {
|
|
5
5
|
sourceId: string;
|
|
@@ -26,5 +26,5 @@ export interface SetBbox extends Action {
|
|
|
26
26
|
}
|
|
27
27
|
export declare type GenericActionPayload = SetBboxPayload | SetTimePayload;
|
|
28
28
|
export declare type GenericActions = SetTime | SetBbox;
|
|
29
|
-
export declare type
|
|
30
|
-
export declare type SyncLayerPayloads =
|
|
29
|
+
export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetActiveLayerIdPayload;
|
|
30
|
+
export declare type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AddNewKeywordsPayload, LayerSelectActions, SetSearchFilterPayload } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Sets the given text to the searchFilter
|
|
4
|
+
*
|
|
5
|
+
* Example: setSearchFilter({ filterText: 'hello world' })
|
|
6
|
+
* @param {string} payload { filterText: string }
|
|
7
|
+
*/
|
|
8
|
+
export declare const setSearchFilter: (payload: SetSearchFilterPayload) => LayerSelectActions;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the given keywords to Layer Select store
|
|
11
|
+
*
|
|
12
|
+
* Example: addNewKeywords({ keywords: ['keyword1', 'keyword2'] })
|
|
13
|
+
* @param {string[]} payload { keywords: string[] }
|
|
14
|
+
*/
|
|
15
|
+
export declare const addNewKeywords: (payload: AddNewKeywordsPayload) => LayerSelectActions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { AppStore } from '../../types/types';
|
|
2
|
+
import { LayerSelectStoreType } from './types';
|
|
3
|
+
export declare const getSearchFilter: import("reselect").OutputSelector<AppStore, string, (res: LayerSelectStoreType) => string>;
|
|
4
|
+
export declare const getKeywords: import("reselect").OutputSelector<AppStore, import("./types").KeywordObject[], (res: LayerSelectStoreType) => import("./types").KeywordObject[]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Action } from 'redux';
|
|
2
|
+
import { LAYER_SELECT_ADD_NEW_KEYWORDS, LAYER_SELECT_SET_SEARCH_FILTER } from './constants';
|
|
3
|
+
export interface KeywordObject {
|
|
4
|
+
id: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
amountVisible: number;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface FiltersType {
|
|
10
|
+
searchFilter: string;
|
|
11
|
+
keywords: KeywordObject[];
|
|
12
|
+
addedServices: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface LayerSelectStoreType {
|
|
15
|
+
filters: FiltersType;
|
|
16
|
+
}
|
|
17
|
+
export interface LayerSelectModuleState {
|
|
18
|
+
layerSelect?: LayerSelectStoreType;
|
|
19
|
+
}
|
|
20
|
+
export interface SetSearchFilterPayload {
|
|
21
|
+
filterText: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SetSearchFilter extends Action {
|
|
24
|
+
type: typeof LAYER_SELECT_SET_SEARCH_FILTER;
|
|
25
|
+
payload: SetSearchFilterPayload;
|
|
26
|
+
}
|
|
27
|
+
export interface AddNewKeywordsPayload {
|
|
28
|
+
serviceName: string;
|
|
29
|
+
keywords: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface AddNewKeywords extends Action {
|
|
32
|
+
type: typeof LAYER_SELECT_ADD_NEW_KEYWORDS;
|
|
33
|
+
payload: AddNewKeywordsPayload;
|
|
34
|
+
}
|
|
35
|
+
export declare type LayerSelectActions = SetSearchFilter | AddNewKeywords;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload } from './types';
|
|
1
|
+
import { SetLayerOpacityPayload, SetLayerEnabledPayload, SetLayerDimensionPayload, SetLayerNamePayload, SetLayerStylePayload, LayerActions, AddLayerPayload, DeleteLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, ErrorLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetLayerDimensionsPayload, SetLayerStylesPayload } 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:
|
|
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'});
|
|
@@ -75,6 +72,13 @@ export declare const layerChangeDimension: (payload: SetLayerDimensionPayload) =
|
|
|
75
72
|
* @param {object} payload Object with layerId: string, dimensions: [Dimension], origin?: string
|
|
76
73
|
*/
|
|
77
74
|
export declare const layerSetDimensions: (payload: SetLayerDimensionsPayload) => LayerActions;
|
|
75
|
+
/**
|
|
76
|
+
* Action layerSetStyles is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
77
|
+
*
|
|
78
|
+
* Example: layerSetStyles({service: someService, name: 'layerName', styles: styleArray})
|
|
79
|
+
* @param {object} payload consisting of service: string, name: string, styles: Style[]
|
|
80
|
+
*/
|
|
81
|
+
export declare const layerSetStyles: (payload: SetLayerStylesPayload) => LayerActions;
|
|
78
82
|
/**
|
|
79
83
|
* Changes the name of the layer
|
|
80
84
|
*
|
|
@@ -3,6 +3,7 @@ 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
5
|
export declare const WEBMAP_LAYER_SET_DIMENSIONS = "WEBMAP_LAYER_SET_DIMENSIONS";
|
|
6
|
+
export declare const WEBMAP_LAYER_SET_STYLES = "WEBMAP_LAYER_SET_STYLES";
|
|
6
7
|
export declare const WEBMAP_LAYER_CHANGE_ENABLED = "WEBMAP_LAYER_CHANGE_ENABLED";
|
|
7
8
|
export declare const WEBMAP_LAYER_DELETE = "WEBMAP_LAYER_DELETE";
|
|
8
9
|
export declare const WEBMAP_LAYER_ERROR = "WEBMAP_LAYER_ERROR";
|
|
@@ -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
|
/**
|
|
@@ -57,15 +58,33 @@ export declare const getBaseLayers: import("reselect").OutputSelector<AppStore,
|
|
|
57
58
|
* @returns {array} returnType: array - an array of all overLayers containing layer information (service, name, style, enabled etc.)
|
|
58
59
|
*/
|
|
59
60
|
export declare const getOverLayers: import("reselect").OutputSelector<AppStore, Layer[], (res: Layer[]) => Layer[]>;
|
|
61
|
+
/**
|
|
62
|
+
* Gets styles of the passed layer
|
|
63
|
+
*
|
|
64
|
+
* Example: layerStyles = getLayerStyles(store, 'layerId_1')
|
|
65
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
66
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
67
|
+
* @returns {array} returnType: Style[] - array containing layer styles
|
|
68
|
+
*/
|
|
69
|
+
export declare const getLayerStyles: import("reselect").OutputParametricSelector<AppStore, string, import("@opengeoweb/webmap").Style[], (res: Layer) => import("@opengeoweb/webmap").Style[]>;
|
|
60
70
|
/**
|
|
61
71
|
* Gets dimensions of the passed layer
|
|
62
72
|
*
|
|
63
73
|
* Example: layerDimensions = getLayerDimensions(store, 'layerId_1')
|
|
64
74
|
* @param {object} store store: object - object from which the layers state will be extracted
|
|
65
75
|
* @param {string} layerId layerId: string - Id of the layer
|
|
66
|
-
* @returns {array} returnType:
|
|
76
|
+
* @returns {array} returnType: Dimension[] - array containing layer dimensions
|
|
67
77
|
*/
|
|
68
78
|
export declare const getLayerDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("../types").Dimension[], (res: Layer) => import("../types").Dimension[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Gets dimensions of the passed layer, excluding the time dimension
|
|
81
|
+
*
|
|
82
|
+
* Example: layerNonTimeDimensions = getLayerNonTimeDimensions(store, 'layerId_1')
|
|
83
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
84
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
85
|
+
* @returns {array} returnType: Dimension[] - array containing layer dimensions, excluding the time dimension
|
|
86
|
+
*/
|
|
87
|
+
export declare const getLayerNonTimeDimensions: import("reselect").OutputParametricSelector<AppStore, string, import("../types").Dimension[], (res: import("../types").Dimension[]) => import("../types").Dimension[]>;
|
|
69
88
|
/**
|
|
70
89
|
* Gets time dimension of the passed layer
|
|
71
90
|
*
|
|
@@ -75,6 +94,16 @@ export declare const getLayerDimensions: import("reselect").OutputParametricSele
|
|
|
75
94
|
* @returns {array} returnType: object - object of layer time dimension
|
|
76
95
|
*/
|
|
77
96
|
export declare const getLayerTimeDimension: import("reselect").OutputParametricSelector<AppStore, string, any[] | import("../types").Dimension, (res: import("../types").Dimension[]) => any[] | import("../types").Dimension>;
|
|
97
|
+
/**
|
|
98
|
+
* Gets specified dimension of the passed layer
|
|
99
|
+
*
|
|
100
|
+
* Example: dimension = getLayerDimension(store, 'layerId_1', 'elevation')
|
|
101
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
102
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
103
|
+
* @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
|
|
104
|
+
* @returns {object} returnType: object - object of layer dimension
|
|
105
|
+
*/
|
|
106
|
+
export declare const getLayerDimension: import("reselect").OutputParametricSelector<AppStore, string, Dimension, (res1: import("../types").Dimension[], res2: string) => Dimension>;
|
|
78
107
|
/**
|
|
79
108
|
* Gets opacity of the passed layer
|
|
80
109
|
*
|
|
@@ -111,6 +140,15 @@ export declare const getLayerName: import("reselect").OutputParametricSelector<A
|
|
|
111
140
|
* @returns {string} returnType: string - layer service
|
|
112
141
|
*/
|
|
113
142
|
export declare const getLayerService: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
|
|
143
|
+
/**
|
|
144
|
+
* Gets selected style of the passed layer
|
|
145
|
+
*
|
|
146
|
+
* Example: layerStyle = getLayerStyle(store, 'layerId_1')
|
|
147
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
148
|
+
* @param {string} layerId layerId: string - Id of the layer
|
|
149
|
+
* @returns {string} returnType: string - style that is currently selected
|
|
150
|
+
*/
|
|
151
|
+
export declare const getLayerStyle: import("reselect").OutputParametricSelector<AppStore, string, string, (res: Layer) => string>;
|
|
114
152
|
/**
|
|
115
153
|
* Gets layer status
|
|
116
154
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
|
-
import {
|
|
2
|
+
import { Style } from '@opengeoweb/webmap';
|
|
3
3
|
import { Dimension } 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_LAYER_SET_STYLES } from './constants';
|
|
4
5
|
export interface WMJSDimension {
|
|
5
6
|
getFirstValue(): string;
|
|
6
7
|
getLastValue(): string;
|
|
@@ -30,10 +31,12 @@ export interface Layer {
|
|
|
30
31
|
mapId?: string;
|
|
31
32
|
service?: string;
|
|
32
33
|
name?: string;
|
|
34
|
+
title?: string;
|
|
33
35
|
format?: string;
|
|
34
36
|
enabled?: boolean;
|
|
35
37
|
style?: string;
|
|
36
38
|
dimensions?: Dimension[];
|
|
39
|
+
styles?: Style[];
|
|
37
40
|
opacity?: number;
|
|
38
41
|
headers?: Headers[];
|
|
39
42
|
type?: string;
|
|
@@ -57,6 +60,7 @@ export interface LayerPayload {
|
|
|
57
60
|
export interface SetLayersPayload {
|
|
58
61
|
mapId: string;
|
|
59
62
|
layers: Layer[];
|
|
63
|
+
origin?: string;
|
|
60
64
|
}
|
|
61
65
|
export interface SetLayers extends Action {
|
|
62
66
|
type: typeof WEBMAP_SET_LAYERS;
|
|
@@ -65,11 +69,28 @@ export interface SetLayers extends Action {
|
|
|
65
69
|
export interface SetBaseLayersPayload {
|
|
66
70
|
mapId: string;
|
|
67
71
|
layers: Layer[];
|
|
72
|
+
origin?: string;
|
|
68
73
|
}
|
|
69
74
|
export interface SetBaseLayers extends Action {
|
|
70
75
|
type: typeof WEBMAP_SET_BASELAYERS;
|
|
71
76
|
payload: SetBaseLayersPayload;
|
|
72
77
|
}
|
|
78
|
+
export interface SetLayerDimensionsPayload extends LayerPayload {
|
|
79
|
+
origin: string;
|
|
80
|
+
dimensions: Dimension[];
|
|
81
|
+
}
|
|
82
|
+
export interface SetLayerDimensions extends Action {
|
|
83
|
+
type: typeof WEBMAP_LAYER_SET_DIMENSIONS;
|
|
84
|
+
payload: SetLayerDimensionsPayload;
|
|
85
|
+
}
|
|
86
|
+
export interface SetLayerStylesPayload extends LayerPayload {
|
|
87
|
+
origin: string;
|
|
88
|
+
styles: Style[];
|
|
89
|
+
}
|
|
90
|
+
export interface SetLayerStyles extends Action {
|
|
91
|
+
type: typeof WEBMAP_LAYER_SET_STYLES;
|
|
92
|
+
payload: SetLayerStylesPayload;
|
|
93
|
+
}
|
|
73
94
|
export interface SetLayerOpacityPayload extends LayerPayload {
|
|
74
95
|
opacity: number;
|
|
75
96
|
}
|
|
@@ -96,18 +117,10 @@ export interface SetLayerDimensionPayload extends LayerPayload {
|
|
|
96
117
|
dimension: Dimension;
|
|
97
118
|
service?: string;
|
|
98
119
|
}
|
|
99
|
-
export interface SetLayerDimensionsPayload extends LayerPayload {
|
|
100
|
-
origin: string;
|
|
101
|
-
dimensions: Dimension[];
|
|
102
|
-
}
|
|
103
120
|
export interface SetLayerDimension extends Action {
|
|
104
121
|
type: typeof WEBMAP_LAYER_CHANGE_DIMENSION;
|
|
105
122
|
payload: SetLayerDimensionPayload;
|
|
106
123
|
}
|
|
107
|
-
export interface SetLayerDimensions extends Action {
|
|
108
|
-
type: typeof WEBMAP_LAYER_SET_DIMENSIONS;
|
|
109
|
-
payload: SetLayerDimensionsPayload;
|
|
110
|
-
}
|
|
111
124
|
export interface SetLayerStylePayload extends LayerPayload {
|
|
112
125
|
style: string;
|
|
113
126
|
}
|
|
@@ -117,6 +130,7 @@ export interface SetLayerStyle extends Action {
|
|
|
117
130
|
}
|
|
118
131
|
export interface DeleteLayerPayload extends LayerPayload {
|
|
119
132
|
mapId: string;
|
|
133
|
+
layerIndex: number;
|
|
120
134
|
}
|
|
121
135
|
export interface DeleteLayer extends Action {
|
|
122
136
|
type: typeof WEBMAP_LAYER_DELETE;
|
|
@@ -130,6 +144,7 @@ export interface AddLayerPayload {
|
|
|
130
144
|
mapId: string;
|
|
131
145
|
layerId: string;
|
|
132
146
|
layer: Layer;
|
|
147
|
+
origin: string;
|
|
133
148
|
}
|
|
134
149
|
export interface AddLayer extends Action {
|
|
135
150
|
type: typeof WEBMAP_ADD_LAYER;
|
|
@@ -143,6 +158,7 @@ export interface AddBaseLayerPayload {
|
|
|
143
158
|
mapId: string;
|
|
144
159
|
layerId: string;
|
|
145
160
|
layer: Layer;
|
|
161
|
+
origin?: string;
|
|
146
162
|
}
|
|
147
163
|
export interface AddAvailableBaseLayer extends Action {
|
|
148
164
|
type: typeof WEBMAP_ADD_AVAILABLE_BASELAYER;
|
|
@@ -150,6 +166,7 @@ export interface AddAvailableBaseLayer extends Action {
|
|
|
150
166
|
}
|
|
151
167
|
export interface AddAvailableBaseLayerPayload {
|
|
152
168
|
layer: Layer;
|
|
169
|
+
origin?: string;
|
|
153
170
|
}
|
|
154
171
|
export interface AddAvailableBaseLayers extends Action {
|
|
155
172
|
type: typeof WEBMAP_ADD_AVAILABLE_BASELAYERS;
|
|
@@ -157,6 +174,7 @@ export interface AddAvailableBaseLayers extends Action {
|
|
|
157
174
|
}
|
|
158
175
|
export interface AddAvailableBaseLayersPayload {
|
|
159
176
|
layers: Layer[];
|
|
177
|
+
origin?: string;
|
|
160
178
|
}
|
|
161
179
|
export interface ErrorLayerPayload extends LayerPayload {
|
|
162
180
|
error: Error;
|
|
@@ -165,4 +183,4 @@ export interface ErrorLayer extends Action {
|
|
|
165
183
|
type: typeof WEBMAP_LAYER_ERROR;
|
|
166
184
|
payload: ErrorLayerPayload;
|
|
167
185
|
}
|
|
168
|
-
export declare type LayerActions = SetLayerOpacity | SetLayerEnabled | SetLayerDimension |
|
|
186
|
+
export declare type LayerActions = SetLayerDimensions | SetLayerStyles | SetLayerOpacity | SetLayerEnabled | SetLayerDimension | SetLayerStyle | SetLayerName | DeleteLayer | DeleteBaseLayer | AddLayer | SetLayers | SetBaseLayers | AddBaseLayer | ErrorLayer | AddAvailableBaseLayer | AddAvailableBaseLayers;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate, ToggleLoopPayload, ToggleLoop, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationDelayPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, ToggleTimestepAutoPayload, ToggleTimestepAuto, ToggleTimeSliderHoverPayload, ToggleTimeSliderHover, SetTimeSliderCenterTimePayload, SetTimeSliderSecondsPerPxPayload, SetTimeSliderDataScaleToSecondsPerPxPayload } from './types';
|
|
1
|
+
import { MapActions, SetBboxPayload, MoveLayerPayload, SetMapDimensionPayload, UpdateAllMapDimensionsPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetActiveLayerIdPayload, MoveLayer, SetActiveLayerId, ToggleAutoUpdatePayload, ToggleAutoUpdate, ToggleLoopPayload, ToggleLoop, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationDelayPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, ToggleTimestepAutoPayload, ToggleTimestepAuto, ToggleTimeSliderHoverPayload, ToggleTimeSliderHover, SetTimeSliderCenterTimePayload, SetTimeSliderSecondsPerPxPayload, SetTimeSliderDataScaleToSecondsPerPxPayload, MapPinLocationPayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Registers the map in the store and creates the map state
|
|
4
4
|
*
|
|
@@ -38,8 +38,8 @@ export declare const mapUpdateAllMapDimensions: (payload: UpdateAllMapDimensions
|
|
|
38
38
|
/**
|
|
39
39
|
* Starts the animation for a map.
|
|
40
40
|
*
|
|
41
|
-
* Example: mapStartAnimation({mapId:'mapId1', start: 'someISOTime', end: 'someISOTime', interval:
|
|
42
|
-
* @param {object} payload Object with mapId: string, start:
|
|
41
|
+
* Example: mapStartAnimation({mapId:'mapId1', start: 'someISOTime', end: 'someISOTime', interval: 15})
|
|
42
|
+
* @param {object} payload Object with mapId: string, start: string, end: string and interval: number (in minutes), timeList?: TimeListType[]
|
|
43
43
|
*/
|
|
44
44
|
export declare const mapStartAnimation: (payload: SetMapAnimationStartPayload) => MapActions;
|
|
45
45
|
/**
|
|
@@ -102,14 +102,14 @@ export declare const setAnimationDelay: (payload: SetAnimationDelayPayload) => M
|
|
|
102
102
|
*Sets the animation start time with id for a map
|
|
103
103
|
*
|
|
104
104
|
* Example: setAnimationStartTime({ mapId: 'mapId1'})
|
|
105
|
-
* @param {object} payload object with mapId: string, animationStartTime:
|
|
105
|
+
* @param {object} payload object with mapId: string, animationStartTime: string
|
|
106
106
|
*/
|
|
107
107
|
export declare const setAnimationStartTime: (payload: SetAnimationStartTimePayload) => MapActions;
|
|
108
108
|
/**
|
|
109
109
|
*Sets the animation end time with id for a map
|
|
110
110
|
*
|
|
111
111
|
* Example: setAnimationEndTime({ mapId: 'mapId1'})
|
|
112
|
-
* @param {object} payload object with mapId: string, animationEndTime:
|
|
112
|
+
* @param {object} payload object with mapId: string, animationEndTime: string
|
|
113
113
|
*/
|
|
114
114
|
export declare const setAnimationEndTime: (payload: SetAnimationEndTimePayload) => MapActions;
|
|
115
115
|
/**
|
|
@@ -147,3 +147,10 @@ export declare const setTimeSliderSecondsPerPx: (payload: SetTimeSliderSecondsPe
|
|
|
147
147
|
* @param {object} payload object with mapId: string, timeSliderDataScaleSecondsToPerPx: number
|
|
148
148
|
*/
|
|
149
149
|
export declare const setTimeSliderDataScaleToSecondsPerPx: (payload: SetTimeSliderDataScaleToSecondsPerPxPayload) => MapActions;
|
|
150
|
+
/**
|
|
151
|
+
* Sets current curser location for a map to display the point marker
|
|
152
|
+
*
|
|
153
|
+
* Example: setMapPinLocation({ mapId: 'mapId1', mapPinLocation: {lon: 1.2, lat: 3.4} })
|
|
154
|
+
* @param {object} payload object with mapId: string, mapPinLocation: MapLocation
|
|
155
|
+
*/
|
|
156
|
+
export declare const setMapPinLocation: (payload: MapPinLocationPayload) => MapActions;
|
|
@@ -19,3 +19,4 @@ export declare const WEBMAP_TOGGLE_TIME_SLIDER_HOVER = "WEBMAP_TOGGLE_TIME_SLIDE
|
|
|
19
19
|
export declare const WEBMAP_SET_TIME_SLIDER_CENTER_TIME = "WEBMAP_SET_TIME_SLIDER_CENTER_TIME";
|
|
20
20
|
export declare const WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX = "WEBMAP_SET_TIME_SLIDER_SECONDS_PER_PX";
|
|
21
21
|
export declare const WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX = "WEBMAP_SET_TIME_SLIDER_DATA_SCALE_TO_SECONDS_PER_PX";
|
|
22
|
+
export declare const WEBMAP_SET_PIN = "WEBMAP_SET_PIN";
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { WebMapState, MapActions } from './types';
|
|
2
2
|
import { LayerActions } from '../layers/types';
|
|
3
3
|
import { GenericSyncActions } from '../../generic/synchronizationActions/types';
|
|
4
|
+
/**
|
|
5
|
+
* Checks if the layer id is already taken in one of the maps.
|
|
6
|
+
* @param state The WebMapState
|
|
7
|
+
* @param layerIdToCheck The layerId to check
|
|
8
|
+
* @returns true if the layerId is already taken somewhere else.
|
|
9
|
+
*/
|
|
10
|
+
export declare const checkIfMapLayerIdIsAlreadyTaken: (state: WebMapState, layerId: string) => boolean;
|
|
4
11
|
export declare const initialState: WebMapState;
|
|
5
12
|
export declare const reducer: (state: WebMapState, action: MapActions | LayerActions | GenericSyncActions) => WebMapState;
|