@opengeoweb/core 2.1.3 → 2.2.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/{core.esm.js → index.esm.js} +2892 -1531
- package/{core.umd.js → index.umd.js} +3191 -1781
- package/lib/components/ComponentsLookUp/componentsLookUp.d.ts +3 -3
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
- package/lib/components/CustomSwitch/CustomSwitch.stories.d.ts +4 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.d.ts +9 -0
- package/lib/components/{Mapcontrols/MapControlButton.spec.d.ts → CustomToggleButton/CustomToggleButton.spec.d.ts} +0 -0
- package/lib/components/CustomToggleButton/CustomToggleButton.stories.d.ts +13 -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/KeywordFilterResults/KeywordFilterResults.d.ts +1 -2
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItem.d.ts +4 -5
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.d.ts +6 -0
- package/lib/components/{Mapcontrols/MapControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterResultsListItemConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.d.ts +3 -0
- package/lib/components/{Mapcontrols/ZoomControls.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/KeywordFilterSelectAllSwitchConnect.spec.d.ts} +0 -0
- package/lib/components/{Mapcontrols/ZoomControlsConnect.spec.d.ts → LayerManager/LayerSelect/KeywordFilterResults/keywordFilterResultsConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -0
- package/lib/components/{ToggleIconButton/ToggleIconButton.spec.d.ts → LayerManager/LayerSelect/LayerList/LayerListUtils.spec.d.ts} +0 -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 +4 -1
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServiceOptionsDialog/ServiceOptionsDialogConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopup.d.ts +3 -0
- package/lib/components/LayerManager/LayerSelect/ServicePopup/ServicePopupConnect.d.ts +10 -0
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
- package/lib/components/{Mapcontrols → MapControls}/MapControlButton.d.ts +3 -3
- 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/MultiDimensionSelectConfig.d.ts +1 -1
- package/lib/components/MultiMapView/HarmoniePresets/HarmRefTimePreset.d.ts +2 -2
- package/lib/components/MultiMapView/HarmoniePresets/HarmonieTempAndPrecipPreset.d.ts +4 -4
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +3 -2
- package/lib/components/MultiMapView/storyUtils/mapPresets.d.ts +81 -0
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +3 -7
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/types.d.ts +2 -7
- 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/ToolButton/ToolButton.d.ts +12 -0
- package/lib/components/ToolButton/ToolButton.spec.d.ts +1 -0
- package/lib/components/{ToggleIconButton/ToggleIconButton.stories.d.ts → ToolButton/ToolButton.stories.d.ts} +2 -2
- package/lib/components/ToolButton/index.d.ts +1 -0
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
- package/lib/index.d.ts +4 -2
- package/lib/store/advancedLayerStore/selectors.d.ts +13 -2
- package/lib/store/generic/selectors.d.ts +21 -3
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -1
- package/lib/store/generic/synchronizationGroups/types.d.ts +1 -0
- package/lib/store/layerSelect/actions.d.ts +16 -5
- package/lib/store/layerSelect/constants.d.ts +6 -1
- package/lib/store/layerSelect/sagas.d.ts +1 -0
- package/lib/store/layerSelect/selectors.d.ts +130 -3
- package/lib/store/layerSelect/types.d.ts +73 -17
- 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 +222 -27
- 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 +459 -53
- package/lib/store/mapStore/service/actions.d.ts +8 -1
- package/lib/store/mapStore/service/constants.d.ts +1 -0
- package/lib/store/mapStore/service/selectors.d.ts +137 -8
- package/lib/store/mapStore/service/types.d.ts +14 -3
- package/lib/store/mapStore/utils/helpers.d.ts +0 -1
- package/lib/store/ui/selectors.d.ts +67 -7
- package/lib/store/utils.d.ts +6 -0
- 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/defaultConfigurations.d.ts +3 -21
- package/lib/utils/defaultTestSettings.d.ts +18 -6
- package/lib/utils/getCapabilities.d.ts +3 -2
- package/lib/utils/jsonPresetFilter.d.ts +10 -0
- package/lib/utils/jsonPresetFilter.spec.d.ts +1 -0
- package/lib/utils/types.d.ts +52 -0
- package/package.json +14 -15
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +0 -9
- package/lib/components/ToggleIconButton/index.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ServiceActions, SetLayersForServicePayload } from './types';
|
|
1
|
+
import { ServiceActions, SetLayersForServicePayload, MapStoreRemoveServicePayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Action serviceSetLayers is used automatically after calling the setLayers action. Contents is based on WMS GetCapabilities
|
|
4
4
|
*
|
|
@@ -6,3 +6,10 @@ import { ServiceActions, SetLayersForServicePayload } from './types';
|
|
|
6
6
|
* @param {object} payload consisting of service: string, layers: ServiceLayer[]
|
|
7
7
|
*/
|
|
8
8
|
export declare const serviceSetLayers: (payload: SetLayersForServicePayload) => ServiceActions;
|
|
9
|
+
/**
|
|
10
|
+
* Action mapStoreRemoveService is used in ServiceOptionsDialogConnect after clicking the remove button. Action layerSelectServiceRemoved is used automatically after calling the mapStoreRemoveService action
|
|
11
|
+
*
|
|
12
|
+
* Example: mapStoreRemoveService({serviceUrl: someService})
|
|
13
|
+
* @param {object} payload consisting of serviceUrl: string
|
|
14
|
+
*/
|
|
15
|
+
export declare const mapStoreRemoveService: (payload: MapStoreRemoveServicePayload) => ServiceActions;
|
|
@@ -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,12 +27,129 @@ 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
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Gets the layer from the store using the serviceUrl and layerName
|
|
65
|
+
*
|
|
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 {array} 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
|
|
114
|
+
*/
|
|
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
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Gets services and maps them into an array
|
|
130
|
+
*
|
|
131
|
+
* Example: services = getServices(store)
|
|
132
|
+
* @param {object} store store: object - Store object
|
|
133
|
+
* @returns {array} returnType: [] - array containing services
|
|
134
|
+
*/
|
|
135
|
+
export declare const getServicesInArray: ((state: {
|
|
136
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
137
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
138
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
139
|
+
webmap?: import("../types").WebMapState;
|
|
140
|
+
services?: ServiceState;
|
|
141
|
+
layers?: import("../types").LayerState;
|
|
142
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
143
|
+
}) => {
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
service: string;
|
|
147
|
+
}[]) & import("reselect").OutputSelectorFields<((args_0: ServiceState) => {
|
|
148
|
+
id: string;
|
|
149
|
+
name: string;
|
|
150
|
+
service: string;
|
|
151
|
+
}[]) & {
|
|
152
|
+
clearCache: () => void;
|
|
153
|
+
}> & {
|
|
154
|
+
clearCache: () => void;
|
|
155
|
+
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Style } from '@opengeoweb/webmap';
|
|
1
2
|
import { Action } from 'redux';
|
|
2
|
-
import {
|
|
3
|
+
import type { UpdateLayerInfo } from '../types';
|
|
4
|
+
import { MAP_SERVICES_SET_LAYERS, MAP_SERVICES_REMOVE_SERVICE } from './constants';
|
|
3
5
|
export interface Services {
|
|
4
6
|
[key: string]: Service;
|
|
5
7
|
}
|
|
@@ -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,9 +19,10 @@ export interface ServiceLayer {
|
|
|
16
19
|
name: string;
|
|
17
20
|
text: string;
|
|
18
21
|
leaf: boolean;
|
|
19
|
-
path: string;
|
|
22
|
+
path: string[];
|
|
20
23
|
abstract?: string;
|
|
21
24
|
keywords?: string[];
|
|
25
|
+
styles?: Style[];
|
|
22
26
|
}
|
|
23
27
|
export interface ServiceState {
|
|
24
28
|
byId: Services;
|
|
@@ -34,5 +38,12 @@ interface SetLayersForService extends Action {
|
|
|
34
38
|
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
35
39
|
payload: SetLayersForServicePayload;
|
|
36
40
|
}
|
|
37
|
-
export
|
|
41
|
+
export interface MapStoreRemoveServicePayload {
|
|
42
|
+
serviceUrl: string;
|
|
43
|
+
}
|
|
44
|
+
interface MapStoreRemoveService extends Action {
|
|
45
|
+
type: typeof MAP_SERVICES_REMOVE_SERVICE;
|
|
46
|
+
payload: MapStoreRemoveServicePayload;
|
|
47
|
+
}
|
|
48
|
+
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo | MapStoreRemoveService;
|
|
38
49
|
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
|
|
@@ -14,17 +14,41 @@ export declare const getDialogDetailsByType: (store: AppStore, dialogType: strin
|
|
|
14
14
|
*
|
|
15
15
|
* @param {object} store store object from which the ui state wll be extracted
|
|
16
16
|
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
17
|
-
* @returns {
|
|
17
|
+
* @returns {boolean} returnType: boolean
|
|
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
|
*
|
|
23
35
|
* @param {object} store store object from which the ui state wll be extracted
|
|
24
36
|
* @param {string} dialogType type of the dialog 'legend' | 'layerManager' | 'dimensionSelect-elevation'
|
|
25
|
-
* @returns {
|
|
37
|
+
* @returns {string} returnType: string - the active map id
|
|
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
|
+
};
|
|
@@ -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,21 +1,3 @@
|
|
|
1
|
-
export declare const availableDefaultBaseLayers: (
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: string;
|
|
5
|
-
layerType: import("../store/mapStore/types").LayerType;
|
|
6
|
-
} | {
|
|
7
|
-
service: string;
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
layerType: import("../store/mapStore/types").LayerType;
|
|
11
|
-
})[];
|
|
12
|
-
export declare const preloadedDefaultBaseServices: {
|
|
13
|
-
name: string;
|
|
14
|
-
url: string;
|
|
15
|
-
id: string;
|
|
16
|
-
}[];
|
|
17
|
-
export declare const preloadedDefaultMapServices: {
|
|
18
|
-
name: string;
|
|
19
|
-
url: string;
|
|
20
|
-
id: string;
|
|
21
|
-
}[];
|
|
1
|
+
export declare const availableDefaultBaseLayers: import("../store/mapStore/types").Layer[];
|
|
2
|
+
export declare const preloadedDefaultBaseServices: import("./types").Service[];
|
|
3
|
+
export declare const preloadedDefaultMapServices: import("./types").Service[];
|
|
@@ -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,6 +41,8 @@ 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;
|
|
@@ -50,16 +52,26 @@ export declare const defaultReduxServices: {
|
|
|
50
52
|
name: string;
|
|
51
53
|
text: string;
|
|
52
54
|
leaf: boolean;
|
|
53
|
-
path:
|
|
54
|
-
keywords:
|
|
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[];
|
|
55
65
|
abstract: string;
|
|
66
|
+
styles: Style[];
|
|
56
67
|
} | {
|
|
57
68
|
name: string;
|
|
58
69
|
text: string;
|
|
59
70
|
leaf: boolean;
|
|
60
|
-
path:
|
|
71
|
+
path: any[];
|
|
61
72
|
keywords: any[];
|
|
62
73
|
abstract?: undefined;
|
|
74
|
+
styles?: undefined;
|
|
63
75
|
})[];
|
|
64
76
|
};
|
|
65
77
|
};
|
|
@@ -177,7 +189,7 @@ export declare const WmMultiDimensionServices: {
|
|
|
177
189
|
name: string;
|
|
178
190
|
text: string;
|
|
179
191
|
leaf: boolean;
|
|
180
|
-
path:
|
|
192
|
+
path: any[];
|
|
181
193
|
}[];
|
|
182
194
|
};
|
|
183
195
|
'https://testservice': {
|
|
@@ -188,7 +200,7 @@ export declare const WmMultiDimensionServices: {
|
|
|
188
200
|
name: string;
|
|
189
201
|
text: string;
|
|
190
202
|
leaf: boolean;
|
|
191
|
-
path:
|
|
203
|
+
path: any[];
|
|
192
204
|
}[];
|
|
193
205
|
};
|
|
194
206
|
};
|
|
@@ -10,6 +10,7 @@ export interface LayerTree {
|
|
|
10
10
|
keywords?: string[];
|
|
11
11
|
abstract?: string;
|
|
12
12
|
text?: string;
|
|
13
|
+
styles?: any[];
|
|
13
14
|
}
|
|
14
15
|
/**
|
|
15
16
|
* Converts webmapjs node structure to LayerTree
|
|
@@ -23,8 +24,8 @@ export declare const recurseNodes: (nodesToRecur: LayerTree) => LayerTree;
|
|
|
23
24
|
*/
|
|
24
25
|
export declare const getLayersFromService: (serviceUrl: string, forceReload?: boolean) => Promise<LayerTree>;
|
|
25
26
|
/**
|
|
26
|
-
* Returns a promise with
|
|
27
|
+
* Returns a promise with an array of flattened layerobjects from the WMS GetCapabilities document.
|
|
27
28
|
* @param serviceUrl The URL of the WMS service
|
|
28
29
|
* @param {boolean} forceReload **optional** forceReload: boolean, true will force the layers to be reloaded from the service, defaults to false
|
|
29
30
|
*/
|
|
30
|
-
export declare const
|
|
31
|
+
export declare const getLayersFlattenedFromService: (serviceUrl: string, forceReload?: boolean) => Promise<[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Bbox, Layer } from '../store/mapStore/types';
|
|
2
|
+
import { FilteredMapPresets, Service, MapPresets, LayerDimension } from './types';
|
|
3
|
+
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
4
|
+
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
5
|
+
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
6
|
+
export declare const filterBbox: (presetBbox: Bbox) => Bbox;
|
|
7
|
+
export declare const filterSrs: (presetSrs: string) => string;
|
|
8
|
+
export declare const filterDimensions: (mapLayers: Layer[]) => LayerDimension[];
|
|
9
|
+
export declare const filterMapPresets: (presets: MapPresets) => FilteredMapPresets;
|
|
10
|
+
export declare const getInitialPresets: (mapPresets: MapPresets, defaultInitialPresets: MapPresets) => FilteredMapPresets;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Bbox, Dimension, Layer } from '../store/mapStore/types';
|
|
2
|
+
export interface MapPresets {
|
|
3
|
+
preset: MapPreset;
|
|
4
|
+
}
|
|
5
|
+
export interface MapPreset {
|
|
6
|
+
presetType?: string;
|
|
7
|
+
presetId?: string;
|
|
8
|
+
presetName?: string;
|
|
9
|
+
srs?: string;
|
|
10
|
+
bbox?: Bbox;
|
|
11
|
+
services?: Service[];
|
|
12
|
+
baseServices?: Service[];
|
|
13
|
+
layers?: PresetLayer[];
|
|
14
|
+
activeLayerId?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Service {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
url: string;
|
|
20
|
+
}
|
|
21
|
+
export interface PresetLayer {
|
|
22
|
+
id?: string;
|
|
23
|
+
mapId?: string;
|
|
24
|
+
service?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
format?: string;
|
|
27
|
+
enabled?: string;
|
|
28
|
+
style?: string;
|
|
29
|
+
dimensions?: Dimension[];
|
|
30
|
+
opacity?: number;
|
|
31
|
+
type?: string;
|
|
32
|
+
layerType?: string;
|
|
33
|
+
status?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface LayerDimension {
|
|
36
|
+
dimension?: Dimension;
|
|
37
|
+
layerId?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface FilteredMapPresets {
|
|
40
|
+
presetType?: string;
|
|
41
|
+
presetId?: string;
|
|
42
|
+
presetName?: string;
|
|
43
|
+
bbox?: Bbox;
|
|
44
|
+
services?: Service[];
|
|
45
|
+
srs?: string;
|
|
46
|
+
layers?: Layer[];
|
|
47
|
+
baseLayers?: Layer[];
|
|
48
|
+
mapLayers?: Layer[];
|
|
49
|
+
activeLayerId?: string;
|
|
50
|
+
layerDimensions?: LayerDimension[];
|
|
51
|
+
baseServices?: Service[];
|
|
52
|
+
}
|
package/package.json
CHANGED
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
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.1
|
|
17
|
-
"@material
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
15
|
+
"react": "^17.0.2",
|
|
16
|
+
"@opengeoweb/theme": "2.2.1",
|
|
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.1
|
|
23
|
+
"@opengeoweb/webmap": "2.2.1",
|
|
24
24
|
"throttle-debounce": "^3.0.1",
|
|
25
25
|
"proj4": "^2.6.2",
|
|
26
26
|
"react-sortablejs": "^6.0.0",
|
|
27
|
-
"@opengeoweb/shared": "2.1
|
|
27
|
+
"@opengeoweb/shared": "2.2.1",
|
|
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.1
|
|
31
|
+
"@opengeoweb/form-fields": "2.2.1",
|
|
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,9 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ToggleButtonProps } from '@material-ui/lab';
|
|
3
|
-
export declare const useButtonStyles: (props: ToggleIconButtonProps) => import("@material-ui/styles").ClassNameMap<"button">;
|
|
4
|
-
export interface ToggleIconButtonProps extends ToggleButtonProps {
|
|
5
|
-
active?: boolean;
|
|
6
|
-
width?: number;
|
|
7
|
-
}
|
|
8
|
-
declare const ToggleIconButton: React.FC<ToggleIconButtonProps>;
|
|
9
|
-
export default ToggleIconButton;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ToggleIconButton } from './ToggleIconButton';
|