@opengeoweb/webmap-react 7.0.0 → 8.1.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 +14631 -2405
- package/package.json +1 -1
- package/src/lib/components/CanvasComponent/CanvasComponent.spec.d.ts +1 -0
- package/src/lib/components/CanvasComponent/CanvasComponentDynamic.stories.d.ts +6 -0
- package/src/lib/components/CanvasComponent/CanvasComponentStatic.stories.d.ts +6 -0
- package/src/lib/components/Legend/Legend.spec.d.ts +1 -0
- package/src/lib/components/Legend/Legend.stories.d.ts +8 -0
- package/src/lib/components/Legend/LegendDialog.spec.d.ts +1 -0
- package/src/lib/components/Legend/LegendLayout.spec.d.ts +1 -0
- package/src/lib/components/MapControls/MapControlButton.spec.d.ts +1 -0
- package/src/lib/components/MapControls/MapControls.spec.d.ts +1 -0
- package/src/lib/components/MapControls/ZoomControls.spec.d.ts +1 -0
- package/src/lib/components/MapDraw/MapDraw.spec.d.ts +1 -0
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +33 -0
- package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +1 -0
- package/src/lib/components/MapDraw/geojsonShapes.d.ts +1 -0
- package/src/lib/components/MapDraw/index.d.ts +1 -1
- package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +1 -0
- package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +8 -0
- package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +3 -0
- package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +3 -0
- package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +8 -0
- package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +11 -0
- package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +11 -0
- package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +3 -0
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +10 -0
- package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +3 -0
- package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +10 -0
- package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +0 -1
- package/src/lib/components/MapDraw/storyComponents/index.d.ts +5 -0
- package/src/lib/components/MapDraw/storyComponents/storyUtils.d.ts +48 -0
- package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +12 -0
- package/src/lib/components/MapDrawTool/MapDrawToolDoubleControls.stories.d.ts +6 -0
- package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +11 -0
- package/src/lib/components/MapDrawTool/index.d.ts +2 -0
- package/src/lib/components/MapDrawTool/types.d.ts +9 -0
- package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +105 -0
- package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +1 -0
- package/src/lib/components/MapTime/MapTime.spec.d.ts +1 -0
- package/src/lib/components/MapView/MapView.Error.stories.d.ts +14 -0
- package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.Passive.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +10 -0
- package/src/lib/components/MapView/MapView.spec.d.ts +1 -0
- package/src/lib/components/MapView/MapViewLayer.d.ts +1 -2
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +23 -0
- package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +1 -0
- package/src/lib/components/MapWarning/index.d.ts +1 -0
- package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +1 -0
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +1 -0
- package/src/lib/components/ReactMapView/types.d.ts +1 -0
- package/src/lib/components/ReactMapView/utils.spec.d.ts +1 -0
- package/src/lib/components/index.d.ts +2 -0
- package/src/lib/layers/defaultStorybookSettings.d.ts +9 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const SimpleLegend: () => React.ReactElement;
|
|
7
|
+
export declare const SimpleLegendWithMultiDimensions: () => React.ReactElement;
|
|
8
|
+
export declare const SimpleLegendWithoutDimensionsOrGraphic: () => React.ReactElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const Map1: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const Map2: {
|
|
11
|
+
(): React.ReactElement;
|
|
12
|
+
storyName: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const Map3: {
|
|
15
|
+
(): React.ReactElement;
|
|
16
|
+
storyName: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const Map4: {
|
|
19
|
+
(): React.ReactElement;
|
|
20
|
+
storyName: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const Map5: {
|
|
23
|
+
(): React.ReactElement;
|
|
24
|
+
storyName: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const Map6: {
|
|
27
|
+
(): React.ReactElement;
|
|
28
|
+
storyName: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const Map7: {
|
|
31
|
+
(): React.ReactElement;
|
|
32
|
+
storyName: string;
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const defaultGeoJSONStyleProperties: GeoJSON.GeoJsonProperties;
|
|
1
2
|
export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
2
3
|
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
3
4
|
export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FeatureLayersProps {
|
|
3
|
+
geojson: GeoJSON.FeatureCollection;
|
|
4
|
+
onChangeLayerIndex: (newIndex: number) => void;
|
|
5
|
+
activeFeatureLayerIndex: number;
|
|
6
|
+
}
|
|
7
|
+
declare const FeatureLayers: React.FC<FeatureLayersProps>;
|
|
8
|
+
export default FeatureLayers;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
interface GeoJSONTextFieldProps {
|
|
4
|
+
geoJSON: GeoJSON.FeatureCollection;
|
|
5
|
+
onChangeGeoJSON?: (geoJSON: GeoJSON.FeatureCollection) => void;
|
|
6
|
+
title?: string;
|
|
7
|
+
sx?: SxProps;
|
|
8
|
+
maxRows?: number;
|
|
9
|
+
}
|
|
10
|
+
declare const GeoJSONTextField: React.FC<GeoJSONTextFieldProps>;
|
|
11
|
+
export default GeoJSONTextField;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type IntersectionElement = {
|
|
3
|
+
geojson: GeoJSON.FeatureCollection;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
interface IntersectionSelectProps {
|
|
7
|
+
intersections: IntersectionElement[];
|
|
8
|
+
onChangeIntersection: (geojson: GeoJSON.FeatureCollection) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const IntersectionSelect: React.FC<IntersectionSelectProps>;
|
|
11
|
+
export default IntersectionSelect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MapViewLayerProps } from '../../MapView';
|
|
3
|
+
import { DrawModeExitCallback } from '../MapDraw';
|
|
4
|
+
interface StoryLayoutProps {
|
|
5
|
+
layers: MapViewLayerProps[];
|
|
6
|
+
children: React.ReactElement;
|
|
7
|
+
onExitDrawMode: (reason: DrawModeExitCallback) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const StoryLayout: React.FC<StoryLayoutProps>;
|
|
10
|
+
export default StoryLayout;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawMode } from '../../MapDrawTool';
|
|
3
|
+
interface ToolButtonProps {
|
|
4
|
+
mode: DrawMode;
|
|
5
|
+
isSelected: boolean;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
icon: React.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
export declare const ToolButton: React.FC<ToolButtonProps>;
|
|
10
|
+
export default ToolButton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const defaultStyleProperties: GeoJSON.GeoJsonProperties;
|
|
2
1
|
export declare const simplePolygonGeoJSON: GeoJSON.FeatureCollection;
|
|
3
2
|
export declare const simplePointsGeojson: GeoJSON.FeatureCollection;
|
|
4
3
|
export declare const simpleSmallLineStringGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare const drawPolyStoryStyles: {
|
|
2
|
+
MapDrawGeoJSONContainer: {
|
|
3
|
+
display: string;
|
|
4
|
+
gridTemplateColumns: string;
|
|
5
|
+
gridTemplateRows: string;
|
|
6
|
+
gridTemplateAreas: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
};
|
|
10
|
+
MapDrawGeoJSONMapContainer: {
|
|
11
|
+
gridArea: string;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
};
|
|
15
|
+
MapDrawGeoJSONControlsContainer: {
|
|
16
|
+
gridArea: string;
|
|
17
|
+
width: string;
|
|
18
|
+
height: string;
|
|
19
|
+
};
|
|
20
|
+
MapDrawGeoJSONTextAreaContainer: {
|
|
21
|
+
gridArea: string;
|
|
22
|
+
width: string;
|
|
23
|
+
height: string;
|
|
24
|
+
};
|
|
25
|
+
MapDrawGeoJSONTextArea: {
|
|
26
|
+
padding: number;
|
|
27
|
+
border: string;
|
|
28
|
+
width: string;
|
|
29
|
+
height: string;
|
|
30
|
+
fontSize: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const useGeoJSON: () => {
|
|
34
|
+
editModes: {
|
|
35
|
+
key: string;
|
|
36
|
+
value: string;
|
|
37
|
+
}[];
|
|
38
|
+
isInEditMode: boolean;
|
|
39
|
+
geojson: GeoJSON.FeatureCollection;
|
|
40
|
+
setGeojson: (geojson: GeoJSON.FeatureCollection) => void;
|
|
41
|
+
geojsonText: string;
|
|
42
|
+
setGeojsonText: (text: string) => void;
|
|
43
|
+
drawMode: string;
|
|
44
|
+
currentFeatureNrToEdit: number;
|
|
45
|
+
setCurrentFeatureNrToEdit: (featureNumber: number) => void;
|
|
46
|
+
changeDrawMode: (mode: string) => void;
|
|
47
|
+
setEditMode: (on: boolean) => void;
|
|
48
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
interface BasicMapDrawToolProps {
|
|
8
|
+
mapDrawOptions: MapDrawToolOptions;
|
|
9
|
+
}
|
|
10
|
+
export declare const BasicMapDrawTool: React.FC<BasicMapDrawToolProps>;
|
|
11
|
+
export declare const BasicMapDrawToolShape: () => React.ReactElement;
|
|
12
|
+
export declare const BasicMapDrawToolWithMultipleShapes: () => 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;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DRAWMODE } from '../MapDraw/MapDraw';
|
|
2
|
+
export type DrawModeValue = DRAWMODE | 'DELETE' | '';
|
|
3
|
+
export type DrawMode = {
|
|
4
|
+
drawModeId: string;
|
|
5
|
+
value: DrawModeValue;
|
|
6
|
+
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
7
|
+
title: string;
|
|
8
|
+
isSelectable: boolean;
|
|
9
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawMode, DrawModeValue } from './types';
|
|
3
|
+
import { MapViewLayerProps } from '../MapView';
|
|
4
|
+
import { DRAWMODE } from '../MapDraw/MapDraw';
|
|
5
|
+
export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
|
|
6
|
+
export declare const emptyLineString: GeoJSON.Feature;
|
|
7
|
+
export declare const emptyPoint: GeoJSON.Feature;
|
|
8
|
+
export declare const emptyPolygon: GeoJSON.Feature;
|
|
9
|
+
export declare const emptyBox: GeoJSON.Feature;
|
|
10
|
+
export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
|
|
11
|
+
type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
|
|
12
|
+
export interface MapDrawToolProps {
|
|
13
|
+
geoJSON: GeoJSON.FeatureCollection;
|
|
14
|
+
geoJSONIntersection?: GeoJSON.FeatureCollection;
|
|
15
|
+
geoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
|
|
16
|
+
setGeoJSON: (geojson: GeoJSON.Feature | GeoJSON.FeatureCollection) => void;
|
|
17
|
+
setGeoJSONIntersectionBounds: (geojson: GeoJSON.FeatureCollection) => void;
|
|
18
|
+
editModes: DrawMode[];
|
|
19
|
+
changeDrawMode: (mode: DrawModeValue) => void;
|
|
20
|
+
isInEditMode: boolean;
|
|
21
|
+
setEditMode: (shouldEnable: boolean) => void;
|
|
22
|
+
featureLayerIndex: number;
|
|
23
|
+
setFeatureLayerIndex: (newIndex: number) => void;
|
|
24
|
+
activeTool: string;
|
|
25
|
+
changeActiveTool: (newMode: DrawMode) => void;
|
|
26
|
+
setActiveTool: (newToolId: string) => void;
|
|
27
|
+
layers: MapViewLayerProps[];
|
|
28
|
+
getLayer: (layerType: DrawLayerType, layerId: string) => MapViewLayerProps;
|
|
29
|
+
deactivateTool: () => void;
|
|
30
|
+
setEditModes: (editModes: DrawMode[]) => void;
|
|
31
|
+
changeProperties: (geoJSONProperties: GeoJSON.GeoJsonProperties) => void;
|
|
32
|
+
getProperties: () => GeoJSON.GeoJsonProperties;
|
|
33
|
+
}
|
|
34
|
+
export interface MapDrawToolOptions {
|
|
35
|
+
shouldAllowMultipleshapes?: boolean;
|
|
36
|
+
defaultEditModes?: DrawMode[];
|
|
37
|
+
defaultGeoJSON?: GeoJSON.FeatureCollection;
|
|
38
|
+
defaultGeoJSONIntersection?: GeoJSON.FeatureCollection;
|
|
39
|
+
defaultGeoJSONIntersectionBounds?: GeoJSON.FeatureCollection;
|
|
40
|
+
defaultGeoJSONIntersectionProperties?: GeoJSON.GeoJsonProperties;
|
|
41
|
+
}
|
|
42
|
+
export declare const getIcon: (drawModeId: string) => React.ReactElement | null;
|
|
43
|
+
export declare const defaultPoint: {
|
|
44
|
+
drawModeId: string;
|
|
45
|
+
value: DRAWMODE;
|
|
46
|
+
title: string;
|
|
47
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
48
|
+
isSelectable: boolean;
|
|
49
|
+
};
|
|
50
|
+
export declare const defaultPolygon: {
|
|
51
|
+
drawModeId: string;
|
|
52
|
+
value: DRAWMODE;
|
|
53
|
+
title: string;
|
|
54
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
55
|
+
isSelectable: boolean;
|
|
56
|
+
};
|
|
57
|
+
export declare const defaultBox: {
|
|
58
|
+
drawModeId: string;
|
|
59
|
+
value: DRAWMODE;
|
|
60
|
+
title: string;
|
|
61
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
62
|
+
isSelectable: boolean;
|
|
63
|
+
};
|
|
64
|
+
export declare const defaultLineString: {
|
|
65
|
+
drawModeId: string;
|
|
66
|
+
value: DRAWMODE;
|
|
67
|
+
title: string;
|
|
68
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
69
|
+
isSelectable: boolean;
|
|
70
|
+
};
|
|
71
|
+
export declare const defaultDelete: {
|
|
72
|
+
drawModeId: string;
|
|
73
|
+
value: "DELETE";
|
|
74
|
+
title: string;
|
|
75
|
+
shape: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
76
|
+
isSelectable: boolean;
|
|
77
|
+
};
|
|
78
|
+
export declare const defaultModes: ({
|
|
79
|
+
drawModeId: string;
|
|
80
|
+
value: DRAWMODE;
|
|
81
|
+
title: string;
|
|
82
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
83
|
+
isSelectable: boolean;
|
|
84
|
+
} | {
|
|
85
|
+
drawModeId: string;
|
|
86
|
+
value: "DELETE";
|
|
87
|
+
title: string;
|
|
88
|
+
shape: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
89
|
+
isSelectable: boolean;
|
|
90
|
+
})[];
|
|
91
|
+
export declare const currentlySupportedDrawModes: ({
|
|
92
|
+
drawModeId: string;
|
|
93
|
+
value: DRAWMODE;
|
|
94
|
+
title: string;
|
|
95
|
+
shape: import("geojson").Feature<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
96
|
+
isSelectable: boolean;
|
|
97
|
+
} | {
|
|
98
|
+
drawModeId: string;
|
|
99
|
+
value: "DELETE";
|
|
100
|
+
title: string;
|
|
101
|
+
shape: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
102
|
+
isSelectable: boolean;
|
|
103
|
+
})[];
|
|
104
|
+
export declare const useMapDrawTool: ({ defaultEditModes, shouldAllowMultipleshapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, }: MapDrawToolOptions) => MapDrawToolProps;
|
|
105
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./MapView").MapViewProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const MapError: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const MapWithDuplicateLayerIdsError: {
|
|
12
|
+
(): React.ReactElement;
|
|
13
|
+
storyName: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./MapView").MapViewProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const SetProjectionBBox: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./MapView").MapViewProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const SetProjectionBBoxLocalState: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: React.FC<import("./MapView").MapViewProps>;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
export declare const MapWithShowLayerInfoEnabled: {
|
|
8
|
+
(): React.ReactElement;
|
|
9
|
+
storyName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GeoJSONObject } from '@turf/turf';
|
|
3
2
|
import { LayerFoundation, WMJSMap, WMLayer } from '@opengeoweb/webmap';
|
|
4
3
|
import { DrawModeExitCallback, FeatureEvent } from '../MapDraw';
|
|
5
4
|
export interface MapViewLayerProps extends LayerFoundation {
|
|
@@ -8,7 +7,7 @@ export interface MapViewLayerProps extends LayerFoundation {
|
|
|
8
7
|
onLayerError?: (layer: WMLayer, error?: Error) => void;
|
|
9
8
|
isInEditMode?: boolean;
|
|
10
9
|
drawMode?: string;
|
|
11
|
-
updateGeojson?: (geoJson:
|
|
10
|
+
updateGeojson?: (geoJson: GeoJSON.FeatureCollection) => void;
|
|
12
11
|
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
13
12
|
featureNrToEdit?: number;
|
|
14
13
|
onClickFeature?: (event: FeatureEvent) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface WarningListProps {
|
|
3
|
+
selectedFeatureProperties: {
|
|
4
|
+
identifier?: string;
|
|
5
|
+
severity?: string;
|
|
6
|
+
certainty?: string;
|
|
7
|
+
onset?: string;
|
|
8
|
+
expires?: string;
|
|
9
|
+
languages?: Language[];
|
|
10
|
+
};
|
|
11
|
+
languageIndex?: number;
|
|
12
|
+
parentSize?: number;
|
|
13
|
+
}
|
|
14
|
+
interface Language {
|
|
15
|
+
areaDesc: string;
|
|
16
|
+
language: string;
|
|
17
|
+
event: string;
|
|
18
|
+
senderName: string;
|
|
19
|
+
headline: string;
|
|
20
|
+
description: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const MapWarningProperties: React.FC<WarningListProps>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MapWarningProperties } from './MapWarningProperties';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const mockGeoJSON: GeoJSON.FeatureCollection;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './CanvasComponent';
|
|
2
2
|
export * from './Legend';
|
|
3
3
|
export * from './MapDraw';
|
|
4
|
+
export * from './MapDrawTool';
|
|
4
5
|
export * from './ReactMapView';
|
|
5
6
|
export * from './MapView';
|
|
6
7
|
export * from './MapTime';
|
|
7
8
|
export * from './MapControls';
|
|
9
|
+
export * from './MapWarning';
|