@opengeoweb/core 1.2.3 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -12
- package/core.esm.js +12582 -10424
- package/core.umd.js +10347 -7869
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +47 -0
- package/lib/components/ComponentsLookUp/componentsLookUp.stories.d.ts +7 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteButton.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 +35 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DeleteLayer/DeleteLayerConnect.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 +17 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/Menubutton/DuplicateLayer/DuplicateButton.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/DescriptionRow/DescriptionRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +12 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerRow/Menubutton/DuplicateLayer/DuplicateLayerConnect.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/LayerManagerMenuButton.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/{SortableRowContainer/SortableRowContainer.spec.d.ts → LayerRow/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/{MultiDimensionSelect/MultiDimensionSelectConnect.spec.d.ts → LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/{Menubutton/DeleteLayer → DeleteLayer}/DeleteLayerConnect.d.ts +1 -0
- package/lib/components/{MultiDimensionSelect/MultiDimensionSelectDialog.spec.d.ts → LayerManager/LayerContainerRow/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/VerticalDimensionSelect.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/LayerManager/LayerContainerRow/LayerRow/Menubutton/MenuButtonConnect.spec.d.ts +1 -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 +7 -1
- package/lib/components/LayerManager/LayerManager.stories.d.ts +7 -7
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +2 -1
- package/lib/components/LayerManager/LayerManagerConnect.stories.d.ts +5 -0
- package/lib/components/LayerManager/LayerManagerMapButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/LayerManagerStories.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.d.ts +14 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelect.spec.d.ts +1 -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 +16 -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/MapView/MapView.Error.stories.d.ts +4 -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/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 +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 +5 -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/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/PlayButton/PlayButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderButtons/SpeedButton/SpeedButton.d.ts +0 -2
- 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/TimeSliderUtils.d.ts +18 -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 +18 -5
- 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/actions.d.ts +2 -2
- package/lib/store/mapStore/map/reducer.d.ts +7 -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/__mocks__/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -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 +8 -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 +12 -12
- 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/ConfigurableConnectedMap.d.ts +0 -15
- 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,17 +1,34 @@
|
|
|
1
|
+
import moment from 'moment';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { DateInterval } from '@opengeoweb/webmap';
|
|
3
4
|
import { Dimension, Layer, Scale } from '../../store/mapStore/types';
|
|
4
5
|
import CanvasComponent from '../CanvasComponent/CanvasComponent';
|
|
5
6
|
export declare const defaultAnimationDelayAtStart = 250;
|
|
7
|
+
export declare const defaultDelay = 1000;
|
|
8
|
+
export declare const speedFactors: SpeedFactorType[];
|
|
9
|
+
export declare type SpeedFactorType = 0.1 | 0.2 | 0.5 | 1 | 2 | 4 | 8 | 16;
|
|
6
10
|
export interface TimeBounds {
|
|
7
11
|
selectedTime: number;
|
|
8
12
|
startTime: number;
|
|
9
13
|
endTime: number;
|
|
10
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Returns speed delay for given speedFactor. For options, see defined above in "speedFactors"
|
|
17
|
+
*/
|
|
18
|
+
export declare const getSpeedDelay: (speedFactor: SpeedFactorType) => number;
|
|
11
19
|
/**
|
|
12
20
|
* Returns time bounds from the given dimension. If no time dimension given, current time is returned as default
|
|
13
21
|
*/
|
|
14
22
|
export declare const getTimeBounds: (dimensions: Dimension[]) => TimeBounds;
|
|
23
|
+
export interface MomentTimeBounds {
|
|
24
|
+
selectedTime: moment.Moment;
|
|
25
|
+
startTime: moment.Moment;
|
|
26
|
+
endTime: moment.Moment;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Returns time bounds as *Moment* time instances from the given dimension. If no time dimension given, current time is returned as default
|
|
30
|
+
*/
|
|
31
|
+
export declare const getMomentTimeBounds: (dimensions: Dimension[]) => MomentTimeBounds;
|
|
15
32
|
export declare const scalingCoefficient: (end: number, start: number, width: number) => number;
|
|
16
33
|
export declare const timestampToPixelEdges: (timestamp: number, start: number, end: number, width: number) => number;
|
|
17
34
|
export declare const timestampToPixel: (timestamp: number, centerTime: number, widthPx: number, secondsPerPx: number) => number;
|
|
@@ -22,14 +39,7 @@ export declare const setNewRoundedTime: (x: number, centerTime: number, width: n
|
|
|
22
39
|
export declare const getDataLimitsFromLayers: (layers: Layer[]) => Array<number>;
|
|
23
40
|
export declare const getValueFromEvent: (event: React.KeyboardEvent<HTMLInputElement>, newValue: string, sliderChangeFunction: (number: any) => number, sliderSetFunction: (number: any) => void) => void;
|
|
24
41
|
export declare const getTimeStepFromDataInterval: (timeInterval: DateInterval) => number;
|
|
25
|
-
|
|
26
|
-
* This function choose and returns as a main layer the the first layer item
|
|
27
|
-
* in a layers array.
|
|
28
|
-
* @param layers
|
|
29
|
-
* @returns layer
|
|
30
|
-
*/
|
|
31
|
-
export declare const getMainLayer: (layers: Layer[]) => Layer | null;
|
|
32
|
-
export declare const getTimeStepFromLayer: (timeStep: number, layers: Layer[]) => number;
|
|
42
|
+
export declare const getActiveLayerTimeStep: (timeDimension: Dimension) => number | null;
|
|
33
43
|
/**
|
|
34
44
|
* This function calculates a suitable secondsPerpx value,
|
|
35
45
|
* when a data scale is selected. secondsPerPx is different for every data set
|
|
@@ -87,11 +97,6 @@ export declare const moveRelativeToTimePoint: (timePoint: number, timePointPx: n
|
|
|
87
97
|
* ...
|
|
88
98
|
*/
|
|
89
99
|
export declare const useCanvasTarget: (eventType: string) => [boolean, React.RefObject<CanvasComponent>];
|
|
90
|
-
export declare const buttonColors: {
|
|
91
|
-
BLUE: string;
|
|
92
|
-
LIGHT_BLUE: string;
|
|
93
|
-
SHADED_WHITE: string;
|
|
94
|
-
};
|
|
95
100
|
export declare const needleGeom: {
|
|
96
101
|
smallWidth: number;
|
|
97
102
|
largeWidth: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ToggleButtonProps } from '@material-ui/lab';
|
|
3
|
+
export declare const useButtonStyles: (props: ToggleIconButtonProps) => import("@material-ui/styles").ClassNameMap<"button">;
|
|
4
|
+
export interface ToggleIconButtonProps extends ToggleButtonProps {
|
|
5
|
+
active?: boolean;
|
|
6
|
+
width?: number;
|
|
7
|
+
}
|
|
8
|
+
declare const ToggleIconButton: React.FC<ToggleIconButtonProps>;
|
|
9
|
+
export default ToggleIconButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const ToggleIconButtonLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ToggleIconButtonDark: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToggleIconButton } from './ToggleIconButton';
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SelectProps } from '@material-ui/core';
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"select">;
|
|
4
|
+
declare type ListELement = {
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
3
7
|
interface TooltipSelectProps extends SelectProps {
|
|
4
8
|
tooltip: string;
|
|
9
|
+
list?: ListELement[];
|
|
10
|
+
currentIndex?: number;
|
|
11
|
+
onChangeMouseWheel?: (element: ListELement) => void;
|
|
5
12
|
}
|
|
6
13
|
declare const TooltipSelect: React.FC<TooltipSelectProps>;
|
|
7
14
|
export default TooltipSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/index.d.ts
CHANGED
|
@@ -3,27 +3,40 @@ import * as mapSelectors from './store/mapStore/selectors';
|
|
|
3
3
|
import * as mapTypes from './store/mapStore/types';
|
|
4
4
|
import * as mapConstants from './store/mapStore/constants';
|
|
5
5
|
import * as mapUtils from './store/mapStore/map/utils';
|
|
6
|
+
import * as uiActions from './store/ui/actions';
|
|
7
|
+
import * as uiTypes from './store/ui/types';
|
|
8
|
+
import * as syncGroupActions from './store/generic/actions';
|
|
6
9
|
import * as layerReducer from './store/mapStore/layers/reducer';
|
|
7
10
|
import synchronizationGroupConfig from './store/generic/config';
|
|
8
11
|
import TooltipSelect from './components/TooltipSelect/TooltipSelect';
|
|
9
|
-
import { SyncGroupDialog } from './components/SyncGroups/SyncGroupDialog';
|
|
10
12
|
import * as SyncGroups from './store/generic/synchronizationGroups';
|
|
11
13
|
import coreModuleConfig from './store/coreModuleConfig';
|
|
12
14
|
import { LayerManagerConnect, LayerManagerMapButtonConnect } from './components/LayerManager';
|
|
15
|
+
import { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect } from './components/MultiMapDimensionSelect';
|
|
13
16
|
export * from './components/MultiMapView/MultiMapViewConnect';
|
|
17
|
+
export * from './components/MultiMapView/HarmoniePresets';
|
|
14
18
|
export { MapViewConnect, MapView, MapViewLayer } from './components/MapView';
|
|
15
19
|
export { ReactMapView, ReactMapViewLayer } from './components/ReactMapView';
|
|
16
|
-
export { MultiDimensionSelectConnect } from './components/MultiDimensionSelect';
|
|
17
20
|
export { LegendConnect, Legend, LegendMapButtonConnect, } from './components/Legend';
|
|
21
|
+
export { ZoomControls, ZoomControlConnect } from './components/Mapcontrols';
|
|
18
22
|
export { TimeSliderConnect } from './components/TimeSlider';
|
|
19
|
-
export {
|
|
23
|
+
export { MapControls } from './components/Mapcontrols';
|
|
24
|
+
export { mapActions, mapSelectors, mapTypes, mapConstants, mapUtils, layerReducer, uiActions, uiTypes, syncGroupActions, };
|
|
20
25
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
21
|
-
export
|
|
26
|
+
export * from './components/ComponentsLookUp';
|
|
27
|
+
export * from './components/ConfigurableMapWithSlider';
|
|
28
|
+
export { ConfigurableConnectedMap } from './components/ConfigurableConnectedMap';
|
|
22
29
|
export * from './store/mapStore/utils/helpers';
|
|
23
30
|
export { TooltipSelect };
|
|
24
|
-
export {
|
|
31
|
+
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
25
32
|
export { SyncGroups };
|
|
26
33
|
export { store } from './store';
|
|
27
34
|
export * from './types/types';
|
|
28
35
|
export { coreModuleConfig };
|
|
29
36
|
export { LayerManagerConnect, LayerManagerMapButtonConnect };
|
|
37
|
+
export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
|
|
38
|
+
export * as publicLayers from './utils/publicLayers';
|
|
39
|
+
export * as publicServices from './utils/publicServices';
|
|
40
|
+
export * as testLayers from './utils/testLayers';
|
|
41
|
+
export * as defaultConfigurations from './utils/defaultConfigurations';
|
|
42
|
+
export * from './components/Providers/Providers';
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
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;
|
|
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;
|
|
5
12
|
export declare function rootSaga(): SagaIterator;
|
|
6
13
|
export default rootSaga;
|
|
@@ -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 {};
|
|
@@ -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: Moment, end: Moment and interval: number (in
|
|
41
|
+
* Example: mapStartAnimation({mapId:'mapId1', start: 'someISOTime', end: 'someISOTime', interval: 15})
|
|
42
|
+
* @param {object} payload Object with mapId: string, start: Moment, end: Moment and interval: number (in minutes), timeList?: TimeListType[]
|
|
43
43
|
*/
|
|
44
44
|
export declare const mapStartAnimation: (payload: SetMapAnimationStartPayload) => MapActions;
|
|
45
45
|
/**
|
|
@@ -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;
|