@opengeoweb/core 9.13.0 → 9.15.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 +1411 -729
- package/package.json +1 -3
- package/src/lib/components/ConfigurableMapConnect/ConfigurableMapConnect.d.ts +1 -1
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.d.ts +11 -0
- package/src/lib/components/LayerInfoConnect/LayerInfoButtonConnect.spec.d.ts +1 -0
- package/src/lib/components/LayerInfoConnect/LayerInfoDialogConnect.d.ts +2 -0
- package/src/lib/components/LayerInfoConnect/index.d.ts +2 -0
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +3 -3
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +3 -3
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -3
- package/src/lib/components/LayerManager/DescriptionRow/DescriptionRow.d.ts +1 -2
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTime.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/AcceptanceTime/AcceptanceTimeConnect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectConnect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectName.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/DimensionSelect/DimensionSelectValue.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +8 -3
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts +10 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.spec.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts +3 -2
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayersConnect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStyles.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderStyles/RenderStylesConnect.d.ts +1 -0
- package/src/lib/components/LayerManager/LayerManager.d.ts +3 -4
- package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +5 -6
- package/src/lib/components/LayerManager/LayerManagerUtils.d.ts +8 -2
- package/src/lib/components/LayerManager/LayerSelect/LayerSelectButton.d.ts +8 -0
- package/src/lib/components/LayerManager/useFetchServices.d.ts +3 -4
- package/src/lib/components/Providers/Providers.d.ts +5 -0
- package/src/lib/components/SyncGroups/SimpleTimeSlider.d.ts +2 -3
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/ControlButtonsConnect.d.ts +1 -0
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuButtonConnect.d.ts +0 -1
- package/src/lib/components/TimeSliderConnect/TimeSliderButtonsConnect/OptionsMenuConnect.d.ts +0 -1
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTree.d.ts +2 -3
- package/src/lib/components/WMSLoader/WMSLayerTree/WMSLayerTreeConnect.d.ts +3 -4
- package/src/lib/components/WMSLoader/WMSLoader.d.ts +3 -3
- package/src/lib/components/WMSLoader/WMSLoaderConnect.d.ts +2 -2
- package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +4 -4
- package/src/lib/index.d.ts +1 -0
- package/src/lib/utils/defaultConfigurations.d.ts +2 -2
- package/src/lib/utils/defaultTestSettings.d.ts +2 -3
- package/src/lib/utils/i18n.d.ts +2 -0
- package/src/lib/utils/jsonPresetFilter.d.ts +6 -7
- package/src/lib/utils/languageTranslation.d.ts +20 -28
- package/src/lib/utils/languagesService.d.ts +25 -0
- package/src/lib/utils/translationUpdater.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.15.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"@mui/material": "~5.15.11",
|
|
19
19
|
"@opengeoweb/theme": "*",
|
|
20
20
|
"axios": "1.5.0",
|
|
21
|
-
"@opengeoweb/api": "*",
|
|
22
21
|
"@opengeoweb/layer-select": "*",
|
|
23
22
|
"lodash": "^4.17.21",
|
|
24
23
|
"react-sortablejs": "^6.1.4",
|
|
@@ -27,7 +26,6 @@
|
|
|
27
26
|
"@opengeoweb/snackbar": "*",
|
|
28
27
|
"react-router-dom": "^6.21.0",
|
|
29
28
|
"react-draggable": "^4.4.6",
|
|
30
|
-
"moment": "^2.29.4",
|
|
31
29
|
"i18next": "^23.7.11",
|
|
32
30
|
"react-i18next": "^13.5.0",
|
|
33
31
|
"dompurify": "^3.0.6"
|
|
@@ -14,7 +14,7 @@ export interface ConfigurableMapConnectProps {
|
|
|
14
14
|
dockedLayerManagerSize?: mapTypes.DockedLayerManagerSize;
|
|
15
15
|
shouldAutoUpdate?: boolean;
|
|
16
16
|
shouldAnimate?: boolean;
|
|
17
|
-
shouldAutoFetch?: boolean;
|
|
17
|
+
shouldAutoFetch?: boolean | number;
|
|
18
18
|
title?: string;
|
|
19
19
|
layers: layerTypes.Layer[];
|
|
20
20
|
autoUpdateLayerId?: string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { uiTypes } from '@opengeoweb/store';
|
|
3
|
+
interface LayerInfoButtonProps {
|
|
4
|
+
isLayerMissing?: boolean;
|
|
5
|
+
mapId: string;
|
|
6
|
+
serviceUrl: string;
|
|
7
|
+
layerName: string;
|
|
8
|
+
source?: uiTypes.Source;
|
|
9
|
+
}
|
|
10
|
+
export declare const LayerInfoButtonConnect: React.FC<LayerInfoButtonProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
3
2
|
import { LayerType } from '@opengeoweb/webmap';
|
|
3
|
+
import { serviceTypes } from '@opengeoweb/store';
|
|
4
4
|
interface AddLayerButtonProps {
|
|
5
|
-
onRenderTree?: (service:
|
|
6
|
-
preloadedServices?:
|
|
5
|
+
onRenderTree?: (service: serviceTypes.InitialService) => React.ReactNode;
|
|
6
|
+
preloadedServices?: serviceTypes.InitialService[];
|
|
7
7
|
tooltip?: string;
|
|
8
8
|
layerType?: LayerType;
|
|
9
9
|
shouldFocus?: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
3
2
|
import { LayerType } from '@opengeoweb/webmap';
|
|
3
|
+
import { serviceTypes } from '@opengeoweb/store';
|
|
4
4
|
interface AddLayerPopupProps {
|
|
5
|
-
onRenderTree?: (service:
|
|
6
|
-
preloadedServices?:
|
|
5
|
+
onRenderTree?: (service: serviceTypes.InitialService) => React.ReactNode;
|
|
6
|
+
preloadedServices?: serviceTypes.InitialService[];
|
|
7
7
|
open?: boolean;
|
|
8
8
|
handleClose?: () => void;
|
|
9
9
|
layerType?: LayerType;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Grid } from '@mui/material';
|
|
3
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
4
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
3
|
+
import { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
5
4
|
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
6
5
|
interface BaseLayerRowProps extends React.ComponentProps<typeof Grid> {
|
|
7
6
|
mapId: string;
|
|
8
7
|
preloadedAvailableBaseLayers?: layerTypes.Layer[];
|
|
9
|
-
preloadedServices?:
|
|
8
|
+
preloadedServices?: serviceTypes.InitialService[];
|
|
10
9
|
tooltip?: string;
|
|
11
10
|
settings?: LayerManagerCustomSettings['footer'];
|
|
12
11
|
}
|
|
@@ -3,11 +3,10 @@ import * as React from 'react';
|
|
|
3
3
|
import { uiTypes } from '@opengeoweb/store';
|
|
4
4
|
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
5
5
|
interface DescriptionRowProps extends React.ComponentProps<typeof Grid> {
|
|
6
|
-
mapId: string;
|
|
7
6
|
mapPresetsModule?: React.ReactElement;
|
|
8
7
|
source?: uiTypes.Source;
|
|
9
8
|
settings?: LayerManagerCustomSettings['header'];
|
|
10
|
-
|
|
9
|
+
addLayerComponent?: React.ReactElement;
|
|
11
10
|
}
|
|
12
11
|
declare const DescriptionRow: React.FC<DescriptionRowProps>;
|
|
13
12
|
export default DescriptionRow;
|
|
@@ -20,6 +20,7 @@ export interface DimensionSelectProps {
|
|
|
20
20
|
setUseLatestReferenceTime?: (useLatestReferenceTime: boolean) => void;
|
|
21
21
|
SingleValueComponent?: React.FC<SingleValueComponentProps>;
|
|
22
22
|
hideLatestDuplicate?: boolean;
|
|
23
|
+
skipLocalStyling?: boolean;
|
|
23
24
|
}
|
|
24
25
|
declare const DimensionSelect: FC<DimensionSelectProps>;
|
|
25
26
|
export default DimensionSelect;
|
|
@@ -10,6 +10,7 @@ declare const DimensionSelectValue: FC<{
|
|
|
10
10
|
valueMappings?: DimensionValueMappings;
|
|
11
11
|
hideLatestDuplicate?: boolean;
|
|
12
12
|
useLatestReferenceTime?: boolean;
|
|
13
|
+
skipLocalStyling?: boolean;
|
|
13
14
|
setUseLatestReferenceTime?: (useLatestReferenceTime: boolean) => void;
|
|
14
15
|
}>;
|
|
15
16
|
export default DimensionSelectValue;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { mapTypes, layerTypes } from '@opengeoweb/store';
|
|
3
3
|
import type { serviceTypes } from '@opengeoweb/store';
|
|
4
|
-
|
|
4
|
+
type LayerRowProps = Omit<LayerRowUnstyledProps, 'className'>;
|
|
5
|
+
interface LayerRowUnstyledProps {
|
|
5
6
|
layerId?: string;
|
|
6
7
|
layer?: layerTypes.Layer;
|
|
7
8
|
layerName?: string;
|
|
@@ -51,11 +52,15 @@ interface LayerRowProps {
|
|
|
51
52
|
layerShowLayerInfoLayout?: React.ReactElement;
|
|
52
53
|
layerMenuLayout?: React.ReactElement;
|
|
53
54
|
layerActiveLayout?: React.ReactElement;
|
|
55
|
+
layerLoadDurationLayout?: React.ReactElement;
|
|
54
56
|
disableActivateLayer?: boolean;
|
|
55
57
|
services?: serviceTypes.Services;
|
|
56
58
|
isEnabled?: boolean;
|
|
57
59
|
dragHandle?: React.ReactElement;
|
|
58
60
|
isLayerMissing?: boolean;
|
|
61
|
+
className: string;
|
|
59
62
|
}
|
|
60
|
-
declare const LayerRow:
|
|
63
|
+
declare const LayerRow: import("@emotion/styled").StyledComponent<LayerRowProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
64
|
+
isEnabled?: boolean | undefined;
|
|
65
|
+
}, {}, {}>;
|
|
61
66
|
export default LayerRow;
|
package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/LoadDuration/LoadDuration.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const MAX_DURATION_IN_SECONDS = 60;
|
|
3
|
+
export declare const MIN_DURATION_IN_SECONDS = 0.1;
|
|
4
|
+
export declare const DECIMALS_IN_LABEL = 1;
|
|
5
|
+
export declare const DECIMALS_IN_TOOLTIP = 3;
|
|
6
|
+
declare const LoadDuration: React.FC<{
|
|
7
|
+
mapId: string;
|
|
8
|
+
layerId: string;
|
|
9
|
+
}>;
|
|
10
|
+
export default LoadDuration;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/lib/components/LayerManager/LayerContainerRow/LayerRow/RenderLayers/RenderLayers.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { LayerProps } from '@opengeoweb/webmap';
|
|
3
3
|
export interface RenderLayersProps {
|
|
4
4
|
onChangeLayerName: (name: string) => void;
|
|
5
5
|
layerName: string;
|
|
6
|
-
layers:
|
|
6
|
+
layers: LayerProps[];
|
|
7
7
|
isEnabled?: boolean;
|
|
8
8
|
tooltipPrefix?: string;
|
|
9
|
+
skipLocalStyling?: boolean;
|
|
9
10
|
}
|
|
10
11
|
declare const RenderLayers: React.FC<RenderLayersProps>;
|
|
11
12
|
export default RenderLayers;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Position, DraggableSize, HeaderSize } from '@opengeoweb/shared';
|
|
3
3
|
import { layerTypes } from '@opengeoweb/store';
|
|
4
|
-
import type { uiTypes } from '@opengeoweb/store';
|
|
5
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
4
|
+
import type { serviceTypes, uiTypes } from '@opengeoweb/store';
|
|
6
5
|
import { LayerManagerCustomSettings } from './LayerManagerUtils';
|
|
7
6
|
interface LayerManagerProps {
|
|
8
7
|
mapId: string;
|
|
9
8
|
preloadedAvailableBaseLayers?: layerTypes.Layer[];
|
|
10
|
-
preloadedBaseServices?:
|
|
9
|
+
preloadedBaseServices?: serviceTypes.InitialService[];
|
|
11
10
|
bounds?: string;
|
|
12
11
|
title?: string;
|
|
13
12
|
onClose: () => void;
|
|
@@ -25,8 +24,8 @@ interface LayerManagerProps {
|
|
|
25
24
|
setFocused?: (focused: boolean) => void;
|
|
26
25
|
settings?: LayerManagerCustomSettings;
|
|
27
26
|
headerSize?: HeaderSize;
|
|
28
|
-
isMultiMap?: boolean;
|
|
29
27
|
mapWidthRef?: React.RefObject<HTMLDivElement>;
|
|
28
|
+
addLayerComponent?: React.ReactElement;
|
|
30
29
|
}
|
|
31
30
|
declare const LayerManager: React.FC<LayerManagerProps>;
|
|
32
31
|
export default LayerManager;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerTypes, uiTypes } from '@opengeoweb/store';
|
|
3
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
2
|
+
import { layerTypes, uiTypes, serviceTypes } from '@opengeoweb/store';
|
|
4
3
|
export declare const getDialogType: (mapId: string, isMultiMap: boolean, isDocked: boolean) => string;
|
|
5
4
|
interface LayerManagerConnectProps {
|
|
6
5
|
mapId?: string;
|
|
7
6
|
preloadedAvailableBaseLayers?: layerTypes.Layer[];
|
|
8
|
-
preloadedMapServices?:
|
|
9
|
-
preloadedBaseServices?:
|
|
7
|
+
preloadedMapServices?: serviceTypes.InitialService[];
|
|
8
|
+
preloadedBaseServices?: serviceTypes.InitialService[];
|
|
10
9
|
bounds?: string;
|
|
11
10
|
title?: string;
|
|
12
11
|
showMapIdInTitle?: boolean;
|
|
@@ -22,8 +21,8 @@ interface LayerManagerConnectProps {
|
|
|
22
21
|
* a dialog should have the <LayerManagerMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
23
22
|
*
|
|
24
23
|
* Expects the following props:
|
|
25
|
-
* @param {
|
|
26
|
-
* @param {
|
|
24
|
+
* @param {serviceTypes.InitialService[]} preloadedMapServices preloadedMapServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader for maplayers
|
|
25
|
+
* @param {serviceTypes.InitialService[]} preloadedBaseServices preloadedBaseServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader fpr baselayers
|
|
27
26
|
* @param {Layer[]} preloadedAvailableBaseLayers preloadedAvailableBaseLayers: array of Layer objects - contains an array of Layer objects (consisting solely of type baseLayer) that are available to be shown as basemaps
|
|
28
27
|
* ``` <LayerManagerConnect />```
|
|
29
28
|
*/
|
|
@@ -11,6 +11,7 @@ export declare const columnClasses: {
|
|
|
11
11
|
column6: string;
|
|
12
12
|
column7: string;
|
|
13
13
|
acceptanceTime: string;
|
|
14
|
+
loadDuration: string;
|
|
14
15
|
};
|
|
15
16
|
export declare const leftButtonsStyle: {
|
|
16
17
|
width: number;
|
|
@@ -39,6 +40,11 @@ export declare const layerManagerStyle: {
|
|
|
39
40
|
'.column-acceptanceTime': {
|
|
40
41
|
width: number;
|
|
41
42
|
};
|
|
43
|
+
'.column-loadDuration': {
|
|
44
|
+
width: number;
|
|
45
|
+
paddingLeft: number;
|
|
46
|
+
paddingRight: number;
|
|
47
|
+
};
|
|
42
48
|
'.column-6': {
|
|
43
49
|
width: number;
|
|
44
50
|
display: string;
|
|
@@ -70,7 +76,7 @@ export declare const layerManagerStyle: {
|
|
|
70
76
|
'.enable-btn-mini': {
|
|
71
77
|
display: string;
|
|
72
78
|
};
|
|
73
|
-
'.activateLayer-btn, .enable-btn, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime': {
|
|
79
|
+
'.activateLayer-btn, .enable-btn, .column-2, .column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
74
80
|
display: string;
|
|
75
81
|
};
|
|
76
82
|
'#mappresets-menubutton, .addLayer-column, .setProjection-column': {
|
|
@@ -103,7 +109,7 @@ export declare const layerManagerStyle: {
|
|
|
103
109
|
};
|
|
104
110
|
'@container (max-width: 600px)': {
|
|
105
111
|
'.layermanager': {
|
|
106
|
-
'.column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime': {
|
|
112
|
+
'.column-3, .column-4, .column-5, .column-6, .column-7, .column-acceptanceTime, .column-loadDuration': {
|
|
107
113
|
display: string;
|
|
108
114
|
};
|
|
109
115
|
'.column-2': {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { serviceTypes } from '@opengeoweb/store';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const mergePresetsAndUserAddedServices: (presets: layerSelectTypes.LayerSelectService[], userAddedServices: layerSelectTypes.UserAddedServices) => layerSelectTypes.NoIdService[];
|
|
2
|
+
export declare const getServicesToLoad: (services: serviceTypes.NoIdService[]) => serviceTypes.InitialService[];
|
|
3
|
+
export declare const useFetchServices: (dialogType: string, preloadedServices?: serviceTypes.InitialService[] | undefined, shouldDisableFetch?: boolean) => void;
|
|
4
|
+
export declare const mergePresetsAndUserAddedServices: (presets: serviceTypes.InitialService[], userAddedServices: serviceTypes.UserAddedServices) => serviceTypes.NoIdService[];
|
|
@@ -5,6 +5,9 @@ interface CoreThemeProviderProps {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
theme?: Theme;
|
|
7
7
|
}
|
|
8
|
+
interface CoreTranslationWrapperProps {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
8
11
|
/**
|
|
9
12
|
* A Provider component which provides the GeoWeb theme
|
|
10
13
|
* @param children
|
|
@@ -21,4 +24,6 @@ interface CoreThemeStoreProviderProps extends CoreThemeProviderProps {
|
|
|
21
24
|
* @returns
|
|
22
25
|
*/
|
|
23
26
|
export declare const CoreThemeStoreProvider: React.FC<CoreThemeStoreProviderProps>;
|
|
27
|
+
export declare const CoreTranslationsWrapper: React.FC<CoreTranslationWrapperProps>;
|
|
28
|
+
export declare const CoreI18nProvider: React.FC<CoreTranslationWrapperProps>;
|
|
24
29
|
export {};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
export interface SimpleTimeSliderProps {
|
|
4
3
|
setTime: (time: string) => void;
|
|
5
4
|
timeValue: string;
|
|
6
|
-
startValue:
|
|
7
|
-
endValue:
|
|
5
|
+
startValue: string;
|
|
6
|
+
endValue: string;
|
|
8
7
|
}
|
|
9
8
|
export declare const SimpleTimeSlider: React.FC<SimpleTimeSliderProps>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
2
|
+
import { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
4
3
|
interface WMSLayerTreeProps {
|
|
5
|
-
service:
|
|
4
|
+
service: serviceTypes.InitialService;
|
|
6
5
|
onClickLayer: (serviceURL: string, layerName: string) => void;
|
|
7
6
|
highlightedLayers: layerTypes.Layer[];
|
|
8
7
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layerActions, layerTypes } from '@opengeoweb/store';
|
|
2
|
+
import { layerActions, layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
3
3
|
import { LayerType } from '@opengeoweb/webmap';
|
|
4
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
5
4
|
export interface WMSLayerTreeConnectProps {
|
|
6
|
-
service:
|
|
5
|
+
service: serviceTypes.InitialService;
|
|
7
6
|
addLayer?: typeof layerActions.addLayer;
|
|
8
7
|
setBaseLayers?: typeof layerActions.setBaseLayers;
|
|
9
8
|
addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer;
|
|
@@ -12,7 +11,7 @@ export interface WMSLayerTreeConnectProps {
|
|
|
12
11
|
layerType?: LayerType;
|
|
13
12
|
}
|
|
14
13
|
declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, {
|
|
15
|
-
service:
|
|
14
|
+
service: serviceTypes.InitialService;
|
|
16
15
|
mapId: string;
|
|
17
16
|
layerType?: LayerType | undefined;
|
|
18
17
|
addLayer?: import("@reduxjs/toolkit").ActionCreatorWithPayload<layerTypes.AddLayerPayload, "layerReducer/addLayer"> | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { serviceTypes } from '@opengeoweb/store';
|
|
3
3
|
interface WMSLoaderProps {
|
|
4
4
|
onClickService?: (serviceURL: string, layerName: string) => void;
|
|
5
|
-
onRenderTree?: (service:
|
|
5
|
+
onRenderTree?: (service: serviceTypes.InitialService) => React.ReactNode;
|
|
6
6
|
highlightedLayers?: [];
|
|
7
|
-
preloadedServices?:
|
|
7
|
+
preloadedServices?: serviceTypes.InitialService[];
|
|
8
8
|
tooltip?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const WMSLoader: React.FC<WMSLoaderProps>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
3
2
|
import { LayerType } from '@opengeoweb/webmap';
|
|
3
|
+
import { serviceTypes } from '@opengeoweb/store';
|
|
4
4
|
interface WMSLoaderConnectProps {
|
|
5
5
|
mapId: string;
|
|
6
|
-
preloadedServices?:
|
|
6
|
+
preloadedServices?: serviceTypes.InitialService[];
|
|
7
7
|
layerType?: LayerType;
|
|
8
8
|
tooltip?: string;
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { serviceTypes } from '@opengeoweb/store';
|
|
3
3
|
interface WMSServerListProps {
|
|
4
|
-
availableServices:
|
|
5
|
-
handleChangeService: (service:
|
|
6
|
-
service:
|
|
4
|
+
availableServices: serviceTypes.InitialService[];
|
|
5
|
+
handleChangeService: (service: serviceTypes.InitialService) => void;
|
|
6
|
+
service: serviceTypes.InitialService;
|
|
7
7
|
}
|
|
8
8
|
declare const WMSServerList: React.FC<WMSServerListProps>;
|
|
9
9
|
export default WMSServerList;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const availableDefaultBaseLayers: import("dist/libs/store/src/store/mapStore/types").Layer[];
|
|
2
|
-
export declare const preloadedDefaultBaseServices: import("dist/libs/
|
|
3
|
-
export declare const preloadedDefaultMapServices: import("dist/libs/
|
|
2
|
+
export declare const preloadedDefaultBaseServices: import("dist/libs/store/src/store/mapStore/types").InitialService[] | undefined;
|
|
3
|
+
export declare const preloadedDefaultMapServices: import("dist/libs/store/src/store/mapStore/types").InitialService[] | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
2
|
+
import { layerTypes, serviceTypes } from '@opengeoweb/store';
|
|
4
3
|
export declare const multiDimensionLayer: import("@opengeoweb/webmap").LayerOptions, WmdefaultReduxLayerRadarKNMI: WMLayer, defaultReduxLayerRadarKNMI: import("@opengeoweb/webmap").LayerFoundation & {
|
|
5
4
|
styles: import("@opengeoweb/webmap").Style[];
|
|
6
5
|
}, defaultReduxLayerRadarColor: import("@opengeoweb/webmap").LayerOptions, multiDimensionLayer3: import("@opengeoweb/webmap").LayerFoundation;
|
|
@@ -9,4 +8,4 @@ export declare const layerWithSingleDimensionValue: WMLayer;
|
|
|
9
8
|
export declare const WmMultiDimensionLayer: WMLayer;
|
|
10
9
|
export declare const multiDimensionLayer2: layerTypes.Layer;
|
|
11
10
|
export declare const WmMultiDimensionLayer3: WMLayer;
|
|
12
|
-
export declare const defaultTestServices:
|
|
11
|
+
export declare const defaultTestServices: serviceTypes.InitialService[];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { layerSelectTypes } from '@opengeoweb/layer-select';
|
|
2
1
|
import { TimeSeriesService } from '@opengeoweb/shared';
|
|
3
|
-
import { filterLayers, layerTypes, MapPreset } from '@opengeoweb/store';
|
|
2
|
+
import { filterLayers, layerTypes, MapPreset, serviceTypes } from '@opengeoweb/store';
|
|
4
3
|
interface FilteredMapPresets extends filterLayers.FilteredLayerList {
|
|
5
|
-
services?:
|
|
6
|
-
baseServices?:
|
|
4
|
+
services?: serviceTypes.InitialService[];
|
|
5
|
+
baseServices?: serviceTypes.InitialService[];
|
|
7
6
|
timeSeriesServices?: TimeSeriesService[];
|
|
8
7
|
initialViewMapPreset?: MapPreset;
|
|
9
8
|
}
|
|
@@ -11,9 +10,9 @@ export interface InitialAppPresetProps {
|
|
|
11
10
|
presetType?: string;
|
|
12
11
|
presetId?: string;
|
|
13
12
|
presetName?: string;
|
|
14
|
-
services?:
|
|
13
|
+
services?: serviceTypes.InitialService[];
|
|
15
14
|
timeSeriesServices?: TimeSeriesService[];
|
|
16
|
-
baseServices?:
|
|
15
|
+
baseServices?: serviceTypes.InitialService[];
|
|
17
16
|
layers?: layerTypes.Layer[];
|
|
18
17
|
baseLayers?: layerTypes.Layer[];
|
|
19
18
|
initialViewMapPreset?: MapPreset;
|
|
@@ -21,7 +20,7 @@ export interface InitialAppPresetProps {
|
|
|
21
20
|
export interface InitialAppPreset {
|
|
22
21
|
preset: InitialAppPresetProps;
|
|
23
22
|
}
|
|
24
|
-
export declare const filterServices: (presetArray:
|
|
23
|
+
export declare const filterServices: (presetArray: serviceTypes.InitialService[]) => serviceTypes.InitialService[];
|
|
25
24
|
export declare const filterTimeSeriesServices: (presetArray: TimeSeriesService[]) => TimeSeriesService[];
|
|
26
25
|
export declare const filterMapPresets: (initialAppPreset: InitialAppPreset | null) => FilteredMapPresets;
|
|
27
26
|
export {};
|
|
@@ -1,39 +1,31 @@
|
|
|
1
1
|
declare const translations: {
|
|
2
2
|
en: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
restore: string;
|
|
9
|
-
};
|
|
3
|
+
greeting: string;
|
|
4
|
+
greetingWithName: string;
|
|
5
|
+
delete: string;
|
|
6
|
+
deleteOK: string;
|
|
7
|
+
restore: string;
|
|
10
8
|
};
|
|
11
9
|
nl: {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
restore: string;
|
|
18
|
-
};
|
|
10
|
+
greeting: string;
|
|
11
|
+
greetingWithName: string;
|
|
12
|
+
delete: string;
|
|
13
|
+
deleteOK: string;
|
|
14
|
+
restore: string;
|
|
19
15
|
};
|
|
20
16
|
fi: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
restore: string;
|
|
27
|
-
};
|
|
17
|
+
greeting: string;
|
|
18
|
+
greetingWithName: string;
|
|
19
|
+
delete: string;
|
|
20
|
+
deleteOK: string;
|
|
21
|
+
restore: string;
|
|
28
22
|
};
|
|
29
23
|
no: {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
restore: string;
|
|
36
|
-
};
|
|
24
|
+
greeting: string;
|
|
25
|
+
greetingWithName: string;
|
|
26
|
+
delete: string;
|
|
27
|
+
deleteOK: string;
|
|
28
|
+
restore: string;
|
|
37
29
|
};
|
|
38
30
|
};
|
|
39
31
|
export default translations;
|