@opengeoweb/core 6.1.0 → 6.1.1
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 +242 -1427
- package/package.json +14 -16
- package/src/lib/components/FeatureInfo/GetFeatureInfoDialog.d.ts +3 -2
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +1 -2
- package/src/lib/components/MapDraw/useMapDrawTool.d.ts +1 -2
- package/src/lib/components/MapView/index.d.ts +0 -2
- package/src/lib/components/MapView/types.d.ts +1 -1
- package/src/lib/components/TimeSlider/TimeSliderButtons/TimeSliderMenu/TimeSliderMenu.d.ts +0 -1
- package/src/lib/index.d.ts +0 -1
- package/src/lib/storybookUtils/defaultStorySettings.d.ts +2 -1
- package/src/lib/utils/defaultTestSettings.d.ts +1 -2
- package/src/lib/components/MapView/MapViewLayer.d.ts +0 -19
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +0 -58
- package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +0 -1
- package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +0 -8
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +0 -4
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +0 -1
- package/src/lib/components/ReactMapView/index.d.ts +0 -2
- package/src/lib/components/ReactMapView/types.d.ts +0 -34
- package/src/lib/components/ReactMapView/utils.d.ts +0 -23
- package/src/lib/components/ReactMapView/utils.spec.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,36 +13,34 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"@mui/material": "5.12.0",
|
|
16
|
-
"@mui/system": "5.14.
|
|
17
|
-
"@opengeoweb/api": "6.1.
|
|
18
|
-
"@opengeoweb/form-fields": "6.1.
|
|
19
|
-
"@opengeoweb/shared": "6.1.
|
|
20
|
-
"@opengeoweb/store": "6.1.
|
|
21
|
-
"@opengeoweb/theme": "6.1.
|
|
22
|
-
"@opengeoweb/webmap": "6.1.
|
|
23
|
-
"@opengeoweb/webmap-react": "6.
|
|
16
|
+
"@mui/system": "5.14.8",
|
|
17
|
+
"@opengeoweb/api": "6.1.1",
|
|
18
|
+
"@opengeoweb/form-fields": "6.1.1",
|
|
19
|
+
"@opengeoweb/shared": "6.1.1",
|
|
20
|
+
"@opengeoweb/store": "6.1.1",
|
|
21
|
+
"@opengeoweb/theme": "6.1.1",
|
|
22
|
+
"@opengeoweb/webmap": "6.1.1",
|
|
23
|
+
"@opengeoweb/webmap-react": "6.1.1",
|
|
24
24
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
25
25
|
"@redux-eggs/saga-extension": "2.2.0",
|
|
26
26
|
"@reduxjs/toolkit": "1.9.5",
|
|
27
27
|
"@turf/turf": "6.5.0",
|
|
28
|
-
"axios": "1.
|
|
29
|
-
"date-fns": "2.30.0",
|
|
28
|
+
"axios": "1.5.0",
|
|
30
29
|
"dompurify": "3.0.5",
|
|
31
|
-
"i18next": "23.
|
|
30
|
+
"i18next": "23.5.0",
|
|
32
31
|
"immer": "9.0.21",
|
|
33
32
|
"lodash": "4.17.21",
|
|
34
33
|
"moment": "2.29.4",
|
|
35
34
|
"re-resizable": "6.9.11",
|
|
36
35
|
"react": "18.2.0",
|
|
37
36
|
"react-draggable": "4.4.5",
|
|
38
|
-
"react-hook-form": "7.
|
|
39
|
-
"react-i18next": "13.2.
|
|
37
|
+
"react-hook-form": "7.46.1",
|
|
38
|
+
"react-i18next": "13.2.2",
|
|
40
39
|
"react-redux": "8.1.2",
|
|
41
40
|
"react-resize-detector": "9.1.0",
|
|
42
41
|
"react-router-dom": "6.15.0",
|
|
43
42
|
"react-sortablejs": "6.1.4",
|
|
44
43
|
"react-window": "1.8.9",
|
|
45
|
-
"sortablejs": "1.15.0"
|
|
46
|
-
"throttle-debounce": "5.0.0"
|
|
44
|
+
"sortablejs": "1.15.0"
|
|
47
45
|
}
|
|
48
46
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { layerTypes,
|
|
2
|
+
import { layerTypes, uiTypes } from '@opengeoweb/store';
|
|
3
|
+
import { MapLocation } from '@opengeoweb/webmap-react';
|
|
3
4
|
interface GetFeatureInfoDialogProps {
|
|
4
5
|
layers: layerTypes.Layer[];
|
|
5
6
|
isOpen: boolean;
|
|
@@ -9,7 +10,7 @@ interface GetFeatureInfoDialogProps {
|
|
|
9
10
|
showMapId?: boolean;
|
|
10
11
|
order?: number;
|
|
11
12
|
source?: uiTypes.Source;
|
|
12
|
-
mapPinLocation?:
|
|
13
|
+
mapPinLocation?: MapLocation;
|
|
13
14
|
}
|
|
14
15
|
declare const GetFeatureInfoDialog: React.FC<GetFeatureInfoDialogProps>;
|
|
15
16
|
export default GetFeatureInfoDialog;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawModeExitCallback } from '@opengeoweb/webmap-react';
|
|
3
|
-
import { MapViewLayerProps } from '../../MapView/MapViewLayer';
|
|
2
|
+
import { DrawModeExitCallback, MapViewLayerProps } from '@opengeoweb/webmap-react';
|
|
4
3
|
interface StoryLayoutProps {
|
|
5
4
|
layers: MapViewLayerProps[];
|
|
6
5
|
children: React.ReactElement;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DRAWMODE } from '@opengeoweb/webmap-react';
|
|
3
|
-
import type { MapViewLayerProps } from '../MapView/MapViewLayer';
|
|
2
|
+
import { DRAWMODE, MapViewLayerProps } from '@opengeoweb/webmap-react';
|
|
4
3
|
export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
|
|
5
4
|
export declare const emptyLineString: GeoJSON.Feature;
|
|
6
5
|
export declare const emptyPoint: GeoJSON.Feature;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './components/MultiMapView/MultiMapViewConnect';
|
|
|
9
9
|
export * from './components/MultiMapView/HarmoniePresets';
|
|
10
10
|
export * from './components/MapView';
|
|
11
11
|
export { MapControlButton } from './components/MapControls';
|
|
12
|
-
export { ReactMapView, ReactMapViewLayer } from './components/ReactMapView';
|
|
13
12
|
export { LegendConnect, LegendMapButtonConnect } from './components/Legend';
|
|
14
13
|
export { ZoomControls, ZoomControlConnect } from './components/MapControls';
|
|
15
14
|
export { TimeSlider, TimeSliderConnect, TimeSliderButtonsConnect, TimeSliderOptionsMenuButtonConnect, TimeSliderPlayButtonConnect, TimeSliderBackwardForwardStepButtonConnect, timeSliderUtils, } from './components/TimeSlider';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { layerTypes, mapTypes, LayerActions } from '@opengeoweb/store';
|
|
2
|
+
import { SetLayerStylePayload } from '@opengeoweb/webmap-react';
|
|
2
3
|
export declare const initialBbox: {
|
|
3
4
|
srs: string;
|
|
4
5
|
bbox: {
|
|
@@ -8,7 +9,7 @@ export declare const initialBbox: {
|
|
|
8
9
|
top: number;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
|
-
export declare const handleLayerActionsCallback: (payload: layerTypes.DeleteLayerPayload | layerTypes.SetLayerDimensionPayload | layerTypes.SetLayerEnabledPayload |
|
|
12
|
+
export declare const handleLayerActionsCallback: (payload: layerTypes.DeleteLayerPayload | layerTypes.SetLayerDimensionPayload | layerTypes.SetLayerEnabledPayload | SetLayerStylePayload | layerTypes.SetLayerNamePayload | layerTypes.SetLayerOpacityPayload) => LayerActions;
|
|
12
13
|
interface UseDefaultMapSettingsProps {
|
|
13
14
|
mapId?: string;
|
|
14
15
|
layers?: layerTypes.Layer[];
|
|
@@ -2,8 +2,7 @@ import { LayerType, WMLayer } from '@opengeoweb/webmap';
|
|
|
2
2
|
import { layerTypes, serviceTypes, layerSelectTypes } from '@opengeoweb/store';
|
|
3
3
|
export declare const multiDimensionLayer: import("@opengeoweb/webmap").LayerFoundation, WmdefaultReduxLayerRadarKNMI: WMLayer, defaultReduxLayerRadarKNMI: import("@opengeoweb/webmap").LayerFoundation & {
|
|
4
4
|
styles: import("@opengeoweb/webmap").Style[];
|
|
5
|
-
}
|
|
6
|
-
export declare const defaultReduxLayerRadarColor: {
|
|
5
|
+
}, defaultReduxLayerRadarColor: {
|
|
7
6
|
service: string;
|
|
8
7
|
name: string;
|
|
9
8
|
title: string;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GeoJSONObject } from '@turf/turf';
|
|
3
|
-
import { WMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
4
|
-
import { DrawModeExitCallback, FeatureEvent } from '@opengeoweb/webmap-react';
|
|
5
|
-
export interface MapViewLayerProps {
|
|
6
|
-
id: string;
|
|
7
|
-
onLayerReady?: (layer: WMLayer, webmap?: WMJSMap) => void;
|
|
8
|
-
geojson?: unknown;
|
|
9
|
-
onLayerError?: (layer: WMLayer, error?: Error) => void;
|
|
10
|
-
isInEditMode?: boolean;
|
|
11
|
-
drawMode?: string;
|
|
12
|
-
updateGeojson?: (geoJson: GeoJSONObject) => void;
|
|
13
|
-
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
14
|
-
featureNrToEdit?: number;
|
|
15
|
-
onClickFeature?: (event: FeatureEvent) => void;
|
|
16
|
-
onHoverFeature?: (event: FeatureEvent) => void;
|
|
17
|
-
}
|
|
18
|
-
declare const MapViewLayer: React.FC<MapViewLayerProps>;
|
|
19
|
-
export default MapViewLayer;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { WMJSMap, WMLayer, WMBBOX } from '@opengeoweb/webmap';
|
|
4
|
-
import { ReactMapViewProps } from './types';
|
|
5
|
-
export declare const ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION = "ORIGIN_REACTMAPVIEW_ONMAPCHANGEDIMENSION";
|
|
6
|
-
export declare const ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO = "ORIGIN_REACTMAPVIEW_ONUPDATELAYERINFO";
|
|
7
|
-
interface ReactMapViewState {
|
|
8
|
-
adagucInitialised: boolean;
|
|
9
|
-
}
|
|
10
|
-
interface AdagucObjectProp {
|
|
11
|
-
initialized: boolean;
|
|
12
|
-
baseLayers: WMLayer[];
|
|
13
|
-
oldbbox: WMBBOX;
|
|
14
|
-
currentWidth: number;
|
|
15
|
-
currentHeight: number;
|
|
16
|
-
currentMapProps: {
|
|
17
|
-
children?: React.ReactNode;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
declare class ReactMapView extends React.Component<ReactMapViewProps, ReactMapViewState> {
|
|
21
|
-
adaguc: AdagucObjectProp;
|
|
22
|
-
adagucContainerRef: React.RefObject<HTMLDivElement>;
|
|
23
|
-
adagucWebMapJSRef: React.RefObject<HTMLDivElement>;
|
|
24
|
-
refetchTimer: NodeJS.Timeout | number | null;
|
|
25
|
-
static defaultProps: {
|
|
26
|
-
srs: string;
|
|
27
|
-
bbox: {
|
|
28
|
-
left: number;
|
|
29
|
-
bottom: number;
|
|
30
|
-
right: number;
|
|
31
|
-
top: number;
|
|
32
|
-
};
|
|
33
|
-
shouldAutoFetch: boolean;
|
|
34
|
-
displayMapPin: boolean;
|
|
35
|
-
disableMapPin: boolean;
|
|
36
|
-
onWMJSMount: () => void;
|
|
37
|
-
onMapChangeDimension: () => void;
|
|
38
|
-
onUpdateLayerInformation: () => void;
|
|
39
|
-
onMapZoomEnd: () => void;
|
|
40
|
-
};
|
|
41
|
-
constructor(props: ReactMapViewProps);
|
|
42
|
-
componentDidMount(): void;
|
|
43
|
-
componentDidUpdate(prevProps: ReactMapViewProps): void;
|
|
44
|
-
componentWillUnmount(): void;
|
|
45
|
-
handleWindowResize(): void;
|
|
46
|
-
onDimChangeListener(): void;
|
|
47
|
-
onAfterSetBBoxListener(): void;
|
|
48
|
-
onUpdateBBoxListener(newBbox: WMBBOX): void;
|
|
49
|
-
onStartRefetchTimer: () => void;
|
|
50
|
-
clearRefetchTimer: () => void;
|
|
51
|
-
parseWMJSLayer: (wmLayer: WMLayer, forceReload: boolean, child?: React.ReactElement) => void;
|
|
52
|
-
updateWMJSMapProps(prevProps: ReactMapViewProps, props: ReactMapViewProps): void;
|
|
53
|
-
drawDebounced(): void;
|
|
54
|
-
mountWMJSMap(): WMJSMap | null;
|
|
55
|
-
resize(): void;
|
|
56
|
-
render(): React.ReactElement;
|
|
57
|
-
}
|
|
58
|
-
export default ReactMapView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
interface ReactMapViewLayerProps {
|
|
4
|
-
id: string;
|
|
5
|
-
onLayerReady?: (layer: WMLayer) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const ReactMapViewLayer: React.FC<ReactMapViewLayerProps>;
|
|
8
|
-
export default ReactMapViewLayer;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { WMLayer, WMJSDimension } from '@opengeoweb/webmap';
|
|
2
|
-
import { layerTypes } from '@opengeoweb/store';
|
|
3
|
-
export declare const getCurrentDimensionValue: (name: string, dimensions?: WMJSDimension[]) => string;
|
|
4
|
-
export declare const setLayerInfo: (wmLayer: WMLayer, mapId: string, onUpdateLayerInformation?: ((payload: layerTypes.UpdateLayerInfoPayload) => void) | undefined) => void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { WMJSMap } from '@opengeoweb/webmap';
|
|
3
|
-
import { layerTypes, mapTypes, serviceTypes } from '@opengeoweb/store';
|
|
4
|
-
export interface ReactMapViewProps {
|
|
5
|
-
listeners?: {
|
|
6
|
-
name?: string;
|
|
7
|
-
data: string;
|
|
8
|
-
keep: boolean;
|
|
9
|
-
callbackfunction: (webMap: WMJSMap, value: string) => void;
|
|
10
|
-
}[];
|
|
11
|
-
srs?: string;
|
|
12
|
-
bbox?: mapTypes.Bbox;
|
|
13
|
-
children?: React.ReactNode;
|
|
14
|
-
mapId: string;
|
|
15
|
-
activeLayerId?: string;
|
|
16
|
-
showScaleBar?: boolean;
|
|
17
|
-
showLegend?: boolean;
|
|
18
|
-
passiveMap?: boolean;
|
|
19
|
-
displayTimeInMap?: boolean;
|
|
20
|
-
animationDelay?: number;
|
|
21
|
-
dimensions?: mapTypes.Dimension[];
|
|
22
|
-
onClick?: () => void;
|
|
23
|
-
displayMapPin?: boolean;
|
|
24
|
-
mapPinLocation?: mapTypes.MapLocation;
|
|
25
|
-
shouldAutoFetch?: boolean;
|
|
26
|
-
showLayerInfo?: boolean;
|
|
27
|
-
disableMapPin?: boolean;
|
|
28
|
-
services?: serviceTypes.Services;
|
|
29
|
-
onWMJSMount?: (mapId: string) => void;
|
|
30
|
-
onMapChangeDimension?: (payload: mapTypes.SetMapDimensionPayload) => void;
|
|
31
|
-
onMapZoomEnd?: (payload: mapTypes.SetBboxPayload) => void;
|
|
32
|
-
onMapPinChangeLocation?: (payload: mapTypes.MapPinLocationPayload) => void;
|
|
33
|
-
onUpdateLayerInformation?: (payload: layerTypes.UpdateLayerInfoPayload) => void;
|
|
34
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { WMLayer } from '@opengeoweb/webmap';
|
|
2
|
-
import { layerTypes, mapTypes } from '@opengeoweb/store';
|
|
3
|
-
import { FeatureLayer } from '@opengeoweb/webmap-react';
|
|
4
|
-
/**
|
|
5
|
-
* Returns filtered list of props with geoJson
|
|
6
|
-
* @param children React.ReactNode, layers with geoJson
|
|
7
|
-
*/
|
|
8
|
-
export declare const getFeatureLayers: (children: React.ReactNode) => FeatureLayer[];
|
|
9
|
-
/**
|
|
10
|
-
* Returns true if this is a maplayer and not a baselayer or overlayer
|
|
11
|
-
* @param layer The layerTypes.Layer object, or the props from the ReactWMJSLayer
|
|
12
|
-
*/
|
|
13
|
-
export declare const isAMapLayer: (layer: layerTypes.Layer) => boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Returns true if this is a geojsonlayer (layer containing geojson field)
|
|
16
|
-
* @param layer The layerTypes.Layer object, or the props from the ReactWMJSLayer
|
|
17
|
-
*/
|
|
18
|
-
export declare const isAGeoJSONLayer: (layer: layerTypes.Layer) => boolean;
|
|
19
|
-
export declare const getWMJSLayerFromReactLayer: (mapId: string, wmLayers: WMLayer[], reactWebMapJSLayer: React.ReactElement, wmLayerIndex: number) => {
|
|
20
|
-
layer: WMLayer;
|
|
21
|
-
layerArrayMutated: boolean;
|
|
22
|
-
};
|
|
23
|
-
export declare function getIsInsideAcceptanceTime(acceptanceTimeInMinutes: number | undefined, mapDimensions: mapTypes.Dimension[] | undefined, layerDimensions: mapTypes.Dimension[] | undefined): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|