@opengeoweb/store 6.0.4 → 6.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/index.esm.js +847 -428
- package/package.json +3 -2
- package/src/store/coreModuleConfig.d.ts +1 -1
- package/src/store/drawingtool/config.d.ts +4 -0
- package/src/store/drawingtool/index.d.ts +4 -0
- package/src/store/drawingtool/reducer.d.ts +33 -0
- package/src/store/drawingtool/reducer.spec.d.ts +21 -0
- package/src/store/drawingtool/sagas.d.ts +6 -0
- package/src/store/drawingtool/sagas.spec.d.ts +1 -0
- package/src/store/drawingtool/selectors.d.ts +8 -0
- package/src/store/drawingtool/selectors.spec.d.ts +1 -0
- package/src/store/drawingtool/testUtils.d.ts +1 -0
- package/src/store/generic/synchronizationGroups/selectors.d.ts +3 -1
- package/src/store/generic/synchronizationGroups/types.d.ts +2 -0
- package/src/store/generic/types.d.ts +2 -1
- package/src/store/index.d.ts +1 -0
- package/src/store/layerSelect/types.d.ts +1 -0
- package/src/store/mapStore/index.d.ts +11 -7
- package/src/store/mapStore/layers/reducer.d.ts +10 -1
- package/src/store/mapStore/layers/selectors.d.ts +43 -4
- package/src/store/mapStore/layers/types.d.ts +25 -36
- package/src/store/mapStore/layers/utils.d.ts +6 -0
- package/src/store/mapStore/map/actions.d.ts +2 -1
- package/src/store/mapStore/map/index.d.ts +1 -1
- package/src/store/mapStore/map/reducer.d.ts +3 -2
- package/src/store/mapStore/map/selectors.d.ts +14 -9
- package/src/store/mapStore/map/types.d.ts +1 -23
- package/src/store/mapStore/storeTestUtils.d.ts +3 -1
- package/src/store/types.d.ts +2 -1
- package/src/store/mapStore/map/defaultLayers.d.ts +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/store",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "GeoWeb Store library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"main": "./index.esm.js",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@opengeoweb/webmap": "6.
|
|
15
|
+
"@opengeoweb/webmap": "6.1.1",
|
|
16
|
+
"@opengeoweb/webmap-react": "6.1.1",
|
|
16
17
|
"@redux-eggs/core": "2.2.0",
|
|
17
18
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
18
19
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./layerSelect/types").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawings/types").DrawModuleStore, import("redux").AnyAction>>)[];
|
|
1
|
+
export declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./layerSelect/types").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawings/types").DrawModuleStore, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./drawingtool").DrawtoolModuleStore, import("redux").AnyAction>>)[];
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { PayloadAction, Draft, EntityState } from '@reduxjs/toolkit';
|
|
2
|
+
export type DrawMode = {
|
|
3
|
+
drawModeId: string;
|
|
4
|
+
value: 'POLYGON' | 'BOX' | 'MULTIPOINT' | 'POINT' | 'LINESTRING' | 'DELETE';
|
|
5
|
+
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
6
|
+
title: string;
|
|
7
|
+
isSelectable: boolean;
|
|
8
|
+
};
|
|
9
|
+
export interface DrawToolItem {
|
|
10
|
+
drawToolId: string;
|
|
11
|
+
geoJSONLayerId: string;
|
|
12
|
+
activeDrawModeId: string;
|
|
13
|
+
drawModes: DrawMode[];
|
|
14
|
+
}
|
|
15
|
+
export type DrawingToolState = EntityState<DrawToolItem>;
|
|
16
|
+
export interface DrawtoolModuleStore {
|
|
17
|
+
drawingtools?: DrawingToolState;
|
|
18
|
+
}
|
|
19
|
+
export declare const drawAdapter: import("@reduxjs/toolkit").EntityAdapter<DrawToolItem>;
|
|
20
|
+
export declare const getDrawLayerId: (drawToolId: string) => string;
|
|
21
|
+
export declare const initialState: DrawingToolState;
|
|
22
|
+
export declare const reducer: import("redux").Reducer<DrawingToolState, import("redux").AnyAction>;
|
|
23
|
+
export declare const drawtoolActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
24
|
+
registerDrawTool: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
25
|
+
mapId: string;
|
|
26
|
+
drawModes: DrawMode[];
|
|
27
|
+
drawToolId: string;
|
|
28
|
+
}>) => void;
|
|
29
|
+
changeDrawToolMode: (draft: Draft<DrawingToolState>, action: PayloadAction<{
|
|
30
|
+
drawToolId: string;
|
|
31
|
+
drawModeId: string;
|
|
32
|
+
}>) => void;
|
|
33
|
+
}, "draw">;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const testDefaultPoint: {
|
|
2
|
+
drawModeId: string;
|
|
3
|
+
value: "POINT";
|
|
4
|
+
title: string;
|
|
5
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
6
|
+
isSelectable: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const testDefaultPolygon: {
|
|
9
|
+
drawModeId: string;
|
|
10
|
+
value: "POLYGON";
|
|
11
|
+
title: string;
|
|
12
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
13
|
+
isSelectable: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare const testDefaultDelete: {
|
|
16
|
+
drawModeId: string;
|
|
17
|
+
value: "DELETE";
|
|
18
|
+
title: string;
|
|
19
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
20
|
+
isSelectable: boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SagaIterator } from 'redux-saga';
|
|
2
|
+
import { drawtoolActions } from './reducer';
|
|
3
|
+
export declare function registerDrawToolSaga({ payload, }: ReturnType<typeof drawtoolActions.registerDrawTool>): SagaIterator;
|
|
4
|
+
export declare function changeDrawToolSaga({ payload, }: ReturnType<typeof drawtoolActions.changeDrawToolMode>): SagaIterator;
|
|
5
|
+
declare function drawingSaga(): SagaIterator;
|
|
6
|
+
export default drawingSaga;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { DrawingToolState, DrawtoolModuleStore } from './reducer';
|
|
2
|
+
export declare const getDrawingtoolStore: (store: DrawtoolModuleStore) => DrawingToolState;
|
|
3
|
+
export declare const selectDrawingToolByMapId: (state: DrawtoolModuleStore, id: import("@reduxjs/toolkit").EntityId) => import("./reducer").DrawToolItem | undefined;
|
|
4
|
+
export declare const getDrawModeById: ((state: DrawtoolModuleStore, _drawToolId: string, drawModeId: string) => import("./reducer").DrawMode | undefined) & import("reselect").OutputSelectorFields<(args_0: import("./reducer").DrawToolItem | undefined, args_1: string) => import("./reducer").DrawMode | undefined, {
|
|
5
|
+
clearCache: () => void;
|
|
6
|
+
}> & {
|
|
7
|
+
clearCache: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const testGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -19,7 +19,9 @@ export declare const getSynchronizationGroup: (state: CoreAppStore, id: string)
|
|
|
19
19
|
export declare const getSynchronizationGroupSource: (state: CoreAppStore, id: string) => SynchronizationSource;
|
|
20
20
|
export declare const getTargets: (state: CoreAppStore, payload: GenericActionPayload, actionType: SyncType) => GenericSyncActionPayload[];
|
|
21
21
|
export declare const getTargetGroups: (state: CoreAppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
|
|
22
|
-
export declare const getAllTargetGroupsForSource: ((state:
|
|
22
|
+
export declare const getAllTargetGroupsForSource: ((state: CoreAppStore, sourceId: string | {
|
|
23
|
+
sourceId: string;
|
|
24
|
+
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState, args_1: string) => string[], {
|
|
23
25
|
clearCache: () => void;
|
|
24
26
|
}> & {
|
|
25
27
|
clearCache: () => void;
|
|
@@ -16,6 +16,7 @@ export interface SyncGroupViewState {
|
|
|
16
16
|
timeslider: GroupsAndSources;
|
|
17
17
|
zoompane: GroupsAndSources;
|
|
18
18
|
level: GroupsAndSources;
|
|
19
|
+
[key: string]: GroupsAndSources;
|
|
19
20
|
}
|
|
20
21
|
export interface SynchronizationGroup {
|
|
21
22
|
type: SyncType;
|
|
@@ -63,6 +64,7 @@ export interface SyncGroupTarget {
|
|
|
63
64
|
groupId: string;
|
|
64
65
|
targetId: string;
|
|
65
66
|
linked?: boolean;
|
|
67
|
+
[key: string]: unknown;
|
|
66
68
|
}
|
|
67
69
|
export interface SyncGroupAddTargetPayload extends SyncGroupTarget {
|
|
68
70
|
origin?: Origin;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { SetLayerStylePayload } from '@opengeoweb/webmap-react';
|
|
1
2
|
import { MapActionOrigin } from '../mapStore/map/enums';
|
|
2
|
-
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload
|
|
3
|
+
import type { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetAutoLayerIdPayload, SetBaseLayersPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerNamePayload, SetLayerOpacityPayload } from '../mapStore/types';
|
|
3
4
|
export interface SetTimePayload {
|
|
4
5
|
sourceId: string;
|
|
5
6
|
origin: string;
|
package/src/store/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export * from './snackbar';
|
|
|
6
6
|
export * from './router';
|
|
7
7
|
export * from './app';
|
|
8
8
|
export * from './drawings';
|
|
9
|
+
export * from './drawingtool';
|
|
9
10
|
export * from './types';
|
|
10
11
|
export * as storeTestUtils from './mapStore/storeTestUtils';
|
|
11
12
|
export * from './coreModuleConfig';
|
|
@@ -3,15 +3,15 @@ export declare const mapStoreActions: {
|
|
|
3
3
|
mapStoreRemoveService: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").MapStoreRemoveServicePayload, "serviceReducer/mapStoreRemoveService">;
|
|
4
4
|
fetchInitialServices: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").FetchInitialServicesPayload, "serviceReducer/fetchInitialServices">;
|
|
5
5
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
|
|
6
|
-
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
6
|
+
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetMapDimensionPayload, string>;
|
|
7
7
|
registerMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
8
8
|
mapId: string;
|
|
9
9
|
}, "mapReducer/registerMap">;
|
|
10
10
|
unregisterMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
11
11
|
mapId: string;
|
|
12
12
|
}, "mapReducer/unregisterMap">;
|
|
13
|
-
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
14
|
-
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
13
|
+
setBbox: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetBboxPayload, "mapReducer/setBbox">;
|
|
14
|
+
mapUpdateAllMapDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").UpdateAllMapDimensionsPayload, "mapReducer/mapUpdateAllMapDimensions">;
|
|
15
15
|
mapStartAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapAnimationStartPayload, "mapReducer/mapStartAnimation">;
|
|
16
16
|
mapStopAnimation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapAnimationStopPayload, "mapReducer/mapStopAnimation">;
|
|
17
17
|
setTimeSliderSpan: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetTimeSliderSpanPayload, "mapReducer/setTimeSliderSpan">;
|
|
@@ -40,7 +40,7 @@ export declare const mapStoreActions: {
|
|
|
40
40
|
toggleTimeSliderHover: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleTimeSliderHoverPayload, "mapReducer/toggleTimeSliderHover">;
|
|
41
41
|
toggleTimeSliderIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleTimeSliderIsVisiblePayload, "mapReducer/toggleTimeSliderIsVisible">;
|
|
42
42
|
toggleZoomControls: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleZoomControlsPayload, "mapReducer/toggleZoomControls">;
|
|
43
|
-
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
43
|
+
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").MapPinLocationPayload, "mapReducer/setMapPinLocation">;
|
|
44
44
|
setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").DisableMapPinPayload, "mapReducer/setDisableMapPin">;
|
|
45
45
|
toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleMapPinIsVisiblePayload, "mapReducer/toggleMapPinIsVisible">;
|
|
46
46
|
setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetDockedLayerManagerSize, "mapReducer/setDockedLayerManagerSize">;
|
|
@@ -48,7 +48,7 @@ export declare const mapStoreActions: {
|
|
|
48
48
|
layerChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerDimensionPayload, "layerReducer/layerChangeDimension">;
|
|
49
49
|
layerChangeEnabled: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerEnabledPayload, "layerReducer/layerChangeEnabled">;
|
|
50
50
|
layerChangeOpacity: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayerOpacityPayload, "layerReducer/layerChangeOpacity">;
|
|
51
|
-
layerChangeStyle: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
51
|
+
layerChangeStyle: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetLayerStylePayload, "layerReducer/layerChangeStyle">;
|
|
52
52
|
layerChangeAcceptanceTime: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
53
53
|
layerId: string;
|
|
54
54
|
acceptanceTime: number | undefined;
|
|
@@ -61,12 +61,16 @@ export declare const mapStoreActions: {
|
|
|
61
61
|
setLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetLayersPayload, "layerReducer/setLayers">;
|
|
62
62
|
setBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetBaseLayersPayload, "layerReducer/setBaseLayers">;
|
|
63
63
|
addBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddBaseLayerPayload, "layerReducer/addBaseLayer">;
|
|
64
|
-
layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
64
|
+
layerSetDimensions: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").SetLayerDimensionsPayload, "layerReducer/layerSetDimensions">;
|
|
65
65
|
addAvailableBaseLayer: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddAvailableBaseLayerPayload, "layerReducer/addAvailableBaseLayer">;
|
|
66
66
|
addAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").AddAvailableBaseLayersPayload, "layerReducer/addAvailableBaseLayers">;
|
|
67
67
|
setAvailableBaseLayers: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetAvailableBaseLayersPayload, "layerReducer/setAvailableBaseLayers">;
|
|
68
|
-
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
68
|
+
onUpdateLayerInformation: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("dist/libs/webmap-react/src").UpdateLayerInfoPayload, "layerReducer/onUpdateLayerInformation">;
|
|
69
69
|
setSelectedFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetSelectedFeaturePayload, "layerReducer/setSelectedFeature">;
|
|
70
|
+
updateFeature: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePayload, "layerReducer/updateFeature">;
|
|
71
|
+
updateFeatureProperties: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").UpdateFeaturePropertiesPayload, "layerReducer/updateFeatureProperties">;
|
|
72
|
+
toggleFeatureMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ToggleFeatureModePayload, "layerReducer/toggleFeatureMode">;
|
|
73
|
+
exitFeatureDrawMode: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").ExitFeatureDrawModePayload, "layerReducer/exitFeatureDrawMode">;
|
|
70
74
|
};
|
|
71
75
|
export * from './service';
|
|
72
76
|
export * from './map';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Draft, PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import {
|
|
2
|
+
import { SetLayerDimensionsPayload, SetLayerStylePayload, UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
3
|
+
import { LayerState, Layer, AddLayerPayload, SetLayerDimensionPayload, SetLayerEnabledPayload, SetLayerOpacityPayload, SetLayerNamePayload, SetLayerGeojsonPayload, DeleteLayerPayload, ErrorLayerPayload, SetLayersPayload, SetBaseLayersPayload, AddBaseLayerPayload, AddAvailableBaseLayerPayload, AddAvailableBaseLayersPayload, SetAvailableBaseLayersPayload, SetSelectedFeaturePayload, UpdateFeaturePayload, ExitFeatureDrawModePayload, ToggleFeatureModePayload, UpdateFeaturePropertiesPayload } from './types';
|
|
3
4
|
export declare const createLayer: ({ id, opacity, acceptanceTimeInMinutes, enabled, layerType, status, ...props }: Layer) => Layer;
|
|
4
5
|
export declare const initialState: LayerState;
|
|
5
6
|
export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
@@ -26,6 +27,10 @@ export declare const slice: import("@reduxjs/toolkit").Slice<LayerState, {
|
|
|
26
27
|
setAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
|
|
27
28
|
onUpdateLayerInformation: (draft: Draft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => void;
|
|
28
29
|
setSelectedFeature: (draft: Draft<LayerState>, action: PayloadAction<SetSelectedFeaturePayload>) => void;
|
|
30
|
+
updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
|
|
31
|
+
updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
|
|
32
|
+
toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
|
|
33
|
+
exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
|
|
29
34
|
}, "layerReducer">;
|
|
30
35
|
export declare const reducer: import("redux").Reducer<LayerState, import("redux").AnyAction>;
|
|
31
36
|
export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions<{
|
|
@@ -52,5 +57,9 @@ export declare const layerActions: import("@reduxjs/toolkit").CaseReducerActions
|
|
|
52
57
|
setAvailableBaseLayers: (draft: Draft<LayerState>, action: PayloadAction<SetAvailableBaseLayersPayload>) => void;
|
|
53
58
|
onUpdateLayerInformation: (draft: Draft<LayerState>, action: PayloadAction<UpdateLayerInfoPayload>) => void;
|
|
54
59
|
setSelectedFeature: (draft: Draft<LayerState>, action: PayloadAction<SetSelectedFeaturePayload>) => void;
|
|
60
|
+
updateFeature: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePayload>) => void;
|
|
61
|
+
updateFeatureProperties: (draft: Draft<LayerState>, action: PayloadAction<UpdateFeaturePropertiesPayload>) => void;
|
|
62
|
+
toggleFeatureMode: (draft: Draft<LayerState>, action: PayloadAction<ToggleFeatureModePayload>) => void;
|
|
63
|
+
exitFeatureDrawMode: (draft: Draft<LayerState>, action: PayloadAction<ExitFeatureDrawModePayload>) => void;
|
|
55
64
|
}, "layerReducer">;
|
|
56
65
|
export type LayerActions = ReturnType<typeof layerActions.layerSetDimensions> | ReturnType<typeof layerActions.layerChangeStyle> | ReturnType<typeof layerActions.addAvailableBaseLayer> | ReturnType<typeof layerActions.addAvailableBaseLayers> | ReturnType<typeof layerActions.addBaseLayer> | ReturnType<typeof layerActions.addLayer> | ReturnType<typeof layerActions.baseLayerDelete> | ReturnType<typeof layerActions.onUpdateLayerInformation> | ReturnType<typeof layerActions.layerChangeDimension> | ReturnType<typeof layerActions.layerChangeEnabled> | ReturnType<typeof layerActions.layerChangeGeojson> | ReturnType<typeof layerActions.layerChangeName> | ReturnType<typeof layerActions.layerChangeOpacity> | ReturnType<typeof layerActions.layerDelete> | ReturnType<typeof layerActions.layerError> | ReturnType<typeof layerActions.setBaseLayers> | ReturnType<typeof layerActions.setLayers>;
|
|
@@ -54,7 +54,7 @@ export declare const getAllLayers: ((state: CoreAppStore) => ReduxLayer[]) & imp
|
|
|
54
54
|
* @param {string} mapId mapId: string - mapId
|
|
55
55
|
* @returns {array} returnType: ReduxLayer[] - an array of all layers containing layer information (service, name, style, enabled etc.)
|
|
56
56
|
*/
|
|
57
|
-
export declare const getLayersByMapId: ((state:
|
|
57
|
+
export declare const getLayersByMapId: ((state: CoreAppStore, _mapId: string) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[], args_1: string) => ReduxLayer[], {
|
|
58
58
|
clearCache: () => void;
|
|
59
59
|
}> & {
|
|
60
60
|
clearCache: () => void;
|
|
@@ -95,6 +95,18 @@ export declare const getOverLayers: ((state: CoreAppStore) => ReduxLayer[]) & im
|
|
|
95
95
|
}> & {
|
|
96
96
|
clearCache: () => void;
|
|
97
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* Retrieves all featureLayers
|
|
100
|
+
*
|
|
101
|
+
* Example: layers = getFeatureLayers(store)
|
|
102
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
103
|
+
* @returns {array} returnType: array - an array of all featureLayers
|
|
104
|
+
*/
|
|
105
|
+
export declare const getFeatureLayers: ((state: CoreAppStore) => ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: ReduxLayer[]) => ReduxLayer[], {
|
|
106
|
+
clearCache: () => void;
|
|
107
|
+
}> & {
|
|
108
|
+
clearCache: () => void;
|
|
109
|
+
};
|
|
98
110
|
/**
|
|
99
111
|
* Gets dimensions of the passed layer
|
|
100
112
|
*
|
|
@@ -148,7 +160,7 @@ export declare const getLayerCurrentTime: ((state: CoreAppStore, layerId?: strin
|
|
|
148
160
|
* @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
|
|
149
161
|
* @returns {object} returnType: object - object of layer dimension
|
|
150
162
|
*/
|
|
151
|
-
export declare const getLayerDimension: ((state:
|
|
163
|
+
export declare const getLayerDimension: ((state: CoreAppStore, _layerId: string, dimensionName: string) => Dimension) & import("reselect").OutputSelectorFields<(args_0: Dimension[], args_1: string) => Dimension, {
|
|
152
164
|
clearCache: () => void;
|
|
153
165
|
}> & {
|
|
154
166
|
clearCache: () => void;
|
|
@@ -239,7 +251,7 @@ export declare const getLayerStatus: ((state: CoreAppStore, layerId?: string | u
|
|
|
239
251
|
* @param {string} mapId mapId: string - Id of the map we want to retrieve the available baselayers for
|
|
240
252
|
* @returns {array} returnType: array - array containing all available base layers
|
|
241
253
|
*/
|
|
242
|
-
export declare const getAvailableBaseLayersForMap: ((state:
|
|
254
|
+
export declare const getAvailableBaseLayersForMap: ((state: CoreAppStore, _mapId: string) => Layer[]) & import("reselect").OutputSelectorFields<(args_0: LayerState | undefined, args_1: string) => Layer[], {
|
|
243
255
|
clearCache: () => void;
|
|
244
256
|
}> & {
|
|
245
257
|
clearCache: () => void;
|
|
@@ -257,6 +269,33 @@ export declare const getSelectedFeatureIndex: ((state: CoreAppStore, layerId?: s
|
|
|
257
269
|
}> & {
|
|
258
270
|
clearCache: () => void;
|
|
259
271
|
};
|
|
272
|
+
/**
|
|
273
|
+
* Returns the layer is in edit mode
|
|
274
|
+
*
|
|
275
|
+
* Example const isLayerInEditMode = getIsLayerInEditMode(store, 'layerId1')
|
|
276
|
+
* @param {object} store store: object - store object
|
|
277
|
+
* @param {string} mapId layerId: string - Id of the layer
|
|
278
|
+
* @returns {number} isLayerInEditMode: boolean - isInEditMode
|
|
279
|
+
*/
|
|
280
|
+
export declare const getIsLayerInEditMode: ((state: CoreAppStore, layerId?: string | undefined) => boolean) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => boolean, {
|
|
281
|
+
clearCache: () => void;
|
|
282
|
+
}> & {
|
|
283
|
+
clearCache: () => void;
|
|
284
|
+
};
|
|
285
|
+
export declare const getFeatureLayerGeoJSON: ((state: CoreAppStore, layerId?: string | undefined) => import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties> | undefined) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties> | undefined, {
|
|
286
|
+
clearCache: () => void;
|
|
287
|
+
}> & {
|
|
288
|
+
clearCache: () => void;
|
|
289
|
+
};
|
|
290
|
+
export declare const getFeatureLayerGeoJSONProperties: ((state: CoreAppStore, layerId?: string | undefined) => {
|
|
291
|
+
[name: string]: any;
|
|
292
|
+
}) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => {
|
|
293
|
+
[name: string]: any;
|
|
294
|
+
}, {
|
|
295
|
+
clearCache: () => void;
|
|
296
|
+
}> & {
|
|
297
|
+
clearCache: () => void;
|
|
298
|
+
};
|
|
260
299
|
/**
|
|
261
300
|
* Gets layerIds that contain passed dimension
|
|
262
301
|
*
|
|
@@ -265,7 +304,7 @@ export declare const getSelectedFeatureIndex: ((state: CoreAppStore, layerId?: s
|
|
|
265
304
|
* @param {string} dimensionName dimensionName: string - name of dimension you want to retrieve the dimension data for
|
|
266
305
|
* @returns {string[]} returnType: string[] - layerIds
|
|
267
306
|
*/
|
|
268
|
-
export declare const getDimensionLayerIds: ((state:
|
|
307
|
+
export declare const getDimensionLayerIds: ((state: CoreAppStore, dimensionName: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: Record<string, ReduxLayer> | null, args_2: string) => string[], {
|
|
269
308
|
clearCache: () => void;
|
|
270
309
|
}> & {
|
|
271
310
|
clearCache: () => void;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { Action } from '@reduxjs/toolkit';
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
|
-
import
|
|
3
|
+
import { LayerFoundation } from '@opengeoweb/webmap';
|
|
4
|
+
import { UpdateLayerInfoPayload } from '@opengeoweb/webmap-react';
|
|
5
|
+
import type { Dimension } from '../map/types';
|
|
4
6
|
import type { SyncGroupActionOrigin } from '../../generic/synchronizationGroups/types';
|
|
5
|
-
export declare enum LayerType {
|
|
6
|
-
mapLayer = "mapLayer",
|
|
7
|
-
baseLayer = "baseLayer",
|
|
8
|
-
overLayer = "overLayer"
|
|
9
|
-
}
|
|
10
7
|
export declare enum LayerStatus {
|
|
11
8
|
default = "default",
|
|
12
9
|
error = "error"
|
|
@@ -19,27 +16,20 @@ export declare enum LayerActionOrigin {
|
|
|
19
16
|
toggleAutoUpdateSaga = "toggleAutoUpdateSaga",
|
|
20
17
|
unregisterMapSaga = "unregisterMapSaga"
|
|
21
18
|
}
|
|
19
|
+
export interface FeatureLayer {
|
|
20
|
+
geojson?: FeatureCollection;
|
|
21
|
+
selectedFeatureIndex?: number;
|
|
22
|
+
isInEditMode?: boolean;
|
|
23
|
+
drawMode?: string;
|
|
24
|
+
}
|
|
22
25
|
/**
|
|
23
26
|
* ReduxLayer is used to reflect the shape of the layer in the redux layers store.
|
|
24
27
|
* It is a subset of Layer since some properties like the styles list now come from the service store.
|
|
25
28
|
*/
|
|
26
|
-
export interface ReduxLayer {
|
|
27
|
-
id?: string;
|
|
28
|
-
mapId?: string;
|
|
29
|
-
service?: string;
|
|
30
|
-
name?: string;
|
|
31
|
-
title?: string;
|
|
32
|
-
enabled?: boolean;
|
|
33
|
-
style?: string;
|
|
29
|
+
export interface ReduxLayer extends LayerFoundation, FeatureLayer {
|
|
34
30
|
dimensions?: Dimension[];
|
|
35
|
-
|
|
36
|
-
type?: string;
|
|
37
|
-
layerType?: LayerType;
|
|
31
|
+
mapId?: string;
|
|
38
32
|
status?: LayerStatus;
|
|
39
|
-
format?: string;
|
|
40
|
-
geojson?: FeatureCollection;
|
|
41
|
-
selectedFeatureIndex?: number;
|
|
42
|
-
acceptanceTimeInMinutes?: number;
|
|
43
33
|
}
|
|
44
34
|
/**
|
|
45
35
|
* Layer is used to define a layer with all its possible properties.
|
|
@@ -70,10 +60,6 @@ export interface SetBaseLayersPayload {
|
|
|
70
60
|
layers: ReduxLayer[];
|
|
71
61
|
origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
|
|
72
62
|
}
|
|
73
|
-
export interface SetLayerDimensionsPayload extends LayerPayload {
|
|
74
|
-
origin: string;
|
|
75
|
-
dimensions: Dimension[];
|
|
76
|
-
}
|
|
77
63
|
export interface SetLayerOpacityPayload extends LayerPayload {
|
|
78
64
|
opacity: number;
|
|
79
65
|
mapId?: string;
|
|
@@ -95,11 +81,6 @@ export interface SetLayerDimensionPayload extends LayerPayload {
|
|
|
95
81
|
origin?: LayerActionOrigin;
|
|
96
82
|
mapId?: string;
|
|
97
83
|
}
|
|
98
|
-
export interface SetLayerStylePayload extends LayerPayload {
|
|
99
|
-
style: string;
|
|
100
|
-
mapId?: string;
|
|
101
|
-
origin?: LayerActionOrigin | SyncGroupActionOrigin.layerActions;
|
|
102
|
-
}
|
|
103
84
|
export interface SetLayerGeojsonPayload extends LayerPayload {
|
|
104
85
|
geojson: FeatureCollection;
|
|
105
86
|
}
|
|
@@ -134,12 +115,6 @@ export interface SetAvailableBaseLayersPayload extends AddAvailableBaseLayersPay
|
|
|
134
115
|
export interface ErrorLayerPayload extends LayerPayload {
|
|
135
116
|
error: Error;
|
|
136
117
|
}
|
|
137
|
-
export interface UpdateLayerInfoPayload {
|
|
138
|
-
origin: string;
|
|
139
|
-
mapDimensions?: UpdateAllMapDimensionsPayload;
|
|
140
|
-
layerStyle?: SetLayerStylePayload;
|
|
141
|
-
layerDimensions?: SetLayerDimensionsPayload;
|
|
142
|
-
}
|
|
143
118
|
export interface UpdateLayerInfo extends Action {
|
|
144
119
|
type: `layerReducer/onUpdateLayerInformation`;
|
|
145
120
|
payload: UpdateLayerInfoPayload;
|
|
@@ -147,3 +122,17 @@ export interface UpdateLayerInfo extends Action {
|
|
|
147
122
|
export interface SetSelectedFeaturePayload extends LayerPayload {
|
|
148
123
|
selectedFeatureIndex: number;
|
|
149
124
|
}
|
|
125
|
+
export interface UpdateFeaturePayload extends LayerPayload {
|
|
126
|
+
geojson: GeoJSON.FeatureCollection;
|
|
127
|
+
shouldAllowMultipleShapes?: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface UpdateFeaturePropertiesPayload extends LayerPayload {
|
|
130
|
+
properties: GeoJSON.GeoJsonProperties;
|
|
131
|
+
}
|
|
132
|
+
export interface ToggleFeatureModePayload extends LayerPayload {
|
|
133
|
+
isInEditMode?: boolean;
|
|
134
|
+
drawMode?: string;
|
|
135
|
+
}
|
|
136
|
+
export interface ExitFeatureDrawModePayload extends LayerPayload {
|
|
137
|
+
reason: string;
|
|
138
|
+
}
|
|
@@ -16,3 +16,9 @@ export declare const produceDraftStateForAllLayersForDimensionWithinMap: (draft:
|
|
|
16
16
|
* @param dimensions Dimension[]
|
|
17
17
|
*/
|
|
18
18
|
export declare const filterNonTimeDimensions: (dimensions: Dimension[]) => Dimension[];
|
|
19
|
+
/**
|
|
20
|
+
* Returns geoJSON based on type and multipleShapes
|
|
21
|
+
* @param geoJSON: GeoJSON.FeatureCollection
|
|
22
|
+
* @param shouldAllowMultipleshapes: boolean
|
|
23
|
+
*/
|
|
24
|
+
export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean) => GeoJSON.FeatureCollection;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { SetMapDimensionPayload } from '@opengeoweb/webmap-react';
|
|
2
|
+
import type { SetMapPresetPayload } from './types';
|
|
2
3
|
/**
|
|
3
4
|
* These actions causes circular dependency if they are defined in the reducer.ts file.
|
|
4
5
|
* Therefor they are instead added to this file
|
|
@@ -32,5 +32,5 @@ export { mapActions, reducer as webmapReducer } from './reducer';
|
|
|
32
32
|
export * as mapSelectors from './selectors';
|
|
33
33
|
export * as mapEnums from './enums';
|
|
34
34
|
export * as mapConstants from './constants';
|
|
35
|
-
export
|
|
35
|
+
export { defaultLayers } from '@opengeoweb/webmap-react';
|
|
36
36
|
export * as filterLayers from './filterLayers';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PayloadAction, Draft } from '@reduxjs/toolkit';
|
|
2
|
-
import
|
|
2
|
+
import { MapPinLocationPayload, SetBboxPayload, UpdateAllMapDimensionsPayload } from '@opengeoweb/webmap-react';
|
|
3
|
+
import type { WebMapState, SetAutoLayerIdPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderSpanPayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderWidthPayload, SetTimeSliderCenterTimePayload, SetEndTimeOverriding, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSpanAutoPayload, ToggleTimeSliderHoverPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, ToggleTimeSliderIsVisiblePayload, SetDockedLayerManagerSize } from './types';
|
|
3
4
|
import { ToggleMapPinIsVisiblePayload, ToggleZoomControlsPayload, SetTimeSliderUnfilteredSelectedTimePayload } from '../types';
|
|
4
5
|
/**
|
|
5
6
|
* Checks if the layer id is already taken in one of the maps.
|
|
@@ -53,7 +54,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
53
54
|
}, "mapReducer">;
|
|
54
55
|
export declare const mapActions: {
|
|
55
56
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
|
|
56
|
-
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("
|
|
57
|
+
mapChangeDimension: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("@opengeoweb/webmap-react").SetMapDimensionPayload, string>;
|
|
57
58
|
registerMap: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
|
|
58
59
|
mapId: string;
|
|
59
60
|
}, "mapReducer/registerMap">;
|
|
@@ -26,7 +26,7 @@ export declare const getAllMapIds: (store: CoreAppStore) => string[];
|
|
|
26
26
|
* @param {object} store store object from which the map state wll be extracted
|
|
27
27
|
* @returns {object} object containing map state (isAnimating, bbox, baseLayers, layers etc.)
|
|
28
28
|
*/
|
|
29
|
-
export declare const getFirstMap: ((state:
|
|
29
|
+
export declare const getFirstMap: ((state: CoreAppStore) => WebMap | null) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: Record<string, WebMap>) => WebMap | null, {
|
|
30
30
|
clearCache: () => void;
|
|
31
31
|
}> & {
|
|
32
32
|
clearCache: () => void;
|
|
@@ -38,7 +38,7 @@ export declare const getFirstMap: ((state: any) => any) & import("reselect").Out
|
|
|
38
38
|
* @param {object} store store: object from which the map state wll be extracted
|
|
39
39
|
* @returns {string} returnType:string - map id
|
|
40
40
|
*/
|
|
41
|
-
export declare const getFirstMapId: ((state:
|
|
41
|
+
export declare const getFirstMapId: ((state: CoreAppStore) => string) & import("reselect").OutputSelectorFields<(args_0: WebMap | null) => string, {
|
|
42
42
|
clearCache: () => void;
|
|
43
43
|
}> & {
|
|
44
44
|
clearCache: () => void;
|
|
@@ -120,6 +120,11 @@ export declare const getMapOverLayersIds: ((state: CoreAppStore | undefined, map
|
|
|
120
120
|
}> & {
|
|
121
121
|
clearCache: () => void;
|
|
122
122
|
};
|
|
123
|
+
export declare const getMapFeatureLayers: ((state: CoreAppStore, mapId: string) => import("../types").ReduxLayer[]) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined, args_1: import("../types").ReduxLayer[]) => import("../types").ReduxLayer[], {
|
|
124
|
+
clearCache: () => void;
|
|
125
|
+
}> & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
};
|
|
123
128
|
/**
|
|
124
129
|
* Gets all overLayers for a map
|
|
125
130
|
*
|
|
@@ -480,7 +485,7 @@ export declare const isTimeSliderVisible: ((state: CoreAppStore | undefined, map
|
|
|
480
485
|
* @param {string} mapId layerId: string - Id of the layer
|
|
481
486
|
* @returns {boolean} returnType: boolean
|
|
482
487
|
*/
|
|
483
|
-
export declare const getIsLayerActiveLayer: ((state:
|
|
488
|
+
export declare const getIsLayerActiveLayer: ((state: CoreAppStore, _mapId: string, layerId: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: string | undefined, args_1: string) => boolean, {
|
|
484
489
|
clearCache: () => void;
|
|
485
490
|
}> & {
|
|
486
491
|
clearCache: () => void;
|
|
@@ -507,7 +512,7 @@ export declare const getMapIdFromLayerId: ((state: CoreAppStore, layerId?: strin
|
|
|
507
512
|
* @param {string} layerId layerId: string - Id of the layer
|
|
508
513
|
* @returns {string} returnType: string - the layerId, or null if not found
|
|
509
514
|
*/
|
|
510
|
-
export declare const getLayerIdByLayerName: ((state:
|
|
515
|
+
export declare const getLayerIdByLayerName: ((state: CoreAppStore, _mapId: string, layerName: string) => string) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: string) => string, {
|
|
511
516
|
clearCache: () => void;
|
|
512
517
|
}> & {
|
|
513
518
|
clearCache: () => void;
|
|
@@ -521,7 +526,7 @@ export declare const getLayerIdByLayerName: ((state: any, _mapId: any, layerName
|
|
|
521
526
|
* @param {string} layerId layerId: string - Id of the layer
|
|
522
527
|
* @returns {number} returnType: index number or -1 if not found
|
|
523
528
|
*/
|
|
524
|
-
export declare const getLayerIndexByLayerId: ((state:
|
|
529
|
+
export declare const getLayerIndexByLayerId: ((state: CoreAppStore, _mapId: string, layerId?: string | undefined) => number) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: string | undefined) => number, {
|
|
525
530
|
clearCache: () => void;
|
|
526
531
|
}> & {
|
|
527
532
|
clearCache: () => void;
|
|
@@ -535,7 +540,7 @@ export declare const getLayerIndexByLayerId: ((state: any, _mapId: any, layerId?
|
|
|
535
540
|
* @param {number} layerIndex layerId: number - Index of the layer in the map
|
|
536
541
|
* @returns {object} returnType: layer, or null if not found
|
|
537
542
|
*/
|
|
538
|
-
export declare const getLayerByLayerIndex: ((state:
|
|
543
|
+
export declare const getLayerByLayerIndex: ((state: CoreAppStore, _mapId: string, layerIndex: number) => Layer) & import("reselect").OutputSelectorFields<(args_0: import("../types").ReduxLayer[], args_1: number) => Layer, {
|
|
539
544
|
clearCache: () => void;
|
|
540
545
|
}> & {
|
|
541
546
|
clearCache: () => void;
|
|
@@ -547,7 +552,7 @@ export declare const getLayerByLayerIndex: ((state: any, _mapId: any, layerIndex
|
|
|
547
552
|
* @param {object} store store: object - store object
|
|
548
553
|
* @returns {array} returnType: array of dimension names
|
|
549
554
|
*/
|
|
550
|
-
export declare const getAllUniqueDimensions: ((state:
|
|
555
|
+
export declare const getAllUniqueDimensions: ((state: CoreAppStore) => string[]) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: CoreAppStore) => string[], {
|
|
551
556
|
clearCache: () => void;
|
|
552
557
|
}> & {
|
|
553
558
|
clearCache: () => void;
|
|
@@ -560,7 +565,7 @@ export declare const getAllUniqueDimensions: ((state: any) => string[]) & import
|
|
|
560
565
|
* @param {string} mapId mapId: string - Id of the map
|
|
561
566
|
* @returns {object} returnType: latitude and longitude of pin
|
|
562
567
|
*/
|
|
563
|
-
export declare const getPinLocation: ((state: CoreAppStore | undefined, mapId: string) => import("
|
|
568
|
+
export declare const getPinLocation: ((state: CoreAppStore | undefined, mapId: string) => import("dist/libs/webmap-react/src").MapLocation | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap | undefined) => import("dist/libs/webmap-react/src").MapLocation | undefined, {
|
|
564
569
|
clearCache: () => void;
|
|
565
570
|
}> & {
|
|
566
571
|
clearCache: () => void;
|
|
@@ -639,7 +644,7 @@ export declare const getMapLayerIdsEnabled: ((state: CoreAppStore, mapId: string
|
|
|
639
644
|
* @param {string} dimensionName dimensionName: string - name of the dimension
|
|
640
645
|
* @returns {Boolean} returnType: boolean
|
|
641
646
|
*/
|
|
642
|
-
export declare const getIsEnabledLayersForMapDimension: ((state:
|
|
647
|
+
export declare const getIsEnabledLayersForMapDimension: ((state: CoreAppStore, _mapId: string, dimensionName: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: string[], args_1: string[]) => boolean, {
|
|
643
648
|
clearCache: () => void;
|
|
644
649
|
}> & {
|
|
645
650
|
clearCache: () => void;
|