@opengeoweb/core 2.4.0 → 2.6.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/index.esm.js +815 -663
- package/index.umd.js +828 -675
- package/lib/components/LayerManager/LayerManager.d.ts +2 -1
- package/lib/components/LayerManager/LayerManagerConnect.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListRow.d.ts +18 -0
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerListUtils.d.ts +2 -1
- package/lib/components/LayerManager/LayerSelect/LayerSelectUtils.d.ts +4 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButton.spec.d.ts → LayerManager/LayerSelect/LayerSelectUtils.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -2
- package/lib/components/MapView/MapViewLayer.d.ts +3 -0
- package/lib/components/MapWarning/MapWarningProperties.d.ts +6 -0
- package/lib/components/{TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.spec.d.ts → MapWarning/MapWarningProperties.spec.d.ts} +0 -0
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +12 -7
- package/lib/components/ReactMapView/AdagucMapDraw.stories.d.ts +4 -0
- package/lib/components/ReactMapView/AdagucMapDrawContainer.d.ts +2 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +9 -0
- package/lib/components/{TooltipSelect/TooltipSelect.spec.d.ts → ReactMapView/AdagucMapDrawTools.spec.d.ts} +0 -0
- package/lib/components/TimeSlider/TimeSliderButtons/OptionsMenuButton/OptionsMenuButton.d.ts +0 -1
- package/lib/components/TimeSlider/TimeSliderButtons/TimeSliderButtons.d.ts +0 -1
- package/lib/index.d.ts +2 -2
- package/lib/store/layerSelect/sagas.d.ts +3 -1
- package/lib/store/mapStore/map/actions.d.ts +1 -8
- package/lib/store/mapStore/map/selectors.d.ts +0 -21
- package/lib/store/mapStore/service/reducer.d.ts +2 -8
- package/lib/store/mapStore/service/selectors.d.ts +6 -8
- package/lib/store/mapStore/service/types.d.ts +7 -9
- package/lib/store/mapStore/utils/helpers.d.ts +2 -0
- package/lib/store/ui/types.d.ts +1 -1
- package/lib/utils/defaultConfigurations.d.ts +2 -2
- package/lib/utils/defaultTestSettings.d.ts +10 -199
- package/lib/utils/jsonPresetFilter.d.ts +2 -1
- package/lib/utils/localStorage.d.ts +3 -0
- package/lib/utils/localStorage.spec.d.ts +1 -0
- package/lib/utils/types.d.ts +4 -5
- package/package.json +10 -9
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +0 -2
- package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButton.d.ts +0 -8
- package/lib/components/TimeSlider/TimeSliderButtons/LoopButton/LoopButtonConnect.d.ts +0 -10
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Style, WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { LayerOptions, Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
|
-
import { LayerType } from '../store/mapStore/types';
|
|
3
|
+
import { Layer, LayerType, Services } from '../store/mapStore/types';
|
|
4
4
|
export declare const defaultReduxLayerRadarColor: {
|
|
5
5
|
service: string;
|
|
6
6
|
name: string;
|
|
@@ -18,209 +18,20 @@ export declare const defaultReduxLayerRadarColor: {
|
|
|
18
18
|
}[];
|
|
19
19
|
id: string;
|
|
20
20
|
};
|
|
21
|
-
export declare const defaultReduxLayerRadarKNMI:
|
|
22
|
-
service: string;
|
|
23
|
-
name: string;
|
|
24
|
-
title: string;
|
|
25
|
-
format: string;
|
|
26
|
-
style: string;
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
layerType: LayerType;
|
|
29
|
-
dimensions: {
|
|
30
|
-
name: string;
|
|
31
|
-
units: string;
|
|
32
|
-
currentValue: string;
|
|
33
|
-
}[];
|
|
34
|
-
styles: {
|
|
35
|
-
title: string;
|
|
36
|
-
name: string;
|
|
37
|
-
legendURL: string;
|
|
38
|
-
abstract: string;
|
|
39
|
-
}[];
|
|
40
|
-
id: string;
|
|
41
|
-
};
|
|
21
|
+
export declare const defaultReduxLayerRadarKNMI: Layer;
|
|
42
22
|
export declare const WmdefaultReduxLayerRadarKNMI: WMLayer;
|
|
43
23
|
export declare const makeGeoservicesRadarLayer: () => WMLayer;
|
|
44
24
|
export declare const styleListForRADNL25PCPCMLayer: Style[];
|
|
45
25
|
export declare const styleListForRADNLOPERR25PCPRRL3KNMILayer: Style[];
|
|
46
|
-
export declare const defaultReduxServices:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
name: string;
|
|
50
|
-
service: string;
|
|
51
|
-
layers: ({
|
|
52
|
-
name: string;
|
|
53
|
-
text: string;
|
|
54
|
-
leaf: boolean;
|
|
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
|
-
})[];
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
export declare const multiDimensionLayer: {
|
|
79
|
-
service: string;
|
|
80
|
-
id: string;
|
|
81
|
-
name: string;
|
|
82
|
-
title: string;
|
|
83
|
-
layerType: LayerType;
|
|
84
|
-
enabled: boolean;
|
|
85
|
-
dimensions: ({
|
|
86
|
-
name: string;
|
|
87
|
-
units: string;
|
|
88
|
-
currentValue: string;
|
|
89
|
-
values: string;
|
|
90
|
-
} | {
|
|
91
|
-
name: string;
|
|
92
|
-
units: string;
|
|
93
|
-
currentValue: string;
|
|
94
|
-
values?: undefined;
|
|
95
|
-
})[];
|
|
96
|
-
styles: {
|
|
97
|
-
title: string;
|
|
98
|
-
name: string;
|
|
99
|
-
legendURL: string;
|
|
100
|
-
abstract: string;
|
|
101
|
-
}[];
|
|
102
|
-
};
|
|
103
|
-
export declare const flDimensionLayer: {
|
|
104
|
-
service: string;
|
|
105
|
-
id: string;
|
|
106
|
-
name: string;
|
|
107
|
-
title: string;
|
|
108
|
-
layerType: LayerType;
|
|
109
|
-
enabled: boolean;
|
|
110
|
-
dimensions: ({
|
|
111
|
-
name: string;
|
|
112
|
-
units: string;
|
|
113
|
-
currentValue: string;
|
|
114
|
-
values: string;
|
|
115
|
-
} | {
|
|
116
|
-
name: string;
|
|
117
|
-
units: string;
|
|
118
|
-
currentValue: string;
|
|
119
|
-
values?: undefined;
|
|
120
|
-
})[];
|
|
121
|
-
};
|
|
26
|
+
export declare const defaultReduxServices: Services;
|
|
27
|
+
export declare const multiDimensionLayer: Layer;
|
|
28
|
+
export declare const flDimensionLayer: Layer;
|
|
122
29
|
export declare const WmMultiDimensionLayer: WMLayer;
|
|
123
|
-
export declare const multiDimensionLayer2:
|
|
124
|
-
|
|
125
|
-
id: string;
|
|
126
|
-
name: string;
|
|
127
|
-
layerType: LayerType;
|
|
128
|
-
dimensions: ({
|
|
129
|
-
name: string;
|
|
130
|
-
units: string;
|
|
131
|
-
currentValue: string;
|
|
132
|
-
values: string;
|
|
133
|
-
} | {
|
|
134
|
-
name: string;
|
|
135
|
-
units: string;
|
|
136
|
-
currentValue: string;
|
|
137
|
-
values?: undefined;
|
|
138
|
-
})[];
|
|
139
|
-
styles: {
|
|
140
|
-
title: string;
|
|
141
|
-
name: string;
|
|
142
|
-
legendURL: string;
|
|
143
|
-
abstract: string;
|
|
144
|
-
}[];
|
|
145
|
-
};
|
|
146
|
-
export declare const multiDimensionLayer3: {
|
|
147
|
-
service: string;
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
layerType: LayerType;
|
|
151
|
-
dimensions: ({
|
|
152
|
-
name: string;
|
|
153
|
-
units: string;
|
|
154
|
-
currentValue: string;
|
|
155
|
-
values: string;
|
|
156
|
-
timeInterval?: undefined;
|
|
157
|
-
} | {
|
|
158
|
-
name: string;
|
|
159
|
-
units: string;
|
|
160
|
-
currentValue: string;
|
|
161
|
-
timeInterval: {
|
|
162
|
-
year: number;
|
|
163
|
-
month: number;
|
|
164
|
-
day: number;
|
|
165
|
-
hour: number;
|
|
166
|
-
minute: number;
|
|
167
|
-
second: number;
|
|
168
|
-
isRegularInterval: boolean;
|
|
169
|
-
getTime: any;
|
|
170
|
-
toISO8601: any;
|
|
171
|
-
};
|
|
172
|
-
values?: undefined;
|
|
173
|
-
})[];
|
|
174
|
-
styles: {
|
|
175
|
-
title: string;
|
|
176
|
-
name: string;
|
|
177
|
-
legendURL: string;
|
|
178
|
-
abstract: string;
|
|
179
|
-
}[];
|
|
180
|
-
};
|
|
30
|
+
export declare const multiDimensionLayer2: Layer;
|
|
31
|
+
export declare const multiDimensionLayer3: Layer;
|
|
181
32
|
export declare const WmMultiDimensionLayer2: WMLayer;
|
|
182
33
|
export declare const WmMultiDimensionLayer3: WMLayer;
|
|
183
|
-
export declare const WmMultiDimensionServices:
|
|
184
|
-
|
|
185
|
-
id: string;
|
|
186
|
-
name: string;
|
|
187
|
-
service: string;
|
|
188
|
-
layers: {
|
|
189
|
-
name: string;
|
|
190
|
-
text: string;
|
|
191
|
-
leaf: boolean;
|
|
192
|
-
path: any[];
|
|
193
|
-
}[];
|
|
194
|
-
};
|
|
195
|
-
'https://testservice': {
|
|
196
|
-
id: string;
|
|
197
|
-
name: string;
|
|
198
|
-
service: string;
|
|
199
|
-
layers: {
|
|
200
|
-
name: string;
|
|
201
|
-
text: string;
|
|
202
|
-
leaf: boolean;
|
|
203
|
-
path: any[];
|
|
204
|
-
}[];
|
|
205
|
-
};
|
|
206
|
-
};
|
|
207
|
-
export declare const layerWithoutTimeDimension: {
|
|
208
|
-
service: string;
|
|
209
|
-
id: string;
|
|
210
|
-
name: string;
|
|
211
|
-
layerType: LayerType;
|
|
212
|
-
dimensions: {
|
|
213
|
-
name: string;
|
|
214
|
-
units: string;
|
|
215
|
-
currentValue: string;
|
|
216
|
-
values: string;
|
|
217
|
-
}[];
|
|
218
|
-
styles: {
|
|
219
|
-
title: string;
|
|
220
|
-
name: string;
|
|
221
|
-
legendURL: string;
|
|
222
|
-
abstract: string;
|
|
223
|
-
}[];
|
|
224
|
-
};
|
|
34
|
+
export declare const WmMultiDimensionServices: Services;
|
|
35
|
+
export declare const layerWithoutTimeDimension: LayerOptions;
|
|
225
36
|
export declare const WmLayerWithoutTimeDimension: WMLayer;
|
|
226
37
|
export declare const defaultTestServices: Service[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Service } from '../components/WMSLoader/services';
|
|
1
2
|
import { Bbox, Layer } from '../store/mapStore/types';
|
|
2
|
-
import { FilteredMapPresets,
|
|
3
|
+
import { FilteredMapPresets, MapPresets, LayerDimension } from './types';
|
|
3
4
|
export declare const filterBaseLayers: (presetArray: unknown[]) => Layer[];
|
|
4
5
|
export declare const filterMapLayers: (presetArray: unknown[]) => Layer[];
|
|
5
6
|
export declare const filterServices: (presetArray: Service[]) => Service[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/lib/utils/types.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
+
import { Service } from '../components/WMSLoader/services';
|
|
1
2
|
import { Bbox, Dimension, Layer } from '../store/mapStore/types';
|
|
2
|
-
export interface Service {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
url: string;
|
|
6
|
-
}
|
|
7
3
|
export interface PresetLayer {
|
|
8
4
|
id?: string;
|
|
9
5
|
mapId?: string;
|
|
@@ -41,3 +37,6 @@ export interface FilteredMapPresets extends MapPreset {
|
|
|
41
37
|
mapLayers?: Layer[];
|
|
42
38
|
layerDimensions?: LayerDimension[];
|
|
43
39
|
}
|
|
40
|
+
export interface UserAddedServices {
|
|
41
|
+
[id: string]: Service;
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,30 +13,31 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
16
|
+
"@opengeoweb/theme": "2.6.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
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/
|
|
24
|
-
"throttle-debounce": "^3.0.1",
|
|
25
|
-
"proj4": "^2.6.2",
|
|
26
|
-
"react-sortablejs": "^6.0.0",
|
|
27
|
-
"@opengeoweb/shared": "2.4.0",
|
|
23
|
+
"@opengeoweb/shared": "2.6.0",
|
|
28
24
|
"react-draggable": "^4.4.3",
|
|
29
25
|
"re-resizable": "^6.9.0",
|
|
30
26
|
"lodash": "^4.17.20",
|
|
31
|
-
"@opengeoweb/form-fields": "2.
|
|
27
|
+
"@opengeoweb/form-fields": "2.6.0",
|
|
32
28
|
"react-hook-form": "^6.12.1",
|
|
33
29
|
"moment-timezone": "^0.5.31",
|
|
34
30
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
35
31
|
"axios": "^0.25.0",
|
|
32
|
+
"@opengeoweb/webmap": "2.6.0",
|
|
33
|
+
"throttle-debounce": "^3.0.1",
|
|
34
|
+
"proj4": "^2.6.2",
|
|
35
|
+
"react-sortablejs": "^6.0.0",
|
|
36
36
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
37
|
"redux": "^4.0.4",
|
|
38
|
-
"lodash.clonedeep": "^4.5.0",
|
|
39
38
|
"immer": "^9.0.6",
|
|
39
|
+
"lodash.clonedeep": "^4.5.0",
|
|
40
|
+
"@turf/turf": "^5.1.6",
|
|
40
41
|
"reselect": "^4.1.5",
|
|
41
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
42
43
|
"redux-saga": "^1.1.3"
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import * as mapActions from '../../../../store/mapStore/actions';
|
|
3
|
-
export interface LoopButtonConnectProps {
|
|
4
|
-
mapId: string;
|
|
5
|
-
isLooping?: boolean;
|
|
6
|
-
isDisabled?: boolean;
|
|
7
|
-
mapToggleLoop?: typeof mapActions.toggleLoop;
|
|
8
|
-
}
|
|
9
|
-
declare const LoopButtonConnect: React.FC<LoopButtonConnectProps>;
|
|
10
|
-
export default LoopButtonConnect;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { SelectProps } from '@mui/material';
|
|
3
|
-
declare type ListELement = {
|
|
4
|
-
value: string;
|
|
5
|
-
};
|
|
6
|
-
interface TooltipSelectProps extends SelectProps {
|
|
7
|
-
tooltip: string;
|
|
8
|
-
list?: ListELement[];
|
|
9
|
-
currentIndex?: number;
|
|
10
|
-
onChangeMouseWheel?: (element: ListELement) => void;
|
|
11
|
-
requiresCtrlToChange?: boolean;
|
|
12
|
-
}
|
|
13
|
-
declare const TooltipSelect: React.FC<TooltipSelectProps>;
|
|
14
|
-
export default TooltipSelect;
|