@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TimeInterval } from '@opengeoweb/webmap';
|
|
2
|
+
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
2
3
|
import type { Layer, LayerActionOrigin } from '../types';
|
|
3
4
|
import { MapActionOrigin } from './enums';
|
|
4
5
|
export interface Dimension {
|
|
@@ -51,10 +52,6 @@ export interface WebMapState {
|
|
|
51
52
|
byId: Record<string, WebMap>;
|
|
52
53
|
allIds: string[];
|
|
53
54
|
}
|
|
54
|
-
export interface MapLocation {
|
|
55
|
-
lat: number;
|
|
56
|
-
lon: number;
|
|
57
|
-
}
|
|
58
55
|
export interface Bbox {
|
|
59
56
|
left: number;
|
|
60
57
|
right: number;
|
|
@@ -111,21 +108,6 @@ export interface MoveLayerPayload {
|
|
|
111
108
|
newIndex: number;
|
|
112
109
|
origin: string;
|
|
113
110
|
}
|
|
114
|
-
export interface SetBboxPayload {
|
|
115
|
-
mapId: string;
|
|
116
|
-
bbox: Bbox;
|
|
117
|
-
srs?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface SetMapDimensionPayload {
|
|
120
|
-
origin: string;
|
|
121
|
-
mapId: string;
|
|
122
|
-
dimension: Dimension;
|
|
123
|
-
}
|
|
124
|
-
export interface UpdateAllMapDimensionsPayload {
|
|
125
|
-
origin: string;
|
|
126
|
-
mapId: string;
|
|
127
|
-
dimensions: Dimension[];
|
|
128
|
-
}
|
|
129
111
|
export type TimeListType = {
|
|
130
112
|
name: string;
|
|
131
113
|
value: string;
|
|
@@ -220,10 +202,6 @@ export interface ToggleZoomControlsPayload {
|
|
|
220
202
|
mapId: string;
|
|
221
203
|
shouldShowZoomControls: boolean;
|
|
222
204
|
}
|
|
223
|
-
export interface MapPinLocationPayload {
|
|
224
|
-
mapId: string;
|
|
225
|
-
mapPinLocation: MapLocation;
|
|
226
|
-
}
|
|
227
205
|
export interface DisableMapPinPayload {
|
|
228
206
|
mapId: string;
|
|
229
207
|
disableMapPin: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LayerType } from '@opengeoweb/webmap';
|
|
1
2
|
import type { CoreAppStore } from '../types';
|
|
2
3
|
import { layerTypes } from './layers';
|
|
3
4
|
import { mapTypes } from './map';
|
|
@@ -5,6 +6,7 @@ export declare const createLayersState: (layerId: string, props?: {}) => layerTy
|
|
|
5
6
|
export declare const createMultipleLayersState: (layers: layerTypes.Layer[], mapId: string) => layerTypes.LayerState;
|
|
6
7
|
export declare const createWebmapState: (...mapIds: string[]) => mapTypes.WebMapState;
|
|
7
8
|
export declare const createMapDimensionsState: (dimensions?: mapTypes.Dimension[], ...mapIds: string[]) => mapTypes.WebMapState;
|
|
8
|
-
export declare const webmapStateWithAddedLayer: (layerType:
|
|
9
|
+
export declare const webmapStateWithAddedLayer: (layerType: LayerType, layerId: string, mapId: string, dimensions?: mapTypes.Dimension[]) => mapTypes.WebMapState;
|
|
9
10
|
export declare const mockStateMapWithLayer: (layer: layerTypes.Layer, mapId: string) => CoreAppStore;
|
|
10
11
|
export declare const mockStateMapWithMultipleLayers: (layers: layerTypes.Layer[], mapId: string) => CoreAppStore;
|
|
12
|
+
export declare const testGeoJSON: GeoJSON.FeatureCollection;
|
package/src/store/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { WebMapStateModuleState } from './mapStore/types';
|
|
2
2
|
import type { SynchronizationGroupModuleState } from './generic/synchronizationGroups/types';
|
|
3
3
|
import type { uiTypes, layerSelectTypes } from '.';
|
|
4
|
+
import type { DrawtoolModuleStore } from './drawingtool';
|
|
4
5
|
import { DrawModuleStore } from './drawings/types';
|
|
5
|
-
export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawModuleStore {
|
|
6
|
+
export interface CoreAppStore extends SynchronizationGroupModuleState, uiTypes.UIModuleState, WebMapStateModuleState, layerSelectTypes.LayerSelectModuleState, DrawtoolModuleStore, DrawModuleStore {
|
|
6
7
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LayerType } from '../types';
|
|
2
|
-
export declare const baseLayerGrey: {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
type: string;
|
|
6
|
-
layerType: LayerType;
|
|
7
|
-
};
|
|
8
|
-
export declare const overLayer: {
|
|
9
|
-
service: string;
|
|
10
|
-
name: string;
|
|
11
|
-
format: string;
|
|
12
|
-
enabled: boolean;
|
|
13
|
-
id: string;
|
|
14
|
-
layerType: LayerType;
|
|
15
|
-
};
|