@opengeoweb/core 4.7.1 → 4.9.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 +2113 -1586
- package/index.umd.js +3399 -2817
- package/lib/components/AppWrapper/AppWrapperConnect.d.ts +6 -0
- package/lib/components/AppWrapper/index.d.ts +1 -0
- package/lib/components/ConfigurableMap/ConfigurableMapConnect.d.ts +3 -1
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/SearchHighlight.d.ts +7 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/SearchHighlight.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerManagerUtils.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +2 -3
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +0 -2
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +1 -10
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.stories.d.ts +0 -3
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupDialogConnect.d.ts +11 -0
- package/lib/components/LayerManager/index.d.ts +1 -0
- package/lib/components/ReactMapView/ReactMapView.d.ts +8 -31
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/utils.d.ts +22 -0
- package/lib/components/ReactMapView/utils.spec.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSlider.d.ts +7 -0
- package/lib/components/TimeSlider/TimeSliderConnect.d.ts +2 -27
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendConnect.d.ts +2 -57
- package/lib/index.d.ts +6 -4
- package/lib/store/app/config.d.ts +5 -0
- package/lib/store/app/index.d.ts +1 -0
- package/lib/store/app/reducer.d.ts +12 -0
- package/lib/store/app/reducer.spec.d.ts +1 -0
- package/lib/store/app/types.d.ts +6 -0
- package/lib/store/index.d.ts +1 -0
- package/lib/store/layerSelect/reducer.d.ts +4 -1
- package/lib/store/layerSelect/selectors.d.ts +9 -1
- package/lib/store/layerSelect/types.d.ts +14 -0
- package/lib/store/mapStore/layers/selectors.d.ts +11 -11
- package/lib/store/mapStore/layers/types.d.ts +0 -2
- package/lib/store/mapStore/map/reducer.d.ts +3 -1
- package/lib/store/mapStore/map/sagas.d.ts +2 -0
- package/lib/store/mapStore/map/selectors.d.ts +20 -0
- package/lib/store/mapStore/map/types.d.ts +10 -1
- package/lib/store/mapStore/map/utils.d.ts +1 -1
- package/lib/store/mapStore/service/selectors.d.ts +4 -4
- package/lib/store/mapStore/service/types.d.ts +2 -12
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/utils/__mocks__/getCapabilities.d.ts +1 -1
- package/lib/utils/defaultTestSettings.d.ts +21 -1
- package/lib/utils/getCapabilities.d.ts +1 -17
- package/package.json +12 -12
|
@@ -9,7 +9,7 @@ import { LayerState, Layer, LayerStatus } from './types';
|
|
|
9
9
|
* @param {string} layerId Id of the layer
|
|
10
10
|
* @returns {object} object containing layer information (service, name, style, enabled etc.)
|
|
11
11
|
*/
|
|
12
|
-
export declare const getLayerById: (store: AppStore, layerId
|
|
12
|
+
export declare const getLayerById: (store: AppStore, layerId?: string | undefined) => Layer | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Retrieves all layers indexed by layerId
|
|
15
15
|
*
|
|
@@ -159,7 +159,7 @@ export declare const getLayerDimensions: ((state: {
|
|
|
159
159
|
services?: import("../types").ServiceState | undefined;
|
|
160
160
|
layers?: LayerState | undefined;
|
|
161
161
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
162
|
-
}, params_0
|
|
162
|
+
}, params_0?: string | undefined) => Dimension[]) & import("reselect").OutputSelectorFields<((args_0: Layer | undefined) => Dimension[]) & {
|
|
163
163
|
clearCache: () => void;
|
|
164
164
|
}> & {
|
|
165
165
|
clearCache: () => void;
|
|
@@ -179,7 +179,7 @@ export declare const getLayerNonTimeDimensions: ((state: {
|
|
|
179
179
|
services?: import("../types").ServiceState | undefined;
|
|
180
180
|
layers?: LayerState | undefined;
|
|
181
181
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
182
|
-
}, params_0
|
|
182
|
+
}, params_0?: string | undefined) => Dimension[]) & import("reselect").OutputSelectorFields<((args_0: Dimension[]) => Dimension[]) & {
|
|
183
183
|
clearCache: () => void;
|
|
184
184
|
}> & {
|
|
185
185
|
clearCache: () => void;
|
|
@@ -199,7 +199,7 @@ export declare const getLayerTimeDimension: ((state: {
|
|
|
199
199
|
services?: import("../types").ServiceState | undefined;
|
|
200
200
|
layers?: LayerState | undefined;
|
|
201
201
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
202
|
-
}, params_0
|
|
202
|
+
}, params_0?: string | undefined) => Dimension | undefined) & import("reselect").OutputSelectorFields<((args_0: Dimension[]) => Dimension | undefined) & {
|
|
203
203
|
clearCache: () => void;
|
|
204
204
|
}> & {
|
|
205
205
|
clearCache: () => void;
|
|
@@ -240,7 +240,7 @@ export declare const getLayerOpacity: ((state: {
|
|
|
240
240
|
services?: import("../types").ServiceState | undefined;
|
|
241
241
|
layers?: LayerState | undefined;
|
|
242
242
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
243
|
-
}, params_0
|
|
243
|
+
}, params_0?: string | undefined) => number) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => number & {
|
|
244
244
|
clearCache: () => void;
|
|
245
245
|
}> & {
|
|
246
246
|
clearCache: () => void;
|
|
@@ -260,7 +260,7 @@ export declare const getLayerEnabled: ((state: {
|
|
|
260
260
|
services?: import("../types").ServiceState | undefined;
|
|
261
261
|
layers?: LayerState | undefined;
|
|
262
262
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
263
|
-
}, params_0
|
|
263
|
+
}, params_0?: string | undefined) => boolean) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => boolean & {
|
|
264
264
|
clearCache: () => void;
|
|
265
265
|
}> & {
|
|
266
266
|
clearCache: () => void;
|
|
@@ -280,7 +280,7 @@ export declare const getLayerName: ((state: {
|
|
|
280
280
|
services?: import("../types").ServiceState | undefined;
|
|
281
281
|
layers?: LayerState | undefined;
|
|
282
282
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
283
|
-
}, params_0
|
|
283
|
+
}, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => string & {
|
|
284
284
|
clearCache: () => void;
|
|
285
285
|
}> & {
|
|
286
286
|
clearCache: () => void;
|
|
@@ -300,7 +300,7 @@ export declare const getLayerService: ((state: {
|
|
|
300
300
|
services?: import("../types").ServiceState | undefined;
|
|
301
301
|
layers?: LayerState | undefined;
|
|
302
302
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
303
|
-
}, params_0
|
|
303
|
+
}, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => string & {
|
|
304
304
|
clearCache: () => void;
|
|
305
305
|
}> & {
|
|
306
306
|
clearCache: () => void;
|
|
@@ -320,7 +320,7 @@ export declare const getLayerStyle: ((state: {
|
|
|
320
320
|
services?: import("../types").ServiceState | undefined;
|
|
321
321
|
layers?: LayerState | undefined;
|
|
322
322
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
323
|
-
}, params_0
|
|
323
|
+
}, params_0?: string | undefined) => string) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => string & {
|
|
324
324
|
clearCache: () => void;
|
|
325
325
|
}> & {
|
|
326
326
|
clearCache: () => void;
|
|
@@ -340,7 +340,7 @@ export declare const getLayerStatus: ((state: {
|
|
|
340
340
|
services?: import("../types").ServiceState | undefined;
|
|
341
341
|
layers?: LayerState | undefined;
|
|
342
342
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
343
|
-
}, params_0
|
|
343
|
+
}, params_0?: string | undefined) => LayerStatus) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => LayerStatus & {
|
|
344
344
|
clearCache: () => void;
|
|
345
345
|
}> & {
|
|
346
346
|
clearCache: () => void;
|
|
@@ -380,7 +380,7 @@ export declare const getSelectedFeatureIndex: ((state: {
|
|
|
380
380
|
services?: import("../types").ServiceState | undefined;
|
|
381
381
|
layers?: LayerState | undefined;
|
|
382
382
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
383
|
-
}, params_0
|
|
383
|
+
}, params_0?: string | undefined) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: Layer | undefined) => number & {
|
|
384
384
|
clearCache: () => void;
|
|
385
385
|
}> & {
|
|
386
386
|
clearCache: () => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Action } from '@reduxjs/toolkit';
|
|
2
|
-
import { Style } from '@opengeoweb/webmap';
|
|
3
2
|
import { FeatureCollection } from 'geojson';
|
|
4
3
|
import type { Dimension, UpdateAllMapDimensionsPayload } from '../map/types';
|
|
5
4
|
import type { SetLayersForServicePayload } from '../types';
|
|
@@ -53,7 +52,6 @@ export interface ReduxLayer {
|
|
|
53
52
|
* Layer is used to define a layer with all its possible properties.
|
|
54
53
|
*/
|
|
55
54
|
export interface Layer extends ReduxLayer {
|
|
56
|
-
styles?: Style[];
|
|
57
55
|
headers?: Headers[];
|
|
58
56
|
}
|
|
59
57
|
export interface AvailableBaseLayersType {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
2
|
-
import { WebMapState, SetActiveLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, ToggleAutoUpdatePayload, ToggleTimestepAutoPayload, ToggleTimeSliderHoverPayload, MapPinLocationPayload, DisableMapPinPayload, SetTimeSliderSecondsPerPxPayload, UpdateAllMapDimensionsPayload, ToggleTimeSliderIsVisiblePayload } from './types';
|
|
2
|
+
import { WebMapState, SetActiveLayerIdPayload, SetBboxPayload, SetMapAnimationStartPayload, SetMapAnimationStopPayload, SetTimeSliderScalePayload, SetTimeStepPayload, SetAnimationStartTimePayload, SetAnimationEndTimePayload, SetAnimationDelayPayload, MoveLayerPayload, SetTimeSliderCenterTimePayload, SetTimeSliderDataScaleToSecondsPerPxPayload, 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.
|
|
@@ -45,6 +45,7 @@ export declare const slice: import("@reduxjs/toolkit").Slice<WebMapState, {
|
|
|
45
45
|
setMapPinLocation: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<MapPinLocationPayload>) => void;
|
|
46
46
|
setDisableMapPin: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<DisableMapPinPayload>) => void;
|
|
47
47
|
toggleMapPinIsVisible: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<ToggleMapPinIsVisiblePayload>) => void;
|
|
48
|
+
setDockedLayerManagerSize: (draft: import("immer/dist/internal").WritableDraft<WebMapState>, action: PayloadAction<SetDockedLayerManagerSize>) => void;
|
|
48
49
|
}, "mapReducer">;
|
|
49
50
|
export declare const mapActions: {
|
|
50
51
|
setMapPreset: import("@reduxjs/toolkit").ActionCreatorWithPayload<import("./types").SetMapPresetPayload, string>;
|
|
@@ -78,5 +79,6 @@ export declare const mapActions: {
|
|
|
78
79
|
setMapPinLocation: import("@reduxjs/toolkit").ActionCreatorWithPayload<MapPinLocationPayload, string>;
|
|
79
80
|
setDisableMapPin: import("@reduxjs/toolkit").ActionCreatorWithPayload<DisableMapPinPayload, string>;
|
|
80
81
|
toggleMapPinIsVisible: import("@reduxjs/toolkit").ActionCreatorWithPayload<ToggleMapPinIsVisiblePayload, string>;
|
|
82
|
+
setDockedLayerManagerSize: import("@reduxjs/toolkit").ActionCreatorWithPayload<SetDockedLayerManagerSize, string>;
|
|
81
83
|
};
|
|
82
84
|
export declare const reducer: import("redux").Reducer<WebMapState, import("redux").AnyAction>;
|
|
@@ -7,6 +7,8 @@ export declare const generateTimeList: (start: Moment, end: Moment, interval: nu
|
|
|
7
7
|
name: string;
|
|
8
8
|
value: string;
|
|
9
9
|
}[];
|
|
10
|
+
export declare const getAnimationEndTime: (animationEndTime: string) => string;
|
|
11
|
+
export declare const isAnimationEndTimeValid: (animationEndTime: string) => boolean;
|
|
10
12
|
export declare function updateMapDraw(mapId: string, draw: any): void;
|
|
11
13
|
export declare function startAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStartAnimation>): Generator;
|
|
12
14
|
export declare function stopAnimationSaga({ payload, }: ReturnType<typeof mapActions.mapStopAnimation>): Generator;
|
|
@@ -900,3 +900,23 @@ export declare const getIsEnabledLayersForMapDimension: ((state: {
|
|
|
900
900
|
}> & {
|
|
901
901
|
clearCache: () => void;
|
|
902
902
|
};
|
|
903
|
+
/**
|
|
904
|
+
* Returns the dockedLayerManagerSize originally set in mapPresets
|
|
905
|
+
*
|
|
906
|
+
* Example getDockedLayerManagerSize(store);
|
|
907
|
+
* @param {object} store store: object - store object
|
|
908
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
909
|
+
* @returns {DockedLayerManagerSize} returnType: string
|
|
910
|
+
*/
|
|
911
|
+
export declare const getDockedLayerManagerSize: ((state: {
|
|
912
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState | undefined;
|
|
913
|
+
ui?: UIStoreType | undefined;
|
|
914
|
+
webmap?: WebMapState | undefined;
|
|
915
|
+
services?: import("../types").ServiceState | undefined;
|
|
916
|
+
layers?: import("../types").LayerState | undefined;
|
|
917
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
918
|
+
}, params_0: string) => import("./types").DockedLayerManagerSize | undefined) & import("reselect").OutputSelectorFields<(args_0: WebMap) => (import("./types").DockedLayerManagerSize | undefined) & {
|
|
919
|
+
clearCache: () => void;
|
|
920
|
+
}> & {
|
|
921
|
+
clearCache: () => void;
|
|
922
|
+
};
|
|
@@ -40,7 +40,9 @@ export interface WebMap {
|
|
|
40
40
|
disableMapPin?: boolean;
|
|
41
41
|
displayMapPin?: boolean;
|
|
42
42
|
legendId?: string;
|
|
43
|
+
dockedLayerManagerSize?: DockedLayerManagerSize;
|
|
43
44
|
}
|
|
45
|
+
export declare type DockedLayerManagerSize = 'sizeSmall' | 'sizeMedium' | 'sizeLarge' | '';
|
|
44
46
|
export interface WebMapState {
|
|
45
47
|
byId: Record<string, WebMap>;
|
|
46
48
|
allIds: string[];
|
|
@@ -81,6 +83,7 @@ export interface AnimationPayloadType {
|
|
|
81
83
|
duration?: number;
|
|
82
84
|
interval?: number;
|
|
83
85
|
speed?: SpeedFactorType;
|
|
86
|
+
endTime?: string;
|
|
84
87
|
}
|
|
85
88
|
export declare enum MapActionOrigin {
|
|
86
89
|
map = "map"
|
|
@@ -101,6 +104,8 @@ export interface MapPreset {
|
|
|
101
104
|
animationPayload?: AnimationPayloadType;
|
|
102
105
|
shouldShowLegend?: boolean;
|
|
103
106
|
shouldShowLayerManager?: boolean;
|
|
107
|
+
shouldShowDockedLayerManager?: boolean;
|
|
108
|
+
dockedLayerManagerSize?: DockedLayerManagerSize;
|
|
104
109
|
}
|
|
105
110
|
export interface MapPresetInitialProps {
|
|
106
111
|
mapPreset: MapPreset;
|
|
@@ -159,7 +164,7 @@ export interface SetTimeSliderScalePayload {
|
|
|
159
164
|
}
|
|
160
165
|
export interface SetTimeStepPayload {
|
|
161
166
|
mapId: string;
|
|
162
|
-
timeStep
|
|
167
|
+
timeStep?: number;
|
|
163
168
|
origin?: MapActionOrigin;
|
|
164
169
|
}
|
|
165
170
|
export interface SetAnimationDelayPayload {
|
|
@@ -225,3 +230,7 @@ export interface SetMapPresetPayload {
|
|
|
225
230
|
mapId: string;
|
|
226
231
|
initialProps: MapPresetInitialProps;
|
|
227
232
|
}
|
|
233
|
+
export interface SetDockedLayerManagerSize {
|
|
234
|
+
mapId: string;
|
|
235
|
+
dockedLayerManagerSize: DockedLayerManagerSize;
|
|
236
|
+
}
|
|
@@ -63,5 +63,5 @@ export declare const produceDraftStateSetMapDimensionFromLayerChangeDimension: (
|
|
|
63
63
|
*/
|
|
64
64
|
export declare function moveArrayElements(array: string[], oldIndex: number, newIndex: number): string[];
|
|
65
65
|
export declare const getTimeStepFromDataInterval: (timeInterval: TimeInterval) => number;
|
|
66
|
-
export declare const getActiveLayerTimeStep: (timeDimension: Dimension | undefined) => number |
|
|
66
|
+
export declare const getActiveLayerTimeStep: (timeDimension: Dimension | undefined) => number | undefined;
|
|
67
67
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Style } from '@opengeoweb/webmap';
|
|
2
|
-
import { ServiceState,
|
|
2
|
+
import { ServiceState, ReduxService } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves all serviceIds
|
|
5
5
|
*
|
|
@@ -72,7 +72,7 @@ export declare const getLayersFromService: ((state: {
|
|
|
72
72
|
services?: ServiceState | undefined;
|
|
73
73
|
layers?: import("../types").LayerState | undefined;
|
|
74
74
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
75
|
-
}, params_0: string) =>
|
|
75
|
+
}, params_0: string) => import("@opengeoweb/webmap").LayerProps[]) & import("reselect").OutputSelectorFields<((args_0: ReduxService) => import("@opengeoweb/webmap").LayerProps[]) & {
|
|
76
76
|
clearCache: () => void;
|
|
77
77
|
}> & {
|
|
78
78
|
clearCache: () => void;
|
|
@@ -93,7 +93,7 @@ export declare const getLayerFromService: ((state: {
|
|
|
93
93
|
services?: ServiceState | undefined;
|
|
94
94
|
layers?: import("../types").LayerState | undefined;
|
|
95
95
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
96
|
-
}, params_0: string, params_1: string) =>
|
|
96
|
+
}, params_0: string, params_1: string) => import("@opengeoweb/webmap").LayerProps) & import("reselect").OutputSelectorFields<((args_0: import("@opengeoweb/webmap").LayerProps[], args_1: string, args_2: string) => import("@opengeoweb/webmap").LayerProps) & {
|
|
97
97
|
clearCache: () => void;
|
|
98
98
|
}> & {
|
|
99
99
|
clearCache: () => void;
|
|
@@ -114,7 +114,7 @@ export declare const getLayerStyles: ((state: {
|
|
|
114
114
|
services?: ServiceState | undefined;
|
|
115
115
|
layers?: import("../types").LayerState | undefined;
|
|
116
116
|
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType | undefined;
|
|
117
|
-
}, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<((args_0:
|
|
117
|
+
}, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<((args_0: import("@opengeoweb/webmap").LayerProps) => Style[]) & {
|
|
118
118
|
clearCache: () => void;
|
|
119
119
|
}> & {
|
|
120
120
|
clearCache: () => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LayerProps } from '@opengeoweb/webmap';
|
|
2
2
|
export interface Services {
|
|
3
3
|
[key: string]: ReduxService;
|
|
4
4
|
}
|
|
@@ -13,17 +13,7 @@ export interface ReduxService {
|
|
|
13
13
|
/**
|
|
14
14
|
* Used in the services object of webmap to keep a list of available layers in the service
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
17
|
-
name: string;
|
|
18
|
-
text: string;
|
|
19
|
-
leaf: boolean;
|
|
20
|
-
path: string[];
|
|
21
|
-
abstract?: string;
|
|
22
|
-
keywords?: string[];
|
|
23
|
-
styles?: Style[];
|
|
24
|
-
dimensions?: Dimension[];
|
|
25
|
-
geographicBoundingBox?: GeographicBoundingBox;
|
|
26
|
-
}
|
|
16
|
+
export declare type ServiceLayer = LayerProps;
|
|
27
17
|
export interface ServiceState {
|
|
28
18
|
byId: Services;
|
|
29
19
|
allIds: string[];
|
|
@@ -15,12 +15,14 @@ export declare const registerWMLayer: (wmLayer: WMLayer, layerId: string) => voi
|
|
|
15
15
|
* @param {string} layerId
|
|
16
16
|
*/
|
|
17
17
|
export declare const getWMLayerById: (layerId: string) => WMLayer;
|
|
18
|
+
export declare const unRegisterWMJSLayer: (layerId: string) => void;
|
|
18
19
|
/**
|
|
19
20
|
* Registers a WMJSMap in a lookuptable with a wmjsMapId
|
|
20
21
|
* @param {WMJSMap} wmjsMap
|
|
21
22
|
* @param {string} wmjsMapId
|
|
22
23
|
*/
|
|
23
24
|
export declare const registerWMJSMap: (wmjsMap: WMJSMap, wmjsMapId: string) => void;
|
|
25
|
+
export declare const unRegisterWMJSMap: (wmjsMapId: string) => void;
|
|
24
26
|
/**
|
|
25
27
|
* Get the wmjsMap from the lookuptable with wmjsMapId
|
|
26
28
|
* @param {string} wmjsMapId
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { LayerTree } from '@opengeoweb/webmap';
|
|
1
2
|
import { ServiceLayer } from '../../store/mapStore/types';
|
|
2
|
-
import { LayerTree } from '../getCapabilities';
|
|
3
3
|
export declare const MOCK_URL_WITH_CHILDREN = "https://mockUrlWithChildren.nl";
|
|
4
4
|
export declare const MOCK_URL_NO_CHILDREN = "https://mockUrlNoChildren.nl";
|
|
5
5
|
export declare const MOCK_URL_WITH_NO_TITLE = "https://mockUrlWithNoTitle.nl";
|
|
@@ -19,7 +19,27 @@ export declare const defaultReduxLayerRadarColor: {
|
|
|
19
19
|
}[];
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
22
|
-
export declare const defaultReduxLayerRadarKNMI:
|
|
22
|
+
export declare const defaultReduxLayerRadarKNMI: {
|
|
23
|
+
service: string;
|
|
24
|
+
name: string;
|
|
25
|
+
title: string;
|
|
26
|
+
format: string;
|
|
27
|
+
style: string;
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
layerType: LayerType;
|
|
30
|
+
dimensions: {
|
|
31
|
+
name: string;
|
|
32
|
+
units: string;
|
|
33
|
+
currentValue: string;
|
|
34
|
+
}[];
|
|
35
|
+
styles: {
|
|
36
|
+
title: string;
|
|
37
|
+
name: string;
|
|
38
|
+
legendURL: string;
|
|
39
|
+
abstract: string;
|
|
40
|
+
}[];
|
|
41
|
+
id: string;
|
|
42
|
+
};
|
|
23
43
|
export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
|
|
24
44
|
export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
25
45
|
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* Represents the layers as advertised in the WMS GetCapabilities document
|
|
4
|
-
*/
|
|
5
|
-
export interface LayerTree {
|
|
6
|
-
leaf: boolean;
|
|
7
|
-
name: string | null;
|
|
8
|
-
path: string | string[];
|
|
9
|
-
title: string;
|
|
10
|
-
children: LayerTree[];
|
|
11
|
-
keywords?: string[];
|
|
12
|
-
abstract?: string;
|
|
13
|
-
text?: string;
|
|
14
|
-
styles?: Style[];
|
|
15
|
-
dimensions?: Dimension[];
|
|
16
|
-
geographicBoundingBox?: GeographicBoundingBox;
|
|
17
|
-
}
|
|
1
|
+
import { LayerTree } from '@opengeoweb/webmap';
|
|
18
2
|
/**
|
|
19
3
|
* Converts webmapjs node structure to LayerTree
|
|
20
4
|
* @param nodesToRecur THe WebMapJS node structure from service.getNodes();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.9.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,25 +13,25 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/
|
|
16
|
+
"@opengeoweb/shared": "4.9.1",
|
|
17
17
|
"@mui/material": "^5.10.8",
|
|
18
|
-
"
|
|
19
|
-
"react-redux": "^8.0.4",
|
|
20
|
-
"@opengeoweb/webmap": "4.7.1",
|
|
21
|
-
"throttle-debounce": "^3.0.1",
|
|
22
|
-
"proj4": "^2.6.2",
|
|
23
|
-
"axios": "^0.25.0",
|
|
24
|
-
"@opengeoweb/api": "4.7.1",
|
|
25
|
-
"@opengeoweb/shared": "4.7.1",
|
|
18
|
+
"@opengeoweb/theme": "4.9.1",
|
|
26
19
|
"react-draggable": "^4.4.5",
|
|
27
20
|
"re-resizable": "^6.9.0",
|
|
28
21
|
"@redux-eggs/core": "^2.2.0",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
22
|
+
"react-redux": "^8.0.4",
|
|
23
|
+
"@opengeoweb/form-fields": "4.9.1",
|
|
24
|
+
"react-hook-form": "^7.41.5",
|
|
25
|
+
"moment": "^2.29.0",
|
|
31
26
|
"moment-timezone": "^0.5.31",
|
|
32
27
|
"@mui/x-date-pickers": "^5.0.4",
|
|
33
28
|
"lodash": "^4.17.20",
|
|
29
|
+
"axios": "^0.25.0",
|
|
34
30
|
"date-fns": "^2.29.3",
|
|
31
|
+
"@opengeoweb/webmap": "4.9.1",
|
|
32
|
+
"throttle-debounce": "^3.0.1",
|
|
33
|
+
"proj4": "^2.6.2",
|
|
34
|
+
"@opengeoweb/api": "4.9.1",
|
|
35
35
|
"react-intl": "^5.17.5",
|
|
36
36
|
"react-sortablejs": "^6.1.4",
|
|
37
37
|
"sortablejs": "^1.15.0",
|