@opengeoweb/core 2.1.2 → 2.2.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/{core.esm.js → index.esm.js} +2293 -869
- package/{core.umd.js → index.umd.js} +2498 -948
- package/lib/components/ConfigurableConnectedMap/ConfigurableConnectedMap.d.ts +1 -0
- package/lib/components/ConfigurableMapWithSlider/ConfigurableMapWithSliderConnect.d.ts +1 -0
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButtonConnect.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/{KeywordFilterButton.spec.d.ts → KeywordFilterButtonConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.d.ts +12 -6
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResults.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.d.ts +5 -1
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +1 -1
- package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +12 -0
- package/lib/components/{Mapcontrols/MapControls.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerList.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListConnect.d.ts +6 -0
- package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +3 -0
- package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchField.d.ts +5 -1
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.d.ts +8 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldButtonContainer.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/SearchField/SearchFieldConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.d.ts +6 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialog.stories.d.ts +13 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
- package/lib/components/Legend/LegendConnect.d.ts +3 -0
- package/lib/components/Legend/LegendDialog.d.ts +2 -0
- package/lib/components/Legend/LegendMapButtonConnect.d.ts +2 -0
- package/lib/components/{Mapcontrols → MapControls}/MapControlButton.d.ts +1 -1
- package/lib/components/MapControls/MapControlButton.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/MapControls.d.ts +0 -0
- package/lib/components/MapControls/MapControls.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/ZoomControls.d.ts +0 -0
- package/lib/components/MapControls/ZoomControls.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/ZoomControlsConnect.d.ts +0 -0
- package/lib/components/MapControls/ZoomControlsConnect.spec.d.ts +1 -0
- package/lib/components/{Mapcontrols → MapControls}/index.d.ts +0 -0
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +7 -0
- package/lib/components/MapView/MapViewConnect.SelectorTest.stories.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.d.ts +2 -0
- package/lib/components/MapView/MapViewConnect.stories.d.ts +1 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectButtonConnect.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/DimensionSelectDialogConnect.d.ts +2 -0
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +1 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectMapButtonsConnect.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapView10x10.stories.d.ts +2 -0
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +3 -8
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/types.d.ts +2 -8
- package/lib/components/SyncGroups/selector.d.ts +13 -2
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderUtils.d.ts +1 -1
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +6 -3
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/store/advancedLayerStore/selectors.d.ts +13 -2
- package/lib/store/coreModuleConfig.d.ts +1 -1
- package/lib/store/generic/selectors.d.ts +21 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -1
- package/lib/store/layerSelect/actions.d.ts +17 -1
- package/lib/store/layerSelect/config.d.ts +2 -2
- package/lib/store/layerSelect/constants.d.ts +4 -0
- package/lib/store/layerSelect/sagas.d.ts +5 -0
- package/lib/store/layerSelect/sagas.spec.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +81 -2
- package/lib/store/layerSelect/types.d.ts +57 -6
- package/lib/store/mapStore/layers/actions.d.ts +2 -8
- package/lib/store/mapStore/layers/constants.d.ts +1 -1
- package/lib/store/mapStore/layers/selectors.d.ts +208 -25
- package/lib/store/mapStore/layers/types.d.ts +34 -21
- package/lib/store/mapStore/map/sagas.d.ts +2 -2
- package/lib/store/mapStore/map/selectors.d.ts +427 -33
- package/lib/store/mapStore/service/selectors.d.ts +106 -13
- package/lib/store/mapStore/service/types.d.ts +7 -2
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/actions.d.ts +2 -2
- package/lib/store/ui/selectors.d.ts +65 -5
- package/lib/store/ui/types.d.ts +2 -1
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +5 -5
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +2 -1
- package/lib/utils/defaultTestSettings.d.ts +27 -6
- package/lib/utils/getCapabilities.d.ts +2 -2
- package/lib/utils/testUtils.d.ts +2 -2
- package/package.json +14 -15
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.d.ts +0 -3
- package/lib/components/LayerManager/LayerSelect/KeywordFilterButton/KeywordFilterButton.stories.d.ts +0 -7
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsConnect.stories.d.ts +0 -7
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/mockServices.d.ts +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ServiceState, ServiceLayer } from './types';
|
|
1
|
+
import { Style } from '@opengeoweb/webmap';
|
|
2
|
+
import { ServiceState, ServiceLayer, Service } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves all serviceIds
|
|
5
5
|
*
|
|
@@ -7,7 +7,19 @@ import { ServiceState, ServiceLayer } from './types';
|
|
|
7
7
|
* @param {object} store store: object - object from which the service state will be extracted
|
|
8
8
|
* @returns {array} returnType: array - an array of all serviceIds
|
|
9
9
|
*/
|
|
10
|
-
export declare const getServiceIds:
|
|
10
|
+
export declare const getServiceIds: ((state: {
|
|
11
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
12
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
13
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
14
|
+
webmap?: import("../types").WebMapState;
|
|
15
|
+
services?: ServiceState;
|
|
16
|
+
layers?: import("../types").LayerState;
|
|
17
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
18
|
+
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => string[] & {
|
|
19
|
+
clearCache: () => void;
|
|
20
|
+
}> & {
|
|
21
|
+
clearCache: () => void;
|
|
22
|
+
};
|
|
11
23
|
/**
|
|
12
24
|
* Gets map services
|
|
13
25
|
*
|
|
@@ -15,20 +27,101 @@ export declare const getServiceIds: import("reselect").OutputSelector<AppStore,
|
|
|
15
27
|
* @param {object} store store: object - Store object
|
|
16
28
|
* @returns {object} returnType: ServiceState
|
|
17
29
|
*/
|
|
18
|
-
export declare const getServices:
|
|
30
|
+
export declare const getServices: ((state: {
|
|
31
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
33
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
34
|
+
webmap?: import("../types").WebMapState;
|
|
35
|
+
services?: ServiceState;
|
|
36
|
+
layers?: import("../types").LayerState;
|
|
37
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
38
|
+
}) => import("./types").Services) & import("reselect").OutputSelectorFields<(args_0: ServiceState) => import("./types").Services & {
|
|
39
|
+
clearCache: () => void;
|
|
40
|
+
}> & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
};
|
|
19
43
|
/**
|
|
20
|
-
* Gets
|
|
44
|
+
* Gets the service object by its url
|
|
21
45
|
*
|
|
22
|
-
* Example:
|
|
46
|
+
* Example: service = getServiceByName(store, 'serviceName')
|
|
23
47
|
* @param {object} store store: object - Store object
|
|
24
|
-
* @returns {
|
|
48
|
+
* @returns {Service} returnType: Service
|
|
25
49
|
*/
|
|
26
|
-
export declare const
|
|
50
|
+
export declare const getServiceByName: ((state: {
|
|
51
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
52
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
53
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
54
|
+
webmap?: import("../types").WebMapState;
|
|
55
|
+
services?: ServiceState;
|
|
56
|
+
layers?: import("../types").LayerState;
|
|
57
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
58
|
+
}, params_0: string) => Service) & import("reselect").OutputSelectorFields<(args_0: ServiceState, args_1: string) => Service & {
|
|
59
|
+
clearCache: () => void;
|
|
60
|
+
}> & {
|
|
61
|
+
clearCache: () => void;
|
|
62
|
+
};
|
|
27
63
|
/**
|
|
28
|
-
* Gets
|
|
64
|
+
* Gets the layer from the store using the serviceUrl and layerName
|
|
29
65
|
*
|
|
30
|
-
*
|
|
31
|
-
* @param {object} store store: object -
|
|
32
|
-
* @
|
|
66
|
+
* Example: layers = getLayersFromService(store, 'https://geoservices.knmi.nl/...')
|
|
67
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
68
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
69
|
+
* @returns {arrayr} returnType: ServiceLayer[] - All layers within the service object.
|
|
70
|
+
*/
|
|
71
|
+
export declare const getLayersFromService: ((state: {
|
|
72
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
73
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
74
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
75
|
+
webmap?: import("../types").WebMapState;
|
|
76
|
+
services?: ServiceState;
|
|
77
|
+
layers?: import("../types").LayerState;
|
|
78
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
79
|
+
}, params_0: string) => ServiceLayer[]) & import("reselect").OutputSelectorFields<(args_0: Service) => ServiceLayer[] & {
|
|
80
|
+
clearCache: () => void;
|
|
81
|
+
}> & {
|
|
82
|
+
clearCache: () => void;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Gets the layer from the store using the serviceUrl and layerName
|
|
86
|
+
*
|
|
87
|
+
* Example: layer = getLayerFromService(store, 'https://geoservices.knmi.nl/...', 'radar')
|
|
88
|
+
* @param {object} store store: object - The application store
|
|
89
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
90
|
+
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
91
|
+
* @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
|
|
92
|
+
*/
|
|
93
|
+
export declare const getLayerFromService: ((state: {
|
|
94
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
95
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
96
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
97
|
+
webmap?: import("../types").WebMapState;
|
|
98
|
+
services?: ServiceState;
|
|
99
|
+
layers?: import("../types").LayerState;
|
|
100
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
101
|
+
}, params_0: string, params_1: string) => ServiceLayer) & import("reselect").OutputSelectorFields<(args_0: ServiceLayer[], args_1: string, args_2: string) => ServiceLayer & {
|
|
102
|
+
clearCache: () => void;
|
|
103
|
+
}> & {
|
|
104
|
+
clearCache: () => void;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Gets the layers stylelist from the servicestore using the serviceUrl and layerName
|
|
108
|
+
*
|
|
109
|
+
* Example: layerStyles = getLayerStyles(store, layerService, layerName);
|
|
110
|
+
* @param {object} store store: object - store from which the layers state will be extracted
|
|
111
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
112
|
+
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
113
|
+
* @returns {array} returnType: Style[] - array containing layer styles
|
|
33
114
|
*/
|
|
34
|
-
export declare const
|
|
115
|
+
export declare const getLayerStyles: ((state: {
|
|
116
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
117
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
118
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
119
|
+
webmap?: import("../types").WebMapState;
|
|
120
|
+
services?: ServiceState;
|
|
121
|
+
layers?: import("../types").LayerState;
|
|
122
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
123
|
+
}, params_0: string, params_1: string) => Style[]) & import("reselect").OutputSelectorFields<(args_0: ServiceLayer) => Style[] & {
|
|
124
|
+
clearCache: () => void;
|
|
125
|
+
}> & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Style } from '@opengeoweb/webmap';
|
|
1
2
|
import { Action } from 'redux';
|
|
3
|
+
import type { UpdateLayerInfo } from '../types';
|
|
2
4
|
import { MAP_SERVICES_SET_LAYERS } from './constants';
|
|
3
5
|
export interface Services {
|
|
4
6
|
[key: string]: Service;
|
|
@@ -7,6 +9,7 @@ export interface Service {
|
|
|
7
9
|
id?: string;
|
|
8
10
|
name?: string;
|
|
9
11
|
service?: string;
|
|
12
|
+
active?: boolean;
|
|
10
13
|
layers?: ServiceLayer[];
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
@@ -16,8 +19,10 @@ export interface ServiceLayer {
|
|
|
16
19
|
name: string;
|
|
17
20
|
text: string;
|
|
18
21
|
leaf: boolean;
|
|
19
|
-
path: string;
|
|
22
|
+
path: string[];
|
|
23
|
+
abstract?: string;
|
|
20
24
|
keywords?: string[];
|
|
25
|
+
styles?: Style[];
|
|
21
26
|
}
|
|
22
27
|
export interface ServiceState {
|
|
23
28
|
byId: Services;
|
|
@@ -33,5 +38,5 @@ interface SetLayersForService extends Action {
|
|
|
33
38
|
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
34
39
|
payload: SetLayersForServicePayload;
|
|
35
40
|
}
|
|
36
|
-
export declare type ServiceActions = SetLayersForService;
|
|
41
|
+
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo;
|
|
37
42
|
export {};
|
|
@@ -4,7 +4,6 @@ export declare const dateFormat = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
|
4
4
|
export declare const generateLayerId: () => string;
|
|
5
5
|
export declare const generateMapId: () => string;
|
|
6
6
|
export declare const generateTimesliderId: () => string;
|
|
7
|
-
export declare const generateScreenId: () => string;
|
|
8
7
|
/**
|
|
9
8
|
* Registers a WMJSLayer in a lookuptable with a layerId
|
|
10
9
|
* @param {WMLayer} wmLayer
|
|
@@ -2,8 +2,8 @@ import { SetActiveMapIdForDialogPayload, UIActions, UIOrderDialogPayload, UIRegi
|
|
|
2
2
|
/**
|
|
3
3
|
* Registers the dialog in the store and creates the dialog state
|
|
4
4
|
*
|
|
5
|
-
* Example: registerDialog({'dialogId1', type: 'legend}) you can optionally specify the activeMapId
|
|
6
|
-
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', activeMapId?: string, setOpen?: boolean}
|
|
5
|
+
* Example: registerDialog({'dialogId1', type: 'legend}) you can optionally specify the activeMapId, whether the dialog is open and the souce ('app' or 'module', default is 'app')
|
|
6
|
+
* @param {string} payload {type: 'legend' | 'layerManager' | 'dimensionSelect-elevation', activeMapId?: string, setOpen?: boolean, source?: Source}
|
|
7
7
|
*/
|
|
8
8
|
export declare const registerDialog: (payload: UIRegisterDialogPayload) => UIActions;
|
|
9
9
|
/**
|
|
@@ -16,7 +16,19 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
16
16
|
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
17
17
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
18
18
|
*/
|
|
19
|
-
export declare const getisDialogOpen:
|
|
19
|
+
export declare const getisDialogOpen: ((state: {
|
|
20
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
21
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
22
|
+
ui?: import("./types").UIStoreType;
|
|
23
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
24
|
+
services?: import("../mapStore/types").ServiceState;
|
|
25
|
+
layers?: import("../mapStore/types").LayerState;
|
|
26
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
27
|
+
}, params_0: string) => boolean) & import("reselect").OutputSelectorFields<(args_0: UIType) => boolean & {
|
|
28
|
+
clearCache: () => void;
|
|
29
|
+
}> & {
|
|
30
|
+
clearCache: () => void;
|
|
31
|
+
};
|
|
20
32
|
/**
|
|
21
33
|
*For a given ui component: gets the active map Id
|
|
22
34
|
*
|
|
@@ -24,7 +36,19 @@ export declare const getisDialogOpen: import("reselect").OutputParametricSelecto
|
|
|
24
36
|
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
25
37
|
* @returns {array} [string, boolean] first element gives the active map id, second element whether the dialog is open
|
|
26
38
|
*/
|
|
27
|
-
export declare const getDialogMapId:
|
|
39
|
+
export declare const getDialogMapId: ((state: {
|
|
40
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
41
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
42
|
+
ui?: import("./types").UIStoreType;
|
|
43
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
44
|
+
services?: import("../mapStore/types").ServiceState;
|
|
45
|
+
layers?: import("../mapStore/types").LayerState;
|
|
46
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
47
|
+
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: UIType) => string & {
|
|
48
|
+
clearCache: () => void;
|
|
49
|
+
}> & {
|
|
50
|
+
clearCache: () => void;
|
|
51
|
+
};
|
|
28
52
|
/**
|
|
29
53
|
*For a given ui component: gets the order of visible dialog
|
|
30
54
|
*
|
|
@@ -32,7 +56,19 @@ export declare const getDialogMapId: import("reselect").OutputParametricSelector
|
|
|
32
56
|
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
|
|
33
57
|
* @returns {number} the higher the order number the higher the zIndex
|
|
34
58
|
*/
|
|
35
|
-
export declare const getDialogOrder:
|
|
59
|
+
export declare const getDialogOrder: ((state: {
|
|
60
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
61
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
62
|
+
ui?: import("./types").UIStoreType;
|
|
63
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
64
|
+
services?: import("../mapStore/types").ServiceState;
|
|
65
|
+
layers?: import("../mapStore/types").LayerState;
|
|
66
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
67
|
+
}, params_0: DialogType) => number) & import("reselect").OutputSelectorFields<(args_0: number) => number & {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
}> & {
|
|
70
|
+
clearCache: () => void;
|
|
71
|
+
};
|
|
36
72
|
/**
|
|
37
73
|
*For a given ui component: returns if ordered on top
|
|
38
74
|
*
|
|
@@ -40,5 +76,29 @@ export declare const getDialogOrder: import("reselect").OutputParametricSelector
|
|
|
40
76
|
* @param {DialogType} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation' | dimensionSelect-ensemble_member
|
|
41
77
|
* @returns {boolean}
|
|
42
78
|
*/
|
|
43
|
-
export declare const getDialogIsOrderedOnTop:
|
|
44
|
-
|
|
79
|
+
export declare const getDialogIsOrderedOnTop: ((state: {
|
|
80
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
81
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
82
|
+
ui?: import("./types").UIStoreType;
|
|
83
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
84
|
+
services?: import("../mapStore/types").ServiceState;
|
|
85
|
+
layers?: import("../mapStore/types").LayerState;
|
|
86
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
87
|
+
}, params_0: DialogType) => boolean) & import("reselect").OutputSelectorFields<(args_0: boolean) => boolean & {
|
|
88
|
+
clearCache: () => void;
|
|
89
|
+
}> & {
|
|
90
|
+
clearCache: () => void;
|
|
91
|
+
};
|
|
92
|
+
export declare const getDialogSource: ((state: {
|
|
93
|
+
advancedLayerStore?: import("../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
94
|
+
syncronizationGroupStore?: import("../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
95
|
+
ui?: import("./types").UIStoreType;
|
|
96
|
+
webmap?: import("../mapStore/types").WebMapState;
|
|
97
|
+
services?: import("../mapStore/types").ServiceState;
|
|
98
|
+
layers?: import("../mapStore/types").LayerState;
|
|
99
|
+
layerSelect?: import("../layerSelect/types").LayerSelectStoreType;
|
|
100
|
+
}, params_0: string) => import("./types").Source) & import("reselect").OutputSelectorFields<(args_0: UIType) => import("./types").Source & {
|
|
101
|
+
clearCache: () => void;
|
|
102
|
+
}> & {
|
|
103
|
+
clearCache: () => void;
|
|
104
|
+
};
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
|
|
3
|
-
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member';
|
|
3
|
+
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter';
|
|
4
4
|
export declare type Source = 'app' | 'module';
|
|
5
5
|
export interface UIType {
|
|
6
6
|
type: DialogType;
|
|
@@ -29,6 +29,7 @@ export interface UIRegisterDialogPayload {
|
|
|
29
29
|
type: DialogType;
|
|
30
30
|
activeMapId?: string;
|
|
31
31
|
setOpen?: boolean;
|
|
32
|
+
source?: Source;
|
|
32
33
|
}
|
|
33
34
|
export interface UIRegisterDialog extends Action {
|
|
34
35
|
type: typeof UI_REGISTER_DIALOG;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../store/mapStore/layers/types';
|
|
3
|
-
export declare const useStyles: (props?: any) => import("@
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "root" | "chips">;
|
|
4
4
|
declare type ExampleLayer = {
|
|
5
5
|
title: string;
|
|
6
6
|
layers: Layer[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const useDrawPolyStoryStyles: (props?: any) => import("@
|
|
2
|
+
export declare const useDrawPolyStoryStyles: (props?: any) => import("@mui/styles").ClassNameMap<"MapDrawGeoJSONContainer" | "MapDrawGeoJSONMapContainer" | "MapDrawGeoJSONControlsContainer" | "MapDrawGeoJSONTextAreaContainer" | "MapDrawGeoJSONTextArea">;
|
|
3
3
|
export declare const useGeoJSON: () => {
|
|
4
4
|
editModes: {
|
|
5
5
|
key: string;
|
|
@@ -16,9 +16,9 @@ export declare const useGeoJSON: () => {
|
|
|
16
16
|
changeDrawMode: (mode: string) => void;
|
|
17
17
|
setEditMode: (on: boolean) => void;
|
|
18
18
|
};
|
|
19
|
-
declare const _default: React.
|
|
20
|
-
classes: import("@
|
|
21
|
-
} & {
|
|
19
|
+
declare const _default: React.JSXElementConstructor<Omit<{
|
|
20
|
+
classes: import("@mui/styles").ClassNameMap<string>;
|
|
21
|
+
} & Record<string, unknown> & {
|
|
22
22
|
children?: React.ReactNode;
|
|
23
|
-
},
|
|
23
|
+
}, string> & import("@mui/styles").StyledComponentProps<string> & Record<string, unknown>>;
|
|
24
24
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { StyleRulesCallback } from '@mui/styles';
|
|
2
3
|
declare const mapDrawGeoJSONStyles: StyleRulesCallback<Theme, Record<string, unknown>>;
|
|
3
4
|
export default mapDrawGeoJSONStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
3
|
import { LayerType } from '../store/mapStore/types';
|
|
4
4
|
export declare const defaultReduxLayerRadarColor: {
|
|
@@ -41,17 +41,38 @@ export declare const defaultReduxLayerRadarKNMI: {
|
|
|
41
41
|
};
|
|
42
42
|
export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
|
|
43
43
|
export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
44
|
+
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
45
|
+
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
44
46
|
export declare const defaultReduxServices: {
|
|
45
47
|
'https://testservice': {
|
|
46
48
|
id: string;
|
|
47
49
|
name: string;
|
|
48
50
|
service: string;
|
|
49
|
-
layers: {
|
|
51
|
+
layers: ({
|
|
50
52
|
name: string;
|
|
51
53
|
text: string;
|
|
52
54
|
leaf: boolean;
|
|
53
|
-
path:
|
|
54
|
-
|
|
55
|
+
path: any[];
|
|
56
|
+
keywords: string[];
|
|
57
|
+
abstract: string;
|
|
58
|
+
styles?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
name: string;
|
|
61
|
+
text: string;
|
|
62
|
+
leaf: boolean;
|
|
63
|
+
path: any[];
|
|
64
|
+
keywords: string[];
|
|
65
|
+
abstract: string;
|
|
66
|
+
styles: Style[];
|
|
67
|
+
} | {
|
|
68
|
+
name: string;
|
|
69
|
+
text: string;
|
|
70
|
+
leaf: boolean;
|
|
71
|
+
path: any[];
|
|
72
|
+
keywords: any[];
|
|
73
|
+
abstract?: undefined;
|
|
74
|
+
styles?: undefined;
|
|
75
|
+
})[];
|
|
55
76
|
};
|
|
56
77
|
};
|
|
57
78
|
export declare const multiDimensionLayer: {
|
|
@@ -168,7 +189,7 @@ export declare const WmMultiDimensionServices: {
|
|
|
168
189
|
name: string;
|
|
169
190
|
text: string;
|
|
170
191
|
leaf: boolean;
|
|
171
|
-
path:
|
|
192
|
+
path: any[];
|
|
172
193
|
}[];
|
|
173
194
|
};
|
|
174
195
|
'https://testservice': {
|
|
@@ -179,7 +200,7 @@ export declare const WmMultiDimensionServices: {
|
|
|
179
200
|
name: string;
|
|
180
201
|
text: string;
|
|
181
202
|
leaf: boolean;
|
|
182
|
-
path:
|
|
203
|
+
path: any[];
|
|
183
204
|
}[];
|
|
184
205
|
};
|
|
185
206
|
};
|
|
@@ -23,8 +23,8 @@ export declare const recurseNodes: (nodesToRecur: LayerTree) => LayerTree;
|
|
|
23
23
|
*/
|
|
24
24
|
export declare const getLayersFromService: (serviceUrl: string, forceReload?: boolean) => Promise<LayerTree>;
|
|
25
25
|
/**
|
|
26
|
-
* Returns a promise with
|
|
26
|
+
* Returns a promise with an array of flattened layerobjects from the WMS GetCapabilities document.
|
|
27
27
|
* @param serviceUrl The URL of the WMS service
|
|
28
28
|
* @param {boolean} forceReload **optional** forceReload: boolean, true will force the layers to be reloaded from the service, defaults to false
|
|
29
29
|
*/
|
|
30
|
-
export declare const
|
|
30
|
+
export declare const getLayersFlattenedFromService: (serviceUrl: string, forceReload?: boolean) => Promise<[]>;
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WebMapState, LayerState, Dimension, Layer, WebMapStateModuleState } from '../store/mapStore/types';
|
|
1
|
+
import { WebMapState, LayerState, Dimension, Layer, WebMapStateModuleState, Scale } from '../store/mapStore/types';
|
|
2
2
|
export declare const createWebmapState: (...mapIds: string[]) => WebMapState;
|
|
3
3
|
export declare const createLayersState: (layerId: string, props?: {}) => LayerState;
|
|
4
4
|
export declare const createMultipleLayersState: (layers: Layer[], mapId: string) => LayerState;
|
|
@@ -7,6 +7,6 @@ export declare const mockStateMapWithLayer: (layer: Layer, mapId: string) => Web
|
|
|
7
7
|
export declare const mockStateMapWithMultipleLayers: (layers: Layer[], mapId: string) => WebMapStateModuleState;
|
|
8
8
|
export declare const mockStateMapWithDimensions: (layer: Layer, mapId: string) => WebMapStateModuleState;
|
|
9
9
|
export declare const mockStateMapWithDimensionsWithoutLayers: (mapId: string) => WebMapStateModuleState;
|
|
10
|
-
export declare const mockStateMapWithTimeSliderScaleWithoutLayers: (mapId: string, timeSliderScale:
|
|
10
|
+
export declare const mockStateMapWithTimeSliderScaleWithoutLayers: (mapId: string, timeSliderScale: Scale) => WebMapStateModuleState;
|
|
11
11
|
export declare const mockStateMapWithTimeStepWithoutLayers: (mapId: string, timeStep: number) => WebMapStateModuleState;
|
|
12
12
|
export declare const mockStateMapWithAnimationDelayWithoutLayers: (mapId: string) => WebMapStateModuleState;
|
package/package.json
CHANGED
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
|
-
"main": "./
|
|
11
|
-
"module": "./
|
|
10
|
+
"main": "./index.umd.js",
|
|
11
|
+
"module": "./index.esm.js",
|
|
12
12
|
"typings": "./index.d.ts",
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"react": "
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
17
|
-
"@material
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
15
|
+
"react": "^17.0.2",
|
|
16
|
+
"@opengeoweb/theme": "2.2.0",
|
|
17
|
+
"@mui/material": "^5.2.8",
|
|
18
|
+
"@mui/styles": "^5.2.3",
|
|
19
|
+
"@mui/icons-material": "^5.2.5",
|
|
20
20
|
"react-redux": "7.2.2",
|
|
21
21
|
"moment": "^2.29.0",
|
|
22
22
|
"react-intl": "^5.17.5",
|
|
23
|
-
"@opengeoweb/webmap": "2.
|
|
23
|
+
"@opengeoweb/webmap": "2.2.0",
|
|
24
24
|
"throttle-debounce": "^3.0.1",
|
|
25
25
|
"proj4": "^2.6.2",
|
|
26
26
|
"react-sortablejs": "^6.0.0",
|
|
27
|
-
"@opengeoweb/shared": "2.
|
|
27
|
+
"@opengeoweb/shared": "2.2.0",
|
|
28
28
|
"react-draggable": "^4.4.3",
|
|
29
29
|
"re-resizable": "^6.9.0",
|
|
30
30
|
"lodash": "^4.17.20",
|
|
31
|
-
"@opengeoweb/form-fields": "2.
|
|
31
|
+
"@opengeoweb/form-fields": "2.2.0",
|
|
32
32
|
"react-hook-form": "^6.12.1",
|
|
33
|
-
"@material-ui/pickers": "^3.2.10",
|
|
34
33
|
"moment-timezone": "^0.5.31",
|
|
35
|
-
"@
|
|
36
|
-
"axios": "^0.
|
|
34
|
+
"@mui/lab": "^5.0.0-alpha.64",
|
|
35
|
+
"axios": "^0.25.0",
|
|
37
36
|
"redux-dynamic-modules": "^5.2.0",
|
|
38
37
|
"redux": "^4.0.4",
|
|
39
38
|
"lodash.clonedeep": "^4.5.0",
|
|
40
39
|
"immer": "^9.0.6",
|
|
41
|
-
"reselect": "^4.
|
|
40
|
+
"reselect": "^4.1.5",
|
|
42
41
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
43
42
|
"redux-saga": "^1.1.3"
|
|
44
43
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const KeywordFilterResultsConnectLight: () => React.ReactElement;
|
|
7
|
-
export declare const KeywordFilterResultsConnectDark: () => React.ReactElement;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export declare const mockServices: {
|
|
2
|
-
services: {
|
|
3
|
-
byId: {
|
|
4
|
-
'https://public-wms.met.no/verportal/verportal.map?': {
|
|
5
|
-
layers: {
|
|
6
|
-
name: string;
|
|
7
|
-
text: string;
|
|
8
|
-
leaf: boolean;
|
|
9
|
-
path: string;
|
|
10
|
-
keywords: any[];
|
|
11
|
-
}[];
|
|
12
|
-
};
|
|
13
|
-
'https://geoservices.knmi.nl/wms?dataset=RADAR&': {
|
|
14
|
-
layers: {
|
|
15
|
-
name: string;
|
|
16
|
-
text: string;
|
|
17
|
-
leaf: boolean;
|
|
18
|
-
path: string;
|
|
19
|
-
keywords: any[];
|
|
20
|
-
}[];
|
|
21
|
-
};
|
|
22
|
-
'https://openwms.fmi.fi/geoserver/wms?': {
|
|
23
|
-
layers: ({
|
|
24
|
-
name: string;
|
|
25
|
-
text: string;
|
|
26
|
-
leaf: boolean;
|
|
27
|
-
path: string;
|
|
28
|
-
keywords: string[];
|
|
29
|
-
abstract: string;
|
|
30
|
-
} | {
|
|
31
|
-
name: string;
|
|
32
|
-
text: string;
|
|
33
|
-
leaf: boolean;
|
|
34
|
-
path: string;
|
|
35
|
-
keywords: string[];
|
|
36
|
-
abstract?: undefined;
|
|
37
|
-
})[];
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
allIds: string[];
|
|
41
|
-
};
|
|
42
|
-
};
|