@opengeoweb/webmap-react 9.30.0 → 9.32.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 +1222 -1318
- package/package.json +5 -5
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +2 -1
- package/src/lib/components/MapDimensionSelect/utils.d.ts +3 -2
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +3 -3
- package/src/lib/components/ReactMapView/utils.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.32.0",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@opengeoweb/webmap": "*",
|
|
12
|
-
"axios": "1.
|
|
12
|
+
"axios": "^1.7.7",
|
|
13
13
|
"@opengeoweb/theme": "*",
|
|
14
14
|
"@opengeoweb/shared": "*",
|
|
15
15
|
"lodash": "^4.17.21",
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
"@turf/turf": "^7.1.0",
|
|
18
18
|
"immer": "^10.0.3",
|
|
19
19
|
"react-resize-detector": "^9.1.0",
|
|
20
|
-
"throttle-debounce": "^5.0.0",
|
|
21
20
|
"i18next": "^23.11.5",
|
|
22
21
|
"@mui/material": "^6.1.1",
|
|
23
|
-
"react-i18next": "^
|
|
22
|
+
"react-i18next": "^15.1.1"
|
|
24
23
|
},
|
|
25
24
|
"peerDependencies": {
|
|
26
25
|
"react": "18",
|
|
@@ -29,5 +28,6 @@
|
|
|
29
28
|
},
|
|
30
29
|
"module": "./index.esm.js",
|
|
31
30
|
"type": "module",
|
|
32
|
-
"main": "./index.esm.js"
|
|
31
|
+
"main": "./index.esm.js",
|
|
32
|
+
"types": "./index.esm.d.ts"
|
|
33
33
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Dimension, LayerProps } from '@opengeoweb/webmap';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
3
4
|
import { ListItem } from './LayerInfoList';
|
|
4
5
|
export declare const getLayerStyles: (layer: LayerProps) => string;
|
|
5
6
|
export declare const getDimensionValue: (name: string, dimensions: Dimension[]) => string;
|
|
6
|
-
export declare const getLayerBbox: (layer: LayerProps) => string;
|
|
7
|
+
export declare const getLayerBbox: (t: TFunction, layer: LayerProps) => string;
|
|
7
8
|
export declare const getDimensionIcon: (name: string, dimensions: Dimension[]) => React.ReactElement;
|
|
8
9
|
export declare const getDimensionLabel: (name: string) => string;
|
|
9
10
|
export declare const getDimensionsList: (dimensions: Dimension[]) => ListItem[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SvgIconProps } from '@mui/material';
|
|
3
3
|
import { WMJSDimension } from '@opengeoweb/webmap';
|
|
4
|
+
import { TFunction } from 'i18next';
|
|
4
5
|
export interface DimensionConfig {
|
|
5
6
|
name: string;
|
|
6
7
|
label: string;
|
|
@@ -8,10 +9,10 @@ export interface DimensionConfig {
|
|
|
8
9
|
reversed: boolean;
|
|
9
10
|
iconType: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const dimensionConfig: DimensionConfig[];
|
|
12
|
+
export declare const dimensionConfig: (t: TFunction) => DimensionConfig[];
|
|
12
13
|
export declare const getDimensionIcon: (iconType: string) => React.FC<SvgIconProps>;
|
|
13
14
|
export interface Mark {
|
|
14
15
|
value: number | string;
|
|
15
16
|
label?: React.ReactNode;
|
|
16
17
|
}
|
|
17
|
-
export declare const marksByDimension: (dim: WMJSDimension) => Mark[];
|
|
18
|
+
export declare const marksByDimension: (t: TFunction, dim: WMJSDimension) => Mark[];
|
|
@@ -38,7 +38,7 @@ interface DrawFunction {
|
|
|
38
38
|
}
|
|
39
39
|
export declare const getDrawFunctionFromStore: (id: string) => DrawFunction['drawMethod'] | undefined;
|
|
40
40
|
export declare const registerDrawFunction: (drawFunction?: DrawFunction['drawMethod']) => string;
|
|
41
|
-
export declare const NEW_LINESTRING_CREATED
|
|
42
|
-
export declare const NEW_FEATURE_CREATED
|
|
43
|
-
export declare const NEW_POINT_CREATED
|
|
41
|
+
export declare const NEW_LINESTRING_CREATED = "new point in LineString created";
|
|
42
|
+
export declare const NEW_FEATURE_CREATED = "new feature created";
|
|
43
|
+
export declare const NEW_POINT_CREATED = "new point created";
|
|
44
44
|
export {};
|
|
@@ -21,6 +21,6 @@ export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: numbe
|
|
|
21
21
|
export declare const makeLayerPropListFromChildren: (children: React.ReactNode, mapId: string) => MapViewLayerProps[];
|
|
22
22
|
export declare const parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean) => Promise<WMLayer>;
|
|
23
23
|
export declare const setWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, wmLayer: WMLayer, mapViewProps: ReactMapViewProps) => boolean;
|
|
24
|
-
export declare const addWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, mapId: string, props: MapViewProps, onUpdateLayerInformation?: (
|
|
25
|
-
export declare const removeWMLayerFromMap: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: (
|
|
24
|
+
export declare const addWMLayerPropsBasedOnChildProps: (child: MapViewLayerProps, mapId: string, props: MapViewProps, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
25
|
+
export declare const removeWMLayerFromMap: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: (payload: UpdateLayerInfoPayload) => void) => void;
|
|
26
26
|
export declare const orderLayers: (wmjsMap: IWMJSMap, _reactMapViewLayers: MapViewLayerProps[]) => boolean;
|