@opengeoweb/core 2.1.3 → 2.1.4
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} +745 -391
- package/{core.umd.js → index.umd.js} +959 -601
- package/lib/components/CustomSwitch/CustomSwitch.d.ts +1 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +1 -1
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/lib/components/LayerManager/LayerSelect/LayerList/LayerList.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChip.d.ts +2 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.d.ts +9 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceChipConnect.spec.d.ts +1 -0
- package/lib/components/LayerManager/LayerSelect/ServiceList/ServiceList.d.ts +2 -0
- package/lib/components/LayerManager/tooltipContainerStyles.d.ts +1 -1
- package/lib/components/MapView/MapViewConnect.LayerChangeEnabledOpacity.stories.d.ts +7 -0
- package/lib/components/MapView/MapViewConnect.d.ts +2 -0
- package/lib/components/Mapcontrols/MapControlButton.d.ts +1 -1
- package/lib/components/MultiMapDimensionSelect/MultiDimensionSelectConfig.d.ts +1 -1
- package/lib/components/MultiMapView/MultiMapViewConnect.d.ts +1 -1
- package/lib/components/Providers/Providers.d.ts +1 -1
- package/lib/components/ReactMapView/ReactMapView.d.ts +3 -7
- package/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +2 -2
- package/lib/components/ReactMapView/types.d.ts +2 -7
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
- package/lib/components/TimeSlider/TimeSliderRail/TimeSliderRailRenderFunctions.d.ts +1 -1
- package/lib/components/ToggleIconButton/ToggleIconButton.d.ts +6 -3
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +2 -2
- package/lib/store/layerSelect/actions.d.ts +19 -4
- package/lib/store/layerSelect/constants.d.ts +3 -0
- package/lib/store/layerSelect/sagas.d.ts +2 -1
- package/lib/store/layerSelect/selectors.d.ts +32 -2
- package/lib/store/layerSelect/types.d.ts +32 -6
- package/lib/store/mapStore/layers/actions.d.ts +2 -8
- package/lib/store/mapStore/layers/constants.d.ts +1 -1
- package/lib/store/mapStore/layers/selectors.d.ts +5 -14
- 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 +6 -6
- package/lib/store/mapStore/service/selectors.d.ts +35 -5
- package/lib/store/mapStore/service/types.d.ts +5 -1
- package/lib/storybookUtils/HelperComponents.d.ts +1 -1
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSON.d.ts +5 -5
- package/lib/storybookUtils/storyComponents/MapDrawGeoJSONStyles.d.ts +2 -1
- package/lib/utils/defaultTestSettings.d.ts +13 -1
- package/package.json +13 -14
|
@@ -59,7 +59,7 @@ export declare const getLayerIds: import("reselect").OutputParametricSelector<Ap
|
|
|
59
59
|
* @param {string} mapId mapId: string - Id of the map
|
|
60
60
|
* @returns {array} returnType: array - array containing all layer states for the map
|
|
61
61
|
*/
|
|
62
|
-
export declare const getMapLayers: import("reselect").OutputParametricSelector<AppStore, string,
|
|
62
|
+
export declare const getMapLayers: import("reselect").OutputParametricSelector<AppStore, string, import("../types").ReduxLayer[], (res1: string[], res2: Record<string, import("../types").ReduxLayer>) => import("../types").ReduxLayer[]>;
|
|
63
63
|
/**
|
|
64
64
|
* Gets an array of baselayers ids for a map
|
|
65
65
|
*
|
|
@@ -77,7 +77,7 @@ export declare const getMapBaseLayersIds: import("reselect").OutputParametricSel
|
|
|
77
77
|
* @param {string} mapId mapId: string - Id of the map
|
|
78
78
|
* @returns {array} returnType: array - array containing all baselayers for the map
|
|
79
79
|
*/
|
|
80
|
-
export declare const getMapBaseLayers: import("reselect").OutputParametricSelector<AppStore, string,
|
|
80
|
+
export declare const getMapBaseLayers: import("reselect").OutputParametricSelector<AppStore, string, import("../types").ReduxLayer[], (res1: string[], res2: Record<string, import("../types").ReduxLayer>) => import("../types").ReduxLayer[]>;
|
|
81
81
|
/**
|
|
82
82
|
* Gets and array of overLayers ids for a map
|
|
83
83
|
*
|
|
@@ -95,7 +95,7 @@ export declare const getMapOverLayersIds: import("reselect").OutputParametricSel
|
|
|
95
95
|
* @param {string} mapId mapId: string - Id of the map
|
|
96
96
|
* @returns {array} returnType: array - array containing all overLayers for the map
|
|
97
97
|
*/
|
|
98
|
-
export declare const getMapOverLayers: import("reselect").OutputParametricSelector<AppStore, string,
|
|
98
|
+
export declare const getMapOverLayers: import("reselect").OutputParametricSelector<AppStore, string, import("../types").ReduxLayer[], (res1: string[], res2: Record<string, import("../types").ReduxLayer>) => import("../types").ReduxLayer[]>;
|
|
99
99
|
/**
|
|
100
100
|
* Gets map dimensions
|
|
101
101
|
*
|
|
@@ -286,7 +286,7 @@ export declare const getMapIdFromLayerId: import("reselect").OutputParametricSel
|
|
|
286
286
|
* @param {string} layerId layerId: string - Id of the layer
|
|
287
287
|
* @returns {string} returnType: the layerId, or null if not found
|
|
288
288
|
*/
|
|
289
|
-
export declare const getLayerIdByLayerName: import("reselect").OutputParametricSelector<AppStore, string, string, (res1:
|
|
289
|
+
export declare const getLayerIdByLayerName: import("reselect").OutputParametricSelector<AppStore, string, string, (res1: import("../types").ReduxLayer[], res2: string) => string>;
|
|
290
290
|
/**
|
|
291
291
|
* Returns the layerIndex in the map for given layerId
|
|
292
292
|
*
|
|
@@ -296,7 +296,7 @@ export declare const getLayerIdByLayerName: import("reselect").OutputParametricS
|
|
|
296
296
|
* @param {string} layerId layerId: string - Id of the layer
|
|
297
297
|
* @returns {number} returnType: index number or -1 if not found
|
|
298
298
|
*/
|
|
299
|
-
export declare const getLayerIndexByLayerId: import("reselect").OutputParametricSelector<AppStore, string, number, (res1:
|
|
299
|
+
export declare const getLayerIndexByLayerId: import("reselect").OutputParametricSelector<AppStore, string, number, (res1: import("../types").ReduxLayer[], res2: string) => number>;
|
|
300
300
|
/**
|
|
301
301
|
* Returns the Layer in the map for given layerIndex
|
|
302
302
|
*
|
|
@@ -306,7 +306,7 @@ export declare const getLayerIndexByLayerId: import("reselect").OutputParametric
|
|
|
306
306
|
* @param {number} layerIndex layerId: number - Index of the layer in the map
|
|
307
307
|
* @returns {object} returnType: layer, or null if not found
|
|
308
308
|
*/
|
|
309
|
-
export declare const getLayerByLayerIndex: import("reselect").OutputParametricSelector<AppStore, string, Layer, (res1:
|
|
309
|
+
export declare const getLayerByLayerIndex: import("reselect").OutputParametricSelector<AppStore, string, Layer, (res1: import("../types").ReduxLayer[], res2: number) => Layer>;
|
|
310
310
|
/**
|
|
311
311
|
* Returns name of all unique dimensions present in all maps
|
|
312
312
|
*
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Style } from '@opengeoweb/webmap';
|
|
1
2
|
import { AppStore } from '../../../types/types';
|
|
2
|
-
import { ServiceState, ServiceLayer } from './types';
|
|
3
|
+
import { ServiceState, ServiceLayer, Service } from './types';
|
|
3
4
|
/**
|
|
4
5
|
* Retrieves all serviceIds
|
|
5
6
|
*
|
|
@@ -17,10 +18,39 @@ export declare const getServiceIds: import("reselect").OutputSelector<AppStore,
|
|
|
17
18
|
*/
|
|
18
19
|
export declare const getServices: import("reselect").OutputSelector<AppStore, import("./types").Services, (res: ServiceState) => import("./types").Services>;
|
|
19
20
|
/**
|
|
20
|
-
* Gets
|
|
21
|
+
* Gets the service object by its url
|
|
21
22
|
*
|
|
22
|
-
* Example:
|
|
23
|
+
* Example: service = getServiceByName(store, 'serviceName')
|
|
23
24
|
* @param {object} store store: object - Store object
|
|
24
|
-
* @returns {
|
|
25
|
+
* @returns {Service} returnType: Service
|
|
25
26
|
*/
|
|
26
|
-
export declare const
|
|
27
|
+
export declare const getServiceByName: import("reselect").OutputParametricSelector<any, any, Service, (res1: ServiceState, res2: string) => Service>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the layer from the store using the serviceUrl and layerName
|
|
30
|
+
*
|
|
31
|
+
* Example: layers = getLayersFromService(store, 'https://geoservices.knmi.nl/...')
|
|
32
|
+
* @param {object} store store: object - object from which the layers state will be extracted
|
|
33
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
34
|
+
* @returns {arrayr} returnType: ServiceLayer[] - All layers within the service object.
|
|
35
|
+
*/
|
|
36
|
+
export declare const getLayersFromService: import("reselect").OutputParametricSelector<any, any, ServiceLayer[], (res: Service) => ServiceLayer[]>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets the layer from the store using the serviceUrl and layerName
|
|
39
|
+
*
|
|
40
|
+
* Example: layer = getLayerFromService(store, 'https://geoservices.knmi.nl/...', 'radar')
|
|
41
|
+
* @param {object} store store: object - The application store
|
|
42
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
43
|
+
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
44
|
+
* @returns {ServiceLayer} returnType: ServiceLayer - The layer from the service object.
|
|
45
|
+
*/
|
|
46
|
+
export declare const getLayerFromService: import("reselect").OutputParametricSelector<AppStore, string, ServiceLayer, (res1: ServiceLayer[], res2: string, res3: string) => ServiceLayer>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets the layers stylelist from the servicestore using the serviceUrl and layerName
|
|
49
|
+
*
|
|
50
|
+
* Example: layerStyles = getLayerStyles(store, layerService, layerName);
|
|
51
|
+
* @param {object} store store: object - store from which the layers state will be extracted
|
|
52
|
+
* @param {string} serviceUrl serviceUrl: string - Url of the service where the layer belongs to
|
|
53
|
+
* @param {string} layerName layerName: string - Name of the layer in the service
|
|
54
|
+
* @returns {array} returnType: Style[] - array containing layer styles
|
|
55
|
+
*/
|
|
56
|
+
export declare const getLayerStyles: import("reselect").OutputParametricSelector<AppStore, string, Style[], (res: ServiceLayer) => Style[]>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { Style } from '@opengeoweb/webmap';
|
|
1
2
|
import { Action } from 'redux';
|
|
3
|
+
import type { UpdateLayerInfo } from '../types';
|
|
2
4
|
import { MAP_SERVICES_SET_LAYERS } from './constants';
|
|
3
5
|
export interface Services {
|
|
4
6
|
[key: string]: Service;
|
|
@@ -7,6 +9,7 @@ export interface Service {
|
|
|
7
9
|
id?: string;
|
|
8
10
|
name?: string;
|
|
9
11
|
service?: string;
|
|
12
|
+
active?: boolean;
|
|
10
13
|
layers?: ServiceLayer[];
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
@@ -19,6 +22,7 @@ export interface ServiceLayer {
|
|
|
19
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,5 @@ interface SetLayersForService extends Action {
|
|
|
34
38
|
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
35
39
|
payload: SetLayersForServicePayload;
|
|
36
40
|
}
|
|
37
|
-
export declare type ServiceActions = SetLayersForService;
|
|
41
|
+
export declare type ServiceActions = SetLayersForService | UpdateLayerInfo;
|
|
38
42
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Layer } from '../store/mapStore/layers/types';
|
|
3
|
-
export declare const useStyles: (props?: any) => import("@
|
|
3
|
+
export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"content" | "title" | "root" | "chips">;
|
|
4
4
|
declare type ExampleLayer = {
|
|
5
5
|
title: string;
|
|
6
6
|
layers: Layer[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const useDrawPolyStoryStyles: (props?: any) => import("@
|
|
2
|
+
export declare const useDrawPolyStoryStyles: (props?: any) => import("@mui/styles").ClassNameMap<"MapDrawGeoJSONContainer" | "MapDrawGeoJSONMapContainer" | "MapDrawGeoJSONControlsContainer" | "MapDrawGeoJSONTextAreaContainer" | "MapDrawGeoJSONTextArea">;
|
|
3
3
|
export declare const useGeoJSON: () => {
|
|
4
4
|
editModes: {
|
|
5
5
|
key: string;
|
|
@@ -16,9 +16,9 @@ export declare const useGeoJSON: () => {
|
|
|
16
16
|
changeDrawMode: (mode: string) => void;
|
|
17
17
|
setEditMode: (on: boolean) => void;
|
|
18
18
|
};
|
|
19
|
-
declare const _default: React.
|
|
20
|
-
classes: import("@
|
|
21
|
-
} & {
|
|
19
|
+
declare const _default: React.JSXElementConstructor<Omit<{
|
|
20
|
+
classes: import("@mui/styles").ClassNameMap<string>;
|
|
21
|
+
} & Record<string, unknown> & {
|
|
22
22
|
children?: React.ReactNode;
|
|
23
|
-
},
|
|
23
|
+
}, string> & import("@mui/styles").StyledComponentProps<string> & Record<string, unknown>>;
|
|
24
24
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Theme } from '@mui/material';
|
|
2
|
+
import { StyleRulesCallback } from '@mui/styles';
|
|
2
3
|
declare const mapDrawGeoJSONStyles: StyleRulesCallback<Theme, Record<string, unknown>>;
|
|
3
4
|
export default mapDrawGeoJSONStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WMLayer } from '@opengeoweb/webmap';
|
|
1
|
+
import { Style, WMLayer } from '@opengeoweb/webmap';
|
|
2
2
|
import { Service } from '../components/WMSLoader/services';
|
|
3
3
|
import { LayerType } from '../store/mapStore/types';
|
|
4
4
|
export declare const defaultReduxLayerRadarColor: {
|
|
@@ -41,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;
|
|
@@ -53,6 +55,15 @@ export declare const defaultReduxServices: {
|
|
|
53
55
|
path: string;
|
|
54
56
|
keywords: any[];
|
|
55
57
|
abstract: string;
|
|
58
|
+
styles?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
name: string;
|
|
61
|
+
text: string;
|
|
62
|
+
leaf: boolean;
|
|
63
|
+
path: string;
|
|
64
|
+
keywords: any[];
|
|
65
|
+
abstract: string;
|
|
66
|
+
styles: Style[];
|
|
56
67
|
} | {
|
|
57
68
|
name: string;
|
|
58
69
|
text: string;
|
|
@@ -60,6 +71,7 @@ export declare const defaultReduxServices: {
|
|
|
60
71
|
path: string;
|
|
61
72
|
keywords: any[];
|
|
62
73
|
abstract?: undefined;
|
|
74
|
+
styles?: undefined;
|
|
63
75
|
})[];
|
|
64
76
|
};
|
|
65
77
|
};
|
package/package.json
CHANGED
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
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.1.4",
|
|
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.1.4",
|
|
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.1.4",
|
|
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.1.4",
|
|
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",
|