@opengeoweb/core 4.17.0 → 4.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +2008 -1222
- package/index.umd.js +1932 -1107
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +4 -2
- package/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -0
- package/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayers.d.ts +2 -0
- package/lib/components/LayerManager/BaseLayerRow/BaseLayers/BaseLayersConnect.d.ts +2 -0
- package/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +2 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts +8 -2
- package/lib/components/LayerManager/LayerManager.custom.stories.d.ts +6 -0
- package/lib/components/LayerManager/LayerManager.d.ts +3 -0
- package/lib/components/LayerManager/LayerManagerHeaderOptions.d.ts +1 -0
- package/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.d.ts +11 -0
- package/lib/components/LayerManager/LayerManagerHeaderOptionsConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +30 -0
- package/lib/components/LayerManager/LayerSelect/LayerSelectButtonConnect.d.ts +2 -0
- package/lib/components/LayerManager/useFetchServices.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +4 -2
- package/lib/components/SyncGroups/utils.d.ts +6 -4
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +8 -2
- package/lib/hooks/useSetupDialog/useSetupDialog.d.ts +1 -0
- package/lib/index.d.ts +12 -3
- package/lib/store/generic/sagas.d.ts +1 -1
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -0
- package/lib/store/generic/types.d.ts +2 -2
- package/lib/store/layerSelect/reducer.d.ts +2 -3
- package/lib/store/layerSelect/sagas.d.ts +1 -2
- package/lib/store/layerSelect/types.d.ts +0 -10
- package/lib/store/mapStore/layers/selectors.d.ts +3 -3
- package/lib/store/mapStore/layers/types.d.ts +2 -1
- package/lib/store/mapStore/map/reducer.d.ts +25 -3
- package/lib/store/mapStore/map/sagas.d.ts +2 -1
- package/lib/store/mapStore/map/selectors.d.ts +73 -35
- package/lib/store/mapStore/map/types.d.ts +9 -3
- package/lib/store/mapStore/map/utils.d.ts +4 -3
- package/lib/store/mapStore/service/reducer.d.ts +2 -1
- package/lib/store/mapStore/service/sagas.d.ts +7 -0
- package/lib/store/mapStore/service/sagas.spec.d.ts +1 -0
- package/lib/store/mapStore/service/types.d.ts +10 -0
- package/lib/store/router/utils.d.ts +1 -1
- package/lib/store/ui/reducer.d.ts +3 -1
- package/lib/store/ui/selectors.d.ts +12 -0
- package/lib/store/ui/types.d.ts +5 -0
- package/lib/storybookUtils/defaultStorySettings.d.ts +0 -1
- package/package.json +11 -10
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AnimationPayloadType, Bbox, DockedLayerManagerSize, Layer } from '../../store/mapStore/types';
|
|
2
|
+
import { AnimationPayloadType, Bbox, Dimension, DockedLayerManagerSize, Layer } from '../../store/mapStore/types';
|
|
3
3
|
export declare const defaultBbox: {
|
|
4
4
|
srs: string;
|
|
5
5
|
bbox: {
|
|
@@ -16,9 +16,11 @@ export interface ConfigurableMapConnectProps {
|
|
|
16
16
|
shouldAnimate?: boolean;
|
|
17
17
|
title?: string;
|
|
18
18
|
layers: Layer[];
|
|
19
|
-
|
|
19
|
+
autoUpdateLayerId?: string;
|
|
20
|
+
autoTimeStepLayerId?: string;
|
|
20
21
|
bbox?: Bbox;
|
|
21
22
|
srs?: string;
|
|
23
|
+
dimensions?: Dimension[];
|
|
22
24
|
animationPayload?: AnimationPayloadType;
|
|
23
25
|
shouldShowZoomControls?: boolean;
|
|
24
26
|
displayMapPin?: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
2
3
|
import { Layer } from '../../../store/mapStore/types';
|
|
3
4
|
import { Service } from '../../WMSLoader/services';
|
|
4
5
|
interface BaseLayerRowProps {
|
|
@@ -6,6 +7,7 @@ interface BaseLayerRowProps {
|
|
|
6
7
|
preloadedAvailableBaseLayers?: Layer[];
|
|
7
8
|
preloadedServices?: Service[];
|
|
8
9
|
tooltip?: string;
|
|
10
|
+
settings?: LayerManagerCustomSettings['footer'];
|
|
9
11
|
}
|
|
10
12
|
declare const BaseLayerRow: React.FC<BaseLayerRowProps>;
|
|
11
13
|
export default BaseLayerRow;
|
|
@@ -4,6 +4,8 @@ interface BaseLayersProps {
|
|
|
4
4
|
selectedBaseLayers: Layer[];
|
|
5
5
|
availableBaseLayers: Layer[];
|
|
6
6
|
onChangeBaseLayers: (name: string) => void;
|
|
7
|
+
icon?: React.ElementType;
|
|
8
|
+
tooltipPrefix?: string;
|
|
7
9
|
}
|
|
8
10
|
declare const BaseLayers: React.FC<BaseLayersProps>;
|
|
9
11
|
export default BaseLayers;
|
|
@@ -6,6 +6,8 @@ export declare const areAvailableBaseLayersSame: (availableBaseLayerList: Layer[
|
|
|
6
6
|
interface BaseLayersConnectProps {
|
|
7
7
|
mapId: string;
|
|
8
8
|
preloadedAvailableBaseLayers: Layer[];
|
|
9
|
+
tooltipPrefix?: string;
|
|
10
|
+
icon?: React.ElementType;
|
|
9
11
|
}
|
|
10
12
|
declare const BaseLayersConnect: React.FC<BaseLayersConnectProps>;
|
|
11
13
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Source } from '../../../store/ui/types';
|
|
3
|
+
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
3
4
|
interface DescriptionRowProps {
|
|
4
5
|
mapId: string;
|
|
5
6
|
mapPresetsModule?: React.ReactElement;
|
|
6
7
|
source?: Source;
|
|
8
|
+
settings?: LayerManagerCustomSettings['header'];
|
|
7
9
|
}
|
|
8
10
|
declare const DescriptionRow: React.FC<DescriptionRowProps>;
|
|
9
11
|
export default DescriptionRow;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/ActivateLayer/ActivateLayer.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare enum AutoOptions {
|
|
3
|
+
BOTH = "Auto both",
|
|
4
|
+
NONE = "Auto none",
|
|
5
|
+
TIMESTEP = "Auto-timestep",
|
|
6
|
+
UPDATE = "Auto-update"
|
|
7
|
+
}
|
|
2
8
|
interface ActivateLayerProps {
|
|
3
|
-
onChange: (
|
|
4
|
-
isActive: boolean;
|
|
9
|
+
onChange: (autoOption: AutoOptions) => void;
|
|
5
10
|
isEnabled: boolean;
|
|
11
|
+
current: AutoOptions;
|
|
6
12
|
}
|
|
7
13
|
declare const ActivateLayer: React.FC<ActivateLayerProps>;
|
|
8
14
|
export default ActivateLayer;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { Layer } from '../../store/mapStore/types';
|
|
3
3
|
import { Source } from '../../store/ui/types';
|
|
4
4
|
import { Service } from '../WMSLoader/services';
|
|
5
|
+
import { LayerManagerCustomSettings } from './LayerManagerUtils';
|
|
5
6
|
import { Size } from './LayerManagerHeaderOptions';
|
|
6
7
|
export declare type Position = {
|
|
7
8
|
top: number;
|
|
@@ -26,6 +27,8 @@ interface LayerManagerProps {
|
|
|
26
27
|
onToggleDock?: () => void;
|
|
27
28
|
size?: Size;
|
|
28
29
|
startPosition?: Position;
|
|
30
|
+
setFocused?: (focused: boolean) => void;
|
|
31
|
+
settings?: LayerManagerCustomSettings;
|
|
29
32
|
}
|
|
30
33
|
export declare const calculateStartSize: (minSize: Size, prefSize: Size, startPosition: Position) => Size;
|
|
31
34
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Size } from './LayerManagerHeaderOptions';
|
|
3
|
+
interface HeaderOptionsProps {
|
|
4
|
+
isDockedLayerManager: boolean;
|
|
5
|
+
mapId: string;
|
|
6
|
+
onClickDockButton: () => void;
|
|
7
|
+
onChangeSize: (size: Size) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const areShortcutsEnabled: (activeMapId: string, mapId: string, floatingLmFocused: boolean, isDockedLayerManager: boolean) => boolean;
|
|
10
|
+
declare const HeaderOptionsConnect: React.FC<HeaderOptionsProps>;
|
|
11
|
+
export default HeaderOptionsConnect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { DockedLayerManagerSize } from '../../store/mapStore/types';
|
|
2
3
|
import { Size } from './LayerManagerHeaderOptions';
|
|
3
4
|
export declare const columnClasses: {
|
|
@@ -152,3 +153,32 @@ export declare const layerManagerStyle: {
|
|
|
152
153
|
};
|
|
153
154
|
};
|
|
154
155
|
export declare const returnCorrectSize: (sizeResult: DockedLayerManagerSize | undefined) => Size;
|
|
156
|
+
export interface LayerManagerCustomSettings {
|
|
157
|
+
header?: {
|
|
158
|
+
addLayer?: {
|
|
159
|
+
tooltipTitle?: string;
|
|
160
|
+
icon?: React.ReactNode;
|
|
161
|
+
};
|
|
162
|
+
layerName?: {
|
|
163
|
+
title: string;
|
|
164
|
+
};
|
|
165
|
+
layerStyle?: {
|
|
166
|
+
title: string;
|
|
167
|
+
};
|
|
168
|
+
opacity?: {
|
|
169
|
+
title: string;
|
|
170
|
+
};
|
|
171
|
+
dimensions?: {
|
|
172
|
+
title: string;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
footer?: {
|
|
176
|
+
baseLayerRow?: {
|
|
177
|
+
title?: string;
|
|
178
|
+
};
|
|
179
|
+
baseLayerDropdown?: {
|
|
180
|
+
tooltipPrefix?: string;
|
|
181
|
+
icon?: React.ElementType;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
}
|
|
@@ -3,6 +3,8 @@ import { Source } from '../../../store/ui/types';
|
|
|
3
3
|
interface LayerSelectButtonConnectProps {
|
|
4
4
|
mapId: string;
|
|
5
5
|
source?: Source;
|
|
6
|
+
tooltipTitle?: string;
|
|
7
|
+
icon?: React.ReactNode;
|
|
6
8
|
}
|
|
7
9
|
declare const LayerSelectButtonConnect: React.FC<LayerSelectButtonConnectProps>;
|
|
8
10
|
export default LayerSelectButtonConnect;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { InitialService } from '../../store/mapStore/types';
|
|
1
2
|
import { NoIdService, UserAddedServices } from '../../utils/types';
|
|
2
3
|
import { Service } from '../WMSLoader/services';
|
|
4
|
+
export declare const getServicesToLoad: (services: NoIdService[]) => InitialService[];
|
|
3
5
|
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[] | undefined) => void;
|
|
4
6
|
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Bbox, Layer } from '../../store/mapStore/types';
|
|
2
|
+
import { Bbox, Dimension, Layer } from '../../store/mapStore/types';
|
|
3
3
|
export interface MultiMapPreset {
|
|
4
4
|
id: string;
|
|
5
5
|
title?: string;
|
|
6
6
|
layers: Layer[];
|
|
7
|
-
|
|
7
|
+
autoTimeStepLayerId?: string;
|
|
8
|
+
autoUpdateLayerId?: string;
|
|
8
9
|
bbox?: Bbox;
|
|
9
10
|
srs?: string;
|
|
11
|
+
dimensions?: Dimension[];
|
|
10
12
|
displayTimeInMap?: boolean;
|
|
11
13
|
displayLayerManagerAndLegendButtonInMap?: boolean;
|
|
12
14
|
displayDimensionSelectButtonInMap?: boolean;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { Layer } from '../../store/mapStore/types';
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
export interface LayersAndAutoLayerIds {
|
|
3
|
+
layers: Layer[];
|
|
4
|
+
autoTimeStepLayerId?: string;
|
|
5
|
+
autoUpdateLayerId?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const replaceLayerIdsToEnsureUniqueLayerIdsInStore: (layerIds: LayersAndAutoLayerIds) => LayersAndAutoLayerIds;
|
|
@@ -11,7 +11,10 @@ export interface PlayButtonConnectProps {
|
|
|
11
11
|
mapStartAnimation?: typeof mapActions.mapStartAnimation;
|
|
12
12
|
mapStopAnimation?: typeof mapActions.mapStopAnimation;
|
|
13
13
|
timeStep?: number;
|
|
14
|
-
linkedMapAnimationInfo?:
|
|
14
|
+
linkedMapAnimationInfo?: {
|
|
15
|
+
isAnimating: boolean;
|
|
16
|
+
id: string;
|
|
17
|
+
};
|
|
15
18
|
}
|
|
16
19
|
declare const connectRedux: import("react-redux").InferableComponentEnhancerWithProps<{
|
|
17
20
|
animationStartTime: string | undefined;
|
|
@@ -35,7 +38,10 @@ declare const PlayButtonConnect: import("react-redux").ConnectedComponent<({ map
|
|
|
35
38
|
mapStartAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStartPayload, string> | undefined;
|
|
36
39
|
mapStopAnimation?: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("../../../../store/mapStore/types").SetMapAnimationStopPayload, string> | undefined;
|
|
37
40
|
timeStep?: number | undefined;
|
|
38
|
-
linkedMapAnimationInfo?:
|
|
41
|
+
linkedMapAnimationInfo?: {
|
|
42
|
+
isAnimating: boolean;
|
|
43
|
+
id: string;
|
|
44
|
+
} | undefined;
|
|
39
45
|
context?: React.Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
|
|
40
46
|
store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
|
|
41
47
|
}>;
|
|
@@ -8,5 +8,6 @@ export interface SetupDialogReturnValue {
|
|
|
8
8
|
isDialogOpen: boolean;
|
|
9
9
|
uiIsLoading: boolean;
|
|
10
10
|
uiError: string;
|
|
11
|
+
setFocused: (focused: boolean) => void;
|
|
11
12
|
}
|
|
12
13
|
export declare const useSetupDialog: (dialogType: uiTypes.DialogType, source?: Source) => SetupDialogReturnValue;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions, snackbarActions, routerActions, appActions, layerSelectors } from './store';
|
|
1
|
+
import { mapSelectors, uiActions, uiSelectors, layerActions, genericActions, snackbarActions, routerActions, appActions, layerSelectors, genericSelectors } from './store';
|
|
2
2
|
import * as mapTypes from './store/mapStore/types';
|
|
3
3
|
import * as layerTypes from './store/mapStore/layers/types';
|
|
4
4
|
import * as mapUtils from './store/mapStore/map/utils';
|
|
@@ -21,6 +21,7 @@ export { MapControls } from './components/MapControls';
|
|
|
21
21
|
export declare const mapActions: {
|
|
22
22
|
serviceSetLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetLayersForServicePayload, string>;
|
|
23
23
|
mapStoreRemoveService: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.MapStoreRemoveServicePayload, string>;
|
|
24
|
+
fetchInitialServices: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.FetchInitialServicesPayload, string>;
|
|
24
25
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetMapPresetPayload, string>;
|
|
25
26
|
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetMapDimensionPayload, string>;
|
|
26
27
|
registerMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
@@ -39,7 +40,15 @@ export declare const mapActions: {
|
|
|
39
40
|
setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAnimationEndTimePayload, string>;
|
|
40
41
|
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAnimationDelayPayload, string>;
|
|
41
42
|
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.MoveLayerPayload, string>;
|
|
42
|
-
|
|
43
|
+
setAutoLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetAutoLayerIdPayload, string>;
|
|
44
|
+
setAutoTimestepLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
45
|
+
mapId: string;
|
|
46
|
+
autoTimestepLayerId: string | undefined;
|
|
47
|
+
}, string>;
|
|
48
|
+
setAutoUpdateLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
49
|
+
mapId: string;
|
|
50
|
+
autoUpdateLayerId: string | undefined;
|
|
51
|
+
}, string>;
|
|
43
52
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderCenterTimePayload, string>;
|
|
44
53
|
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderUnfilteredSelectedTimePayload, string>;
|
|
45
54
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetTimeSliderSecondsPerPxPayload, string>;
|
|
@@ -74,7 +83,7 @@ export declare const mapActions: {
|
|
|
74
83
|
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.UpdateLayerInfoPayload, string>;
|
|
75
84
|
setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<mapTypes.SetSelectedFeaturePayload, string>;
|
|
76
85
|
};
|
|
77
|
-
export { mapSelectors, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, snackbarActions, appActions, layerSelectors, routerActions, };
|
|
86
|
+
export { mapSelectors, mapTypes, mapUtils, layerTypes, layerReducer, layerActions, uiActions, uiSelectors, uiTypes, genericActions as syncGroupActions, snackbarActions, appActions, layerSelectors, routerActions, genericSelectors, };
|
|
78
87
|
export { synchronizationGroupConfig as synchronizationGroupModuleConfig };
|
|
79
88
|
export * from './components/ComponentsLookUp';
|
|
80
89
|
export * from './components/ConfigurableMap';
|
|
@@ -8,7 +8,7 @@ export declare function layerActionsSaga({ payload, type, }: LayerActions): Saga
|
|
|
8
8
|
export declare function addLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.addLayer>): SagaIterator;
|
|
9
9
|
export declare function deleteLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|
|
10
10
|
export declare function moveLayerActionsSaga({ payload, type, }: ReturnType<typeof mapActions.layerMoveLayer>): SagaIterator;
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function setAutoLayerIdActionsSaga({ payload, type, }: ReturnType<typeof mapActions.setAutoLayerId>): SagaIterator;
|
|
12
12
|
export declare function mapBaseLayerActionsSaga({ payload, type, }: ReturnType<typeof layerActions.setBaseLayers>): SagaIterator;
|
|
13
13
|
export declare function rootSaga(): SagaIterator;
|
|
14
14
|
export default rootSaga;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AddLayerPayload, DeleteLayerPayload, MapActionOrigin, MoveLayerPayload,
|
|
1
|
+
import { AddLayerPayload, DeleteLayerPayload, MapActionOrigin, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload, SetLayerStylePayload } from '../mapStore/types';
|
|
2
2
|
export interface SetTimePayload {
|
|
3
3
|
sourceId: string;
|
|
4
4
|
origin: string;
|
|
@@ -17,5 +17,5 @@ export interface SetBboxPayload {
|
|
|
17
17
|
mapId?: string;
|
|
18
18
|
}
|
|
19
19
|
export declare type GenericActionPayload = SetBboxPayload | SetTimePayload;
|
|
20
|
-
export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload |
|
|
20
|
+
export declare type LayerActionPayloadsWithLayerIds = SetLayerOpacityPayload | SetLayerNamePayload | SetLayerEnabledPayload | SetLayerDimensionPayload | SetLayerStylePayload | SetAutoLayerIdPayload;
|
|
21
21
|
export declare type SyncLayerPayloads = LayerActionPayloadsWithLayerIds | AddLayerPayload | MoveLayerPayload | DeleteLayerPayload | SetBaseLayersPayload;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
2
|
+
import { DisableActiveServicePayload, EnableActiveServicePayload, EnableOnlyOneKeywordPayload, LayerSelectRemoveServicePayload, LayerSelectStoreType, SetAllServicesEnabledPayload, SetActiveLayerInfoPayload, SetSearchFilterPayload, ToggleKeywordsPayload, Filter, ActiveServiceObject, ToggleServicePopupPayload, ServicePopupObject } from './types';
|
|
3
3
|
export declare const layerSelectFilterAdapter: import("@reduxjs/toolkit").EntityAdapter<Filter>;
|
|
4
4
|
export declare const layerSelectActiveServicesAdapter: import("@reduxjs/toolkit").EntityAdapter<ActiveServiceObject>;
|
|
5
5
|
export declare const initialServicePopupState: ServicePopupObject;
|
|
@@ -10,7 +10,6 @@ export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerA
|
|
|
10
10
|
setAllServicesEnabled: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetAllServicesEnabledPayload>) => void;
|
|
11
11
|
closeServicePopupOpen: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>) => void;
|
|
12
12
|
toggleServicePopup: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<ToggleServicePopupPayload>) => void;
|
|
13
|
-
addFiltersAndActiveServices: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<AddKeywordsAndActiveServicesPayload>) => void;
|
|
14
13
|
layerSelectRemoveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<LayerSelectRemoveServicePayload>) => void;
|
|
15
14
|
enableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableActiveServicePayload>) => void;
|
|
16
15
|
disableActiveService: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<DisableActiveServicePayload>) => void;
|
|
@@ -18,4 +17,4 @@ export declare const layerSelectActions: import("@reduxjs/toolkit").CaseReducerA
|
|
|
18
17
|
enableOnlyOneFilter: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<EnableOnlyOneKeywordPayload>) => void;
|
|
19
18
|
setActiveLayerInfo: (draft: import("immer/dist/internal").WritableDraft<LayerSelectStoreType>, action: PayloadAction<SetActiveLayerInfoPayload>) => void;
|
|
20
19
|
}>;
|
|
21
|
-
export declare type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.
|
|
20
|
+
export declare type LayerSelectActions = ReturnType<typeof layerSelectActions.setSearchFilter> | ReturnType<typeof layerSelectActions.layerSelectRemoveService> | ReturnType<typeof layerSelectActions.enableActiveService> | ReturnType<typeof layerSelectActions.disableActiveService> | ReturnType<typeof layerSelectActions.toggleFilter> | ReturnType<typeof layerSelectActions.enableOnlyOneFilter> | ReturnType<typeof layerSelectActions.setActiveLayerInfo>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { serviceActions
|
|
2
|
+
import { serviceActions } from '../mapStore/service/reducer';
|
|
3
3
|
import { layerSelectActions, LayerSelectActions } from './reducer';
|
|
4
4
|
import { uiActions } from '../ui';
|
|
5
|
-
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
6
5
|
export declare function layerSelectCloseInfoDialogSaga({ type, payload, }: ReturnType<typeof uiActions.setToggleOpenDialog | typeof uiActions.setActiveMapIdForDialog | typeof layerSelectActions.disableActiveService | typeof layerSelectActions.toggleFilter | typeof layerSelectActions.setSearchFilter>): SagaIterator;
|
|
7
6
|
export declare function layerSelectRemoveServiceSaga(capturedAction: LayerSelectActions): SagaIterator;
|
|
8
7
|
export declare function addServiceToLocalStorageSaga({ payload, }: ReturnType<typeof serviceActions.serviceSetLayers>): void;
|
|
@@ -69,16 +69,6 @@ export interface DisableActiveServicePayload {
|
|
|
69
69
|
serviceId: string;
|
|
70
70
|
filters: string[];
|
|
71
71
|
}
|
|
72
|
-
export interface AddKeywordsAndActiveServicesPayload {
|
|
73
|
-
serviceId: string;
|
|
74
|
-
serviceName: string;
|
|
75
|
-
serviceUrl: string;
|
|
76
|
-
abstract?: string;
|
|
77
|
-
keywords: string[];
|
|
78
|
-
scope: ServiceScope;
|
|
79
|
-
groups: string[];
|
|
80
|
-
isLoading?: boolean;
|
|
81
|
-
}
|
|
82
72
|
export interface LayerSelectRemoveServicePayload {
|
|
83
73
|
serviceId: string;
|
|
84
74
|
serviceUrl?: string;
|
|
@@ -24,7 +24,7 @@ export declare const getLayersById: ((state: {
|
|
|
24
24
|
services?: import("../types").ServiceState | undefined;
|
|
25
25
|
layers?: LayerState | undefined;
|
|
26
26
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
27
|
-
}) => Record<string, ReduxLayer> | null) & import("reselect").OutputSelectorFields<((args_0: LayerState) => Record<string, ReduxLayer> | null) & {
|
|
27
|
+
}) => Record<string, ReduxLayer> | null) & import("reselect").OutputSelectorFields<((args_0: LayerState | undefined) => Record<string, ReduxLayer> | null) & {
|
|
28
28
|
clearCache: () => void;
|
|
29
29
|
}> & {
|
|
30
30
|
clearCache: () => void;
|
|
@@ -43,7 +43,7 @@ export declare const getLayersIds: ((state: {
|
|
|
43
43
|
services?: import("../types").ServiceState | undefined;
|
|
44
44
|
layers?: LayerState | undefined;
|
|
45
45
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
46
|
-
}) => string[]) & import("reselect").OutputSelectorFields<((args_0: LayerState) => string[]) & {
|
|
46
|
+
}) => string[]) & import("reselect").OutputSelectorFields<((args_0: LayerState | undefined) => string[]) & {
|
|
47
47
|
clearCache: () => void;
|
|
48
48
|
}> & {
|
|
49
49
|
clearCache: () => void;
|
|
@@ -360,7 +360,7 @@ export declare const getAvailableBaseLayersForMap: ((state: {
|
|
|
360
360
|
services?: import("../types").ServiceState | undefined;
|
|
361
361
|
layers?: LayerState | undefined;
|
|
362
362
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
363
|
-
}, params_0: string) => Layer[]) & import("reselect").OutputSelectorFields<((args_0: LayerState, args_1: string) => Layer[]) & {
|
|
363
|
+
}, params_0: string) => Layer[]) & import("reselect").OutputSelectorFields<((args_0: LayerState | undefined, args_1: string) => Layer[]) & {
|
|
364
364
|
clearCache: () => void;
|
|
365
365
|
}> & {
|
|
366
366
|
clearCache: () => void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Action } from '@reduxjs/toolkit';
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
|
+
import { CustomDate } from '@opengeoweb/webmap';
|
|
3
4
|
import type { Dimension, UpdateAllMapDimensionsPayload } from '../map/types';
|
|
4
5
|
import type { SetLayersForServicePayload } from '../types';
|
|
5
6
|
import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
|
|
@@ -11,7 +12,7 @@ export interface WMJSDimension {
|
|
|
11
12
|
name: string;
|
|
12
13
|
currentValue: string;
|
|
13
14
|
getIndexForValue: (currentValue: string, outSideOfRangeFlag?: boolean) => number;
|
|
14
|
-
getValueForIndex: (index: number) => string;
|
|
15
|
+
getValueForIndex: (index: number) => string | CustomDate;
|
|
15
16
|
size: () => number;
|
|
16
17
|
linked: boolean;
|
|
17
18
|
values?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { WebMapState,
|
|
2
|
+
import { WebMapState, SetAutoLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSliderHoverPayload, MapPinLocationPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, UpdateAllMapDimensionsPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize } from './types';
|
|
3
3
|
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload, SetTimeSliderUnfilteredSelectedTimePayload } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the layer id is already taken in one of the maps.
|
|
@@ -32,7 +32,21 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
32
32
|
setAnimationEndTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAnimationEndTimePayload>) => void;
|
|
33
33
|
setAnimationDelay: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAnimationDelayPayload>) => void;
|
|
34
34
|
layerMoveLayer: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MoveLayerPayload>) => void;
|
|
35
|
-
|
|
35
|
+
setAutoLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetAutoLayerIdPayload>) => void;
|
|
36
|
+
setAutoTimestepLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: {
|
|
37
|
+
payload: {
|
|
38
|
+
mapId: string;
|
|
39
|
+
autoTimestepLayerId: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
type: string;
|
|
42
|
+
}) => void;
|
|
43
|
+
setAutoUpdateLayerId: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: {
|
|
44
|
+
payload: {
|
|
45
|
+
mapId: string;
|
|
46
|
+
autoUpdateLayerId: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
type: string;
|
|
49
|
+
}) => void;
|
|
36
50
|
setTimeSliderCenterTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderCenterTimePayload>) => void;
|
|
37
51
|
setTimeSliderUnfilteredSelectedTime: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderUnfilteredSelectedTimePayload>) => void;
|
|
38
52
|
setTimeSliderSecondsPerPx: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetTimeSliderSecondsPerPxPayload>) => void;
|
|
@@ -67,7 +81,15 @@ export declare const mapActions: {
|
|
|
67
81
|
setAnimationEndTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationEndTimePayload, string>;
|
|
68
82
|
setAnimationDelay: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAnimationDelayPayload, string>;
|
|
69
83
|
layerMoveLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<MoveLayerPayload, string>;
|
|
70
|
-
|
|
84
|
+
setAutoLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetAutoLayerIdPayload, string>;
|
|
85
|
+
setAutoTimestepLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
86
|
+
mapId: string;
|
|
87
|
+
autoTimestepLayerId: string | undefined;
|
|
88
|
+
}, string>;
|
|
89
|
+
setAutoUpdateLayerId: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
90
|
+
mapId: string;
|
|
91
|
+
autoUpdateLayerId: string | undefined;
|
|
92
|
+
}, string>;
|
|
71
93
|
setTimeSliderCenterTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderCenterTimePayload, string>;
|
|
72
94
|
setTimeSliderUnfilteredSelectedTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderUnfilteredSelectedTimePayload, string>;
|
|
73
95
|
setTimeSliderSecondsPerPx: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetTimeSliderSecondsPerPxPayload, string>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
|
+
import { AnimationList } from '@opengeoweb/webmap';
|
|
3
4
|
import { mapActions } from '.';
|
|
4
5
|
import { layerActions } from '../layers';
|
|
5
6
|
import { Layer } from '../layers/types';
|
|
@@ -9,7 +10,7 @@ export declare const generateTimeList: (start: Moment, end: Moment, interval: nu
|
|
|
9
10
|
}[];
|
|
10
11
|
export declare const getAnimationEndTime: (animationEndTime: string) => string;
|
|
11
12
|
export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
|
|
12
|
-
export declare function updateMapDraw(mapId: string, draw:
|
|
13
|
+
export declare function updateMapDraw(mapId: string, draw: string | AnimationList[] | undefined): void;
|
|
13
14
|
export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
|
|
14
15
|
export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
|
|
15
16
|
export declare function deleteLayerSaga({ payload, }: ReturnType<typeof layerActions.layerDelete>): SagaIterator;
|