@opengeoweb/core 5.1.0 → 5.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/index.js +1543 -1487
- package/package.json +7 -7
- package/src/lib/components/LayerManager/AddLayersButton/AddLayersButton.d.ts +3 -4
- package/src/lib/components/LayerManager/AddLayersPopup/AddLayersPopup.d.ts +3 -4
- package/src/lib/components/LayerManager/BaseLayerRow/BaseLayerRow.d.ts +2 -3
- package/src/lib/components/LayerManager/LayerManager.d.ts +2 -3
- package/src/lib/components/LayerManager/LayerManagerConnect.d.ts +5 -6
- package/src/lib/components/LayerManager/useFetchServices.d.ts +4 -6
- package/src/lib/components/Legend/LegendConnect.d.ts +0 -1
- package/src/lib/components/MapDraw/MapDrawTool.stories.d.ts +1 -7
- package/src/lib/components/MapDraw/MapDrawToolDoubleControls.stories.d.ts +6 -0
- package/src/lib/components/MapDraw/MapDrawToolIntersection.stories.d.ts +11 -0
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +1 -0
- package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +3 -0
- package/src/lib/components/MapDraw/useMapDrawTool.d.ts +5 -4
- package/src/lib/components/SyncGroups/SyncGroupList.d.ts +2 -2
- package/src/lib/components/SyncGroups/SyncGroupViewer.d.ts +1 -2
- 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 +3 -4
- package/src/lib/components/WMSLoader/WMSServerList/WMSServerList.d.ts +4 -4
- package/src/lib/index.d.ts +2 -2
- package/src/lib/store/coreModuleConfig.d.ts +1 -1
- package/src/lib/store/generic/selectors.d.ts +2 -2
- package/src/lib/store/generic/synchronizationGroups/selector.d.ts +19 -0
- package/src/lib/store/generic/synchronizationGroups/selectors.d.ts +7 -7
- package/src/lib/store/generic/synchronizationGroups/types.d.ts +17 -1
- package/src/lib/store/generic/synchronizationGroups/utils.d.ts +1 -1
- package/src/lib/store/layerSelect/selectors.d.ts +1 -1
- package/src/lib/store/layerSelect/types.d.ts +11 -0
- package/src/lib/store/mapStore/layers/selectors.d.ts +24 -24
- package/src/lib/store/mapStore/layers/types.d.ts +8 -8
- package/src/lib/store/mapStore/map/constants.d.ts +1 -0
- package/src/lib/store/mapStore/map/defaultLayers.d.ts +15 -0
- package/src/lib/store/mapStore/map/filterLayers.d.ts +10 -0
- package/src/lib/{components/SyncGroups/utils.d.ts → store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.d.ts} +1 -1
- package/src/lib/store/mapStore/map/replaceLayerIdsToEnsureUniqueLayerIdsInStore.spec.d.ts +1 -0
- package/src/lib/store/mapStore/map/selectors.d.ts +49 -49
- package/src/lib/store/mapStore/service/WMS111GetCapabilitiesGeoServicesRADAR.d.ts +2 -0
- package/src/lib/store/mapStore/service/selectors.d.ts +6 -6
- package/src/lib/store/mapStore/storeTestSettings.d.ts +8 -0
- package/src/lib/store/mapStore/storeTestUtils.d.ts +9 -0
- package/src/lib/store/types.d.ts +5 -0
- package/src/lib/store/ui/selectors.d.ts +9 -9
- package/src/lib/utils/defaultConfigurations.d.ts +2 -2
- package/src/lib/utils/defaultTestSettings.d.ts +2 -9
- package/src/lib/utils/jsonPresetFilter.d.ts +7 -15
- package/src/lib/utils/publicLayers.d.ts +1 -14
- package/src/lib/utils/publicServices.d.ts +0 -5
- package/src/lib/utils/testUtils.d.ts +1 -8
- package/src/lib/components/SyncGroups/selector.d.ts +0 -20
- package/src/lib/components/SyncGroups/types.d.ts +0 -17
- package/src/lib/components/WMSLoader/services.d.ts +0 -8
- package/src/lib/types/types.d.ts +0 -5
- package/src/lib/utils/types.d.ts +0 -5
- /package/src/lib/{utils → store/layerSelect}/localStorage.d.ts +0 -0
- /package/src/lib/{utils → store/layerSelect}/localStorage.spec.d.ts +0 -0
- /package/src/lib/{components/SyncGroups/utils.spec.d.ts → store/mapStore/map/filterLayers.spec.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@mui/material": "5.12.0",
|
|
17
17
|
"@mui/system": "5.12.0",
|
|
18
|
-
"@opengeoweb/api": "5.
|
|
19
|
-
"@opengeoweb/form-fields": "5.
|
|
20
|
-
"@opengeoweb/shared": "5.
|
|
21
|
-
"@opengeoweb/theme": "5.
|
|
22
|
-
"@opengeoweb/webmap": "5.
|
|
18
|
+
"@opengeoweb/api": "5.2.0",
|
|
19
|
+
"@opengeoweb/form-fields": "5.2.0",
|
|
20
|
+
"@opengeoweb/shared": "5.2.0",
|
|
21
|
+
"@opengeoweb/theme": "5.2.0",
|
|
22
|
+
"@opengeoweb/webmap": "5.2.0",
|
|
23
23
|
"@redux-eggs/core": "2.2.0",
|
|
24
24
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
25
25
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"re-resizable": "6.9.9",
|
|
37
37
|
"react": "18.2.0",
|
|
38
38
|
"react-draggable": "4.4.5",
|
|
39
|
-
"react-hook-form": "7.
|
|
39
|
+
"react-hook-form": "7.45.2",
|
|
40
40
|
"react-intl": "6.4.4",
|
|
41
41
|
"react-redux": "8.1.1",
|
|
42
42
|
"react-resize-detector": "9.1.0",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { layerTypes } from '../../../store';
|
|
2
|
+
import { layerSelectTypes, layerTypes } from '../../../store';
|
|
4
3
|
interface AddLayerButtonProps {
|
|
5
|
-
onRenderTree?: (service:
|
|
6
|
-
preloadedServices?:
|
|
4
|
+
onRenderTree?: (service: layerSelectTypes.LayerSelectService) => React.ReactChild;
|
|
5
|
+
preloadedServices?: layerSelectTypes.LayerSelectService[];
|
|
7
6
|
tooltip?: string;
|
|
8
7
|
layerType?: layerTypes.LayerType;
|
|
9
8
|
shouldFocus?: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerTypes } from '../../../store';
|
|
3
|
-
import { Service } from '../../WMSLoader/services';
|
|
2
|
+
import { layerSelectTypes, layerTypes } from '../../../store';
|
|
4
3
|
interface AddLayerPopupProps {
|
|
5
|
-
onRenderTree?: (service:
|
|
6
|
-
preloadedServices?:
|
|
4
|
+
onRenderTree?: (service: layerSelectTypes.LayerSelectService) => React.ReactChild;
|
|
5
|
+
preloadedServices?: layerSelectTypes.LayerSelectService[];
|
|
7
6
|
open?: boolean;
|
|
8
7
|
handleClose?: () => void;
|
|
9
8
|
layerType?: layerTypes.LayerType;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { LayerManagerCustomSettings } from '../LayerManagerUtils';
|
|
3
|
-
import { layerTypes } from '../../../store';
|
|
4
|
-
import { Service } from '../../WMSLoader/services';
|
|
3
|
+
import { layerSelectTypes, layerTypes } from '../../../store';
|
|
5
4
|
interface BaseLayerRowProps {
|
|
6
5
|
mapId: string;
|
|
7
6
|
preloadedAvailableBaseLayers?: layerTypes.Layer[];
|
|
8
|
-
preloadedServices?:
|
|
7
|
+
preloadedServices?: layerSelectTypes.LayerSelectService[];
|
|
9
8
|
tooltip?: string;
|
|
10
9
|
settings?: LayerManagerCustomSettings['footer'];
|
|
11
10
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HeaderSize } from '@opengeoweb/shared';
|
|
3
3
|
import { layerTypes } from '../../store';
|
|
4
|
-
import type { uiTypes } from '../../store';
|
|
5
|
-
import { Service } from '../WMSLoader/services';
|
|
4
|
+
import type { layerSelectTypes, uiTypes } from '../../store';
|
|
6
5
|
import { LayerManagerCustomSettings } from './LayerManagerUtils';
|
|
7
6
|
import { Size } from './LayerManagerHeaderOptions';
|
|
8
7
|
export declare type Position = {
|
|
@@ -13,7 +12,7 @@ export declare type Position = {
|
|
|
13
12
|
interface LayerManagerProps {
|
|
14
13
|
mapId: string;
|
|
15
14
|
preloadedAvailableBaseLayers?: layerTypes.Layer[];
|
|
16
|
-
preloadedBaseServices?:
|
|
15
|
+
preloadedBaseServices?: layerSelectTypes.LayerSelectService[];
|
|
17
16
|
bounds?: string;
|
|
18
17
|
title?: string;
|
|
19
18
|
onClose: () => void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { layerTypes, uiTypes } from '../../store';
|
|
3
|
-
import { Service } from '../WMSLoader/services';
|
|
2
|
+
import { layerTypes, uiTypes, layerSelectTypes } from '../../store';
|
|
4
3
|
export declare const getDialogType: (mapId: any, isMultiMap: boolean, isDocked: boolean) => string;
|
|
5
4
|
interface LayerManagerConnectProps {
|
|
6
5
|
mapId?: string;
|
|
7
6
|
preloadedAvailableBaseLayers?: layerTypes.Layer[];
|
|
8
|
-
preloadedMapServices?:
|
|
9
|
-
preloadedBaseServices?:
|
|
7
|
+
preloadedMapServices?: layerSelectTypes.LayerSelectService[];
|
|
8
|
+
preloadedBaseServices?: layerSelectTypes.LayerSelectService[];
|
|
10
9
|
bounds?: string;
|
|
11
10
|
title?: string;
|
|
12
11
|
showMapIdInTitle?: boolean;
|
|
@@ -21,8 +20,8 @@ interface LayerManagerConnectProps {
|
|
|
21
20
|
* a dialog should have the <LayerManagerMapButtonConnect/> which is used to focus the correct map and open the dialog
|
|
22
21
|
*
|
|
23
22
|
* Expects the following props:
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {
|
|
23
|
+
* @param {layerSelectTypes.LayerSelectService[]} preloadedMapServices preloadedMapServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader for maplayers
|
|
24
|
+
* @param {layerSelectTypes.LayerSelectService[]} preloadedBaseServices preloadedBaseServices: array of Service objects - contains an array of Service objects that are preloaded into in the WMS Loader fpr baselayers
|
|
26
25
|
* @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
|
|
27
26
|
* ``` <LayerManagerConnect />```
|
|
28
27
|
*/
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { serviceTypes } from '../../store';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const useFetchServices: (dialogType: string, preloadedServices?: Service[] | undefined, shouldDisableFetch?: boolean) => void;
|
|
6
|
-
export declare const mergePresetsAndUserAddedServices: (presets: Service[], userAddedServices: UserAddedServices) => NoIdService[];
|
|
1
|
+
import { layerSelectTypes, serviceTypes } from '../../store';
|
|
2
|
+
export declare const getServicesToLoad: (services: layerSelectTypes.NoIdService[]) => serviceTypes.InitialService[];
|
|
3
|
+
export declare const useFetchServices: (dialogType: string, preloadedServices?: layerSelectTypes.LayerSelectService[] | undefined, shouldDisableFetch?: boolean) => void;
|
|
4
|
+
export declare const mergePresetsAndUserAddedServices: (presets: layerSelectTypes.LayerSelectService[], userAddedServices: layerSelectTypes.UserAddedServices) => layerSelectTypes.NoIdService[];
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
2
|
declare const _default: {
|
|
4
3
|
title: string;
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
7
|
-
export declare const
|
|
8
|
-
interface MapDrawToolIntersectDemoProps {
|
|
9
|
-
mapDrawOptions: MapDrawToolOptions;
|
|
10
|
-
}
|
|
11
|
-
export declare const MapDrawToolIntersectDemo: React.FC<MapDrawToolIntersectDemoProps>;
|
|
12
|
-
export declare const MapDrawToolIntersectWithShapeDemo: () => React.ReactElement;
|
|
6
|
+
export declare const SimpleMapdrawtool: () => React.ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
interface MapDrawToolIntersectDemoProps {
|
|
8
|
+
mapDrawOptions: MapDrawToolOptions;
|
|
9
|
+
}
|
|
10
|
+
export declare const IntersectionDemo: React.FC<MapDrawToolIntersectDemoProps>;
|
|
11
|
+
export declare const IntersectionWithShapeDemo: () => React.ReactElement;
|
|
@@ -53,4 +53,5 @@ export declare const intersectGeoJSONS: (a: GeoJSON.FeatureCollection, b: GeoJSO
|
|
|
53
53
|
export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties) => GeoJSON.FeatureCollection;
|
|
54
54
|
export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean) => GeoJSON.FeatureCollection;
|
|
55
55
|
export declare const getFeatureCollection: (geoJSONFeature: GeoJSON.Feature | GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean, geoJSONFeatureCollection?: GeoJSON.FeatureCollection) => GeoJSON.FeatureCollection;
|
|
56
|
+
export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.FeatureCollection, newGeoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => boolean;
|
|
56
57
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
2
3
|
interface GeoJSONTextFieldProps {
|
|
3
4
|
geoJSON: GeoJSON.FeatureCollection;
|
|
4
5
|
onChangeGeoJSON?: (geoJSON: GeoJSON.FeatureCollection) => void;
|
|
5
6
|
title?: string;
|
|
7
|
+
sx?: SxProps;
|
|
8
|
+
maxRows?: number;
|
|
6
9
|
}
|
|
7
10
|
declare const GeoJSONTextField: React.FC<GeoJSONTextFieldProps>;
|
|
8
11
|
export default GeoJSONTextField;
|
|
@@ -6,6 +6,7 @@ export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperti
|
|
|
6
6
|
export declare const emptyLineString: GeoJSON.Feature;
|
|
7
7
|
export declare const emptyPoint: GeoJSON.Feature;
|
|
8
8
|
export declare const emptyPolygon: GeoJSON.Feature;
|
|
9
|
+
export declare const emptyBox: GeoJSON.Feature;
|
|
9
10
|
export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
|
|
10
11
|
export declare type DrawMode = DRAWMODE | 'DELETE' | '';
|
|
11
12
|
declare type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
|
|
@@ -26,7 +27,6 @@ interface MapDrawToolProps {
|
|
|
26
27
|
editModes: EditMode[];
|
|
27
28
|
changeDrawMode: (mode: DrawMode) => void;
|
|
28
29
|
isInEditMode: boolean;
|
|
29
|
-
drawMode: string;
|
|
30
30
|
setEditMode: (shouldEnable: boolean) => void;
|
|
31
31
|
featureLayerIndex: number;
|
|
32
32
|
setFeatureLayerIndex: (newIndex: number) => void;
|
|
@@ -35,15 +35,16 @@ interface MapDrawToolProps {
|
|
|
35
35
|
setActiveTool: (newToolId: string) => void;
|
|
36
36
|
layers: MapViewLayerProps[];
|
|
37
37
|
getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerProps;
|
|
38
|
+
deactivateTool: () => void;
|
|
39
|
+
setEditModes: (editModes: EditMode[]) => void;
|
|
38
40
|
}
|
|
39
41
|
export interface MapDrawToolOptions {
|
|
40
|
-
editModes?: EditMode[];
|
|
41
42
|
shouldAllowMultipleshapes?: boolean;
|
|
43
|
+
defaultEditModes?: EditMode[];
|
|
42
44
|
defaultGeoJSON?: GeoJSON.FeatureCollection;
|
|
43
45
|
defaultGeoJSONIntersection?: GeoJSON.FeatureCollection;
|
|
44
46
|
defaultGeoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
|
|
45
47
|
defaultGeoJSONIntersectionProperties?: GeoJSON.GeoJsonProperties;
|
|
46
|
-
defaultActiveTool?: string;
|
|
47
48
|
}
|
|
48
49
|
export declare const defaultPoint: {
|
|
49
50
|
id: string;
|
|
@@ -100,5 +101,5 @@ export declare const defaultModes: ({
|
|
|
100
101
|
shape: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
101
102
|
isSelectable: boolean;
|
|
102
103
|
})[];
|
|
103
|
-
export declare const useMapDrawTool: ({
|
|
104
|
+
export declare const useMapDrawTool: ({ defaultEditModes, shouldAllowMultipleshapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, }: MapDrawToolOptions) => MapDrawToolProps;
|
|
104
105
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { syncGroupsTypes } from '../../store';
|
|
3
3
|
interface SyncGroupProps {
|
|
4
|
-
viewStateData: GroupsAndSources;
|
|
4
|
+
viewStateData: syncGroupsTypes.GroupsAndSources;
|
|
5
5
|
title: string;
|
|
6
6
|
handleToggle: (arg1: string, arg2?: string) => void;
|
|
7
7
|
addNewGroup: (number: string) => void;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SyncGroupViewState } from './types';
|
|
3
2
|
import { syncGroupsTypes } from '../../store';
|
|
4
3
|
interface SyncGroupViewerProps {
|
|
5
4
|
onClose: () => void;
|
|
6
5
|
isOpen: boolean;
|
|
7
|
-
syncGroupViewState: SyncGroupViewState;
|
|
6
|
+
syncGroupViewState: syncGroupsTypes.SyncGroupViewState;
|
|
8
7
|
syncGroupAddTarget: (payload: syncGroupsTypes.SyncGroupAddTargetPayload) => void;
|
|
9
8
|
syncGroupRemoveTarget: (payload: syncGroupsTypes.SyncGroupRemoveTargetPayload) => void;
|
|
10
9
|
syncGroupAddGroup: (payload: syncGroupsTypes.SyncGroupAddGroupPayload) => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { layerTypes } from '../../../store';
|
|
2
|
+
import { layerSelectTypes, layerTypes } from '../../../store';
|
|
4
3
|
interface WMSLayerTreeProps {
|
|
5
|
-
service:
|
|
4
|
+
service: layerSelectTypes.LayerSelectService;
|
|
6
5
|
onClickLayer: (serviceURL: string, layerName: string) => void;
|
|
7
6
|
highlightedLayers: layerTypes.Layer[];
|
|
8
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layerActions, layerTypes } from '../../../store';
|
|
3
|
-
import { Service } from '../services';
|
|
2
|
+
import { layerActions, layerTypes, layerSelectTypes } from '../../../store';
|
|
4
3
|
export interface WMSLayerTreeConnectProps {
|
|
5
|
-
service:
|
|
4
|
+
service: layerSelectTypes.LayerSelectService;
|
|
6
5
|
addLayer?: typeof layerActions.addLayer;
|
|
7
6
|
setBaseLayers?: typeof layerActions.setBaseLayers;
|
|
8
7
|
addAvailableBaseLayer?: typeof layerActions.addAvailableBaseLayer;
|
|
@@ -11,7 +10,7 @@ export interface WMSLayerTreeConnectProps {
|
|
|
11
10
|
layerType?: layerTypes.LayerType;
|
|
12
11
|
}
|
|
13
12
|
declare const WMSLayerTreeConnect: import("react-redux").ConnectedComponent<React.FC<WMSLayerTreeConnectProps>, {
|
|
14
|
-
service:
|
|
13
|
+
service: layerSelectTypes.LayerSelectService;
|
|
15
14
|
mapId: string;
|
|
16
15
|
layerType?: layerTypes.LayerType | undefined;
|
|
17
16
|
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 { layerSelectTypes } from '../../store';
|
|
3
3
|
interface WMSLoaderProps {
|
|
4
4
|
onClickService?: (serviceURL: string, layerName: string) => void;
|
|
5
|
-
onRenderTree?: (service:
|
|
5
|
+
onRenderTree?: (service: layerSelectTypes.LayerSelectService) => React.ReactChild;
|
|
6
6
|
highlightedLayers?: [];
|
|
7
|
-
preloadedServices?:
|
|
7
|
+
preloadedServices?: layerSelectTypes.LayerSelectService[];
|
|
8
8
|
tooltip?: string;
|
|
9
9
|
}
|
|
10
10
|
declare const WMSLoader: React.FC<WMSLoaderProps>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { layerTypes } from '../../store';
|
|
2
|
+
import { layerSelectTypes, layerTypes } from '../../store';
|
|
4
3
|
interface WMSLoaderConnectProps {
|
|
5
4
|
mapId: string;
|
|
6
|
-
preloadedServices?:
|
|
5
|
+
preloadedServices?: layerSelectTypes.LayerSelectService[];
|
|
7
6
|
layerType?: layerTypes.LayerType;
|
|
8
7
|
tooltip?: string;
|
|
9
8
|
}
|
|
@@ -13,7 +12,7 @@ interface WMSLoaderConnectProps {
|
|
|
13
12
|
*
|
|
14
13
|
* Expects the following props:
|
|
15
14
|
* @param {string} mapId mapId: string - Id of the map
|
|
16
|
-
* @param {
|
|
15
|
+
* @param {ServiceRefactorMe[]} [preloadedServices] **optional** preloadedServices: array of Service objects - contains an array of Service objects that are to be loaded as preconfigured WMS services
|
|
17
16
|
* @example
|
|
18
17
|
* ``` <WMSLoaderConnect mapId="mapid_1" preloadedServices = {preloadedServicesList} /> ```
|
|
19
18
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { layerSelectTypes } from '../../../store';
|
|
3
3
|
interface WMSServerListProps {
|
|
4
|
-
availableServices:
|
|
5
|
-
handleChangeService: (service:
|
|
6
|
-
service:
|
|
4
|
+
availableServices: layerSelectTypes.LayerSelectService[];
|
|
5
|
+
handleChangeService: (service: layerSelectTypes.LayerSelectService) => void;
|
|
6
|
+
service: layerSelectTypes.LayerSelectService;
|
|
7
7
|
}
|
|
8
8
|
declare const WMSServerList: React.FC<WMSServerListProps>;
|
|
9
9
|
export default WMSServerList;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export * from './store/mapStore/utils/helpers';
|
|
|
97
97
|
export { SyncGroupViewerConnect } from './components/SyncGroups/SyncGroupViewerConnect';
|
|
98
98
|
export { SyncGroups };
|
|
99
99
|
export { store } from './storybookUtils/store';
|
|
100
|
-
export * from './
|
|
100
|
+
export * from './store/types';
|
|
101
101
|
export { coreModuleConfig };
|
|
102
102
|
export { LayerManagerConnect, LayerManagerHeaderOptions, LayerManagerDescriptionRow, LayerManagerBaseLayerRow, LayerManagerLayerContainerRow, LayerSelectConnect, LayerManagerMapButtonConnect, LayerManager, useFetchServices, };
|
|
103
103
|
export { MultiDimensionSelectMapButtonsConnect, MultiMapDimensionSelectConnect, };
|
|
@@ -105,7 +105,7 @@ export * as publicLayers from './utils/publicLayers';
|
|
|
105
105
|
export * as publicServices from './utils/publicServices';
|
|
106
106
|
export * as testLayers from './utils/testLayers';
|
|
107
107
|
export * from './utils/jsonPresetFilter';
|
|
108
|
-
export * from './
|
|
108
|
+
export * from './store/layerSelect/types';
|
|
109
109
|
export * as defaultConfigurations from './utils/defaultConfigurations';
|
|
110
110
|
export * from './components/Providers/Providers';
|
|
111
111
|
export * from './components/Snackbar';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("
|
|
1
|
+
declare const coreModuleConfig: (import("@redux-eggs/core").Egg<import("redux").Store<import("./mapStore").WebMapStateModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./generic/synchronizationGroups/types").SynchronizationGroupModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./ui/types").UIModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("..").LayerSelectModuleState, import("redux").AnyAction>> | import("@redux-eggs/core").Egg<import("redux").Store<import("./snackbar/types").SnackbarModuleStore, import("redux").AnyAction>>)[];
|
|
2
2
|
export default coreModuleConfig;
|
|
@@ -5,7 +5,7 @@ export declare const getSynchronizationGroupStore: ((state: {
|
|
|
5
5
|
webmap?: import("../mapStore/types").WebMapState | undefined;
|
|
6
6
|
services?: import("../mapStore/types").ServiceState | undefined;
|
|
7
7
|
layers?: import("../mapStore/types").LayerState | undefined;
|
|
8
|
-
layerSelect?: import("
|
|
8
|
+
layerSelect?: import("../..").LayerSelectStoreType | undefined;
|
|
9
9
|
}) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
|
|
10
10
|
clearCache: () => void;
|
|
11
11
|
}> & {
|
|
@@ -14,7 +14,7 @@ export declare const getSynchronizationGroupStore: ((state: {
|
|
|
14
14
|
export declare const getTime: ((state: {
|
|
15
15
|
sources: import("./synchronizationGroups/types").SynchronizationSources;
|
|
16
16
|
groups: import("./synchronizationGroups/types").SynchronizationGroups;
|
|
17
|
-
viewState: import("
|
|
17
|
+
viewState: import("./synchronizationGroups/types").SyncGroupViewState;
|
|
18
18
|
}, params_0: string) => string | null) & import("reselect").OutputSelectorFields<(args_0: SynchronizationSource) => string | null, {
|
|
19
19
|
clearCache: () => void;
|
|
20
20
|
}> & {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SyncGroupViewState, SynchronizationGroups, SynchronizationSources, SyncType } from './types';
|
|
2
|
+
export declare const groupTypes: {
|
|
3
|
+
title: string;
|
|
4
|
+
syncType: SyncType;
|
|
5
|
+
groupType: string;
|
|
6
|
+
}[];
|
|
7
|
+
export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
|
|
8
|
+
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
9
|
+
syncronizationGroupStore?: import("./types").SynchronizationGroupState | undefined;
|
|
10
|
+
ui?: import("../../ui/types").UIStoreType | undefined;
|
|
11
|
+
webmap?: import("../../mapStore/types").WebMapState | undefined;
|
|
12
|
+
services?: import("../../mapStore/types").ServiceState | undefined;
|
|
13
|
+
layers?: import("../../mapStore/types").LayerState | undefined;
|
|
14
|
+
layerSelect?: import("../../..").LayerSelectStoreType | undefined;
|
|
15
|
+
}) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroups, args_1: SynchronizationSources) => SyncGroupViewState, {
|
|
16
|
+
clearCache: () => void;
|
|
17
|
+
}> & {
|
|
18
|
+
clearCache: () => void;
|
|
19
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppStore } from '
|
|
1
|
+
import type { AppStore } from '../../types';
|
|
2
2
|
import type { GenericSyncActionPayload } from '../synchronizationActions/types';
|
|
3
3
|
import type { GenericActionPayload } from '../types';
|
|
4
4
|
import type { SyncGroupTarget, SynchronizationGroup, SynchronizationGroupState, SynchronizationSource, SyncType } from './types';
|
|
@@ -16,7 +16,7 @@ export declare const getSynchronizationGroupState: ((state: {
|
|
|
16
16
|
webmap?: import("../../mapStore/types").WebMapState | undefined;
|
|
17
17
|
services?: import("../../mapStore/types").ServiceState | undefined;
|
|
18
18
|
layers?: import("../../mapStore/types").LayerState | undefined;
|
|
19
|
-
layerSelect?: import("
|
|
19
|
+
layerSelect?: import("../../..").LayerSelectStoreType | undefined;
|
|
20
20
|
}) => SynchronizationGroupState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SynchronizationGroupState, {
|
|
21
21
|
clearCache: () => void;
|
|
22
22
|
}> & {
|
|
@@ -32,7 +32,7 @@ export declare const getAllTargetGroupsForSource: ((state: {
|
|
|
32
32
|
webmap?: import("../../mapStore/types").WebMapState | undefined;
|
|
33
33
|
services?: import("../../mapStore/types").ServiceState | undefined;
|
|
34
34
|
layers?: import("../../mapStore/types").LayerState | undefined;
|
|
35
|
-
layerSelect?: import("
|
|
35
|
+
layerSelect?: import("../../..").LayerSelectStoreType | undefined;
|
|
36
36
|
}, params_0: string) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState, args_1: string) => string[], {
|
|
37
37
|
clearCache: () => void;
|
|
38
38
|
}> & {
|
|
@@ -44,8 +44,8 @@ export declare const syncGroupGetViewState: ((state: {
|
|
|
44
44
|
webmap?: import("../../mapStore/types").WebMapState | undefined;
|
|
45
45
|
services?: import("../../mapStore/types").ServiceState | undefined;
|
|
46
46
|
layers?: import("../../mapStore/types").LayerState | undefined;
|
|
47
|
-
layerSelect?: import("
|
|
48
|
-
}) => import("
|
|
47
|
+
layerSelect?: import("../../..").LayerSelectStoreType | undefined;
|
|
48
|
+
}) => import("./types").SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => import("./types").SyncGroupViewState, {
|
|
49
49
|
clearCache: () => void;
|
|
50
50
|
}> & {
|
|
51
51
|
clearCache: () => void;
|
|
@@ -56,7 +56,7 @@ export declare const getSyncedMapIdsForTimeslider: ((state: {
|
|
|
56
56
|
webmap?: import("../../mapStore/types").WebMapState | undefined;
|
|
57
57
|
services?: import("../../mapStore/types").ServiceState | undefined;
|
|
58
58
|
layers?: import("../../mapStore/types").LayerState | undefined;
|
|
59
|
-
layerSelect?: import("
|
|
59
|
+
layerSelect?: import("../../..").LayerSelectStoreType | undefined;
|
|
60
60
|
}) => string[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => string[], {
|
|
61
61
|
clearCache: () => void;
|
|
62
62
|
}> & {
|
|
@@ -68,7 +68,7 @@ export declare const getSyncGroupTargets: ((state: {
|
|
|
68
68
|
webmap?: import("../../mapStore/types").WebMapState | undefined;
|
|
69
69
|
services?: import("../../mapStore/types").ServiceState | undefined;
|
|
70
70
|
layers?: import("../../mapStore/types").LayerState | undefined;
|
|
71
|
-
layerSelect?: import("
|
|
71
|
+
layerSelect?: import("../../..").LayerSelectStoreType | undefined;
|
|
72
72
|
}) => SyncGroupTarget[]) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => SyncGroupTarget[], {
|
|
73
73
|
clearCache: () => void;
|
|
74
74
|
}> & {
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import type { GenericActionPayload } from '../types';
|
|
2
2
|
import { SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS } from './constants';
|
|
3
|
-
|
|
3
|
+
export interface Group {
|
|
4
|
+
id: string;
|
|
5
|
+
selected: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface SourceById {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GroupsAndSources {
|
|
12
|
+
groups: Group[];
|
|
13
|
+
sourcesById: SourceById[];
|
|
14
|
+
}
|
|
15
|
+
export interface SyncGroupViewState {
|
|
16
|
+
timeslider: GroupsAndSources;
|
|
17
|
+
zoompane: GroupsAndSources;
|
|
18
|
+
level: GroupsAndSources;
|
|
19
|
+
}
|
|
4
20
|
export interface SynchronizationGroup {
|
|
5
21
|
type: SyncType;
|
|
6
22
|
title?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppStore } from '
|
|
1
|
+
import { AppStore } from '../../types';
|
|
2
2
|
import { AddLayerPayload, DeleteLayerPayload, MoveLayerPayload, SetBaseLayersPayload } from '../../mapStore/types';
|
|
3
3
|
import { SyncLayerPayloads, LayerActionPayloadsWithLayerIds } from '../types';
|
|
4
4
|
import { SyncType } from './types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AppStore } from '
|
|
1
|
+
import type { AppStore } from '../types';
|
|
2
2
|
import { LayerSelectStoreType, ActiveServiceObject, ActiveLayerObject, ActiveServiceObjectEntities, ServicePopupObject } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* Returns search filter string
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { EntityState } from '@reduxjs/toolkit';
|
|
2
2
|
import type { ServiceLayer, ServiceScope } from '../mapStore/types';
|
|
3
|
+
export declare type NoIdService = Omit<LayerSelectService, 'id'>;
|
|
4
|
+
export interface UserAddedServices {
|
|
5
|
+
[url: string]: NoIdService;
|
|
6
|
+
}
|
|
7
|
+
export interface LayerSelectService {
|
|
8
|
+
name: string;
|
|
9
|
+
url: string;
|
|
10
|
+
id: string;
|
|
11
|
+
scope?: ServiceScope;
|
|
12
|
+
abstract?: string;
|
|
13
|
+
}
|
|
3
14
|
export interface ActiveLayerObject extends ServiceLayer {
|
|
4
15
|
serviceName: string;
|
|
5
16
|
}
|