@opengeoweb/webmap-react 9.13.0 → 9.14.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 +1895 -741
- package/package.json +1 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +14 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +25 -0
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +11 -0
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +15 -0
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -0
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +1 -0
- package/src/lib/components/LayerInfo/index.d.ts +6 -0
- package/src/lib/components/MapDraw/MapDraw.d.ts +7 -1
- package/src/lib/components/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { CustomIconProps } from '@opengeoweb/shared';
|
|
3
|
+
interface LayerInfoButtonProps extends CustomIconProps {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const LayerInfoButton: React.FC<LayerInfoButtonProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Source } from '@opengeoweb/shared';
|
|
3
|
+
import { LayerProps } from '@opengeoweb/webmap';
|
|
4
|
+
export interface LayerInfoDialogProps {
|
|
5
|
+
layer: LayerProps;
|
|
6
|
+
serviceName: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onMouseDown?: () => void;
|
|
10
|
+
order?: number;
|
|
11
|
+
source?: Source;
|
|
12
|
+
dialogHeight?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare const LayerInfoDialog: React.FC<LayerInfoDialogProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const LayerInfoDialogLight: {
|
|
7
|
+
(): React.ReactElement;
|
|
8
|
+
storyName: string;
|
|
9
|
+
parameters: {
|
|
10
|
+
zeplinLink: {
|
|
11
|
+
name: string;
|
|
12
|
+
link: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const LayerInfoDialogDark: {
|
|
17
|
+
(): React.ReactElement;
|
|
18
|
+
storyName: string;
|
|
19
|
+
parameters: {
|
|
20
|
+
zeplinLink: {
|
|
21
|
+
name: string;
|
|
22
|
+
link: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
export interface LayerInfoLegendProps {
|
|
4
|
+
title: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dimensions: Dimension[];
|
|
7
|
+
legendURL: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const LayerInfoLegend: React.FC<LayerInfoLegendProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ListItem {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon: React.ReactElement;
|
|
6
|
+
}
|
|
7
|
+
export interface LayerInfoListProps {
|
|
8
|
+
label: string;
|
|
9
|
+
list: ListItem[];
|
|
10
|
+
}
|
|
11
|
+
export declare const LayerInfoList: React.FC<LayerInfoListProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface LayerInfoTextProps {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const textStyle: {
|
|
7
|
+
lineHeight: string;
|
|
8
|
+
letterSpacing: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const textStyleWithMargin: {
|
|
11
|
+
marginBottom: number;
|
|
12
|
+
lineHeight: string;
|
|
13
|
+
letterSpacing: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const LayerInfoText: React.FC<LayerInfoTextProps>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dimension, LayerProps } from '@opengeoweb/webmap';
|
|
3
|
+
import { ListItem } from './LayerInfoList';
|
|
4
|
+
export declare const getLayerStyles: (layer: LayerProps) => string;
|
|
5
|
+
export declare const getDimensionValue: (name: string, dimensions: Dimension[]) => string;
|
|
6
|
+
export declare const getLayerBbox: (layer: LayerProps) => string;
|
|
7
|
+
export declare const getDimensionIcon: (name: string, dimensions: Dimension[]) => React.ReactElement;
|
|
8
|
+
export declare const getDimensionLabel: (name: string) => string;
|
|
9
|
+
export declare const getDimensionsList: (dimensions: Dimension[]) => ListItem[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -104,6 +104,7 @@ export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
|
104
104
|
componentDidUpdate(prevProps: MapDrawProps): void;
|
|
105
105
|
componentWillUnmount(): void;
|
|
106
106
|
handleKeyDown(event: KeyboardEvent): void;
|
|
107
|
+
handleNewFeatureIndex(): void;
|
|
107
108
|
handleDrawMode(_drawMode: string): void;
|
|
108
109
|
getPixelCoordFromGeoCoord(featureCoords: Position[]): Coordinate[];
|
|
109
110
|
handleGeoJSONUpdate: (newGeoJSON: GeoJSON.FeatureCollection) => void;
|
|
@@ -113,6 +114,11 @@ export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
|
113
114
|
triggerMouseDownTimer(event: InputEvent): void | boolean;
|
|
114
115
|
mouseDoubleClick(): void;
|
|
115
116
|
insertVertexInEdge(event: InputEvent): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* This creates a new feature in the geojson features array at the selectedFeatureIndex location
|
|
119
|
+
* @param event
|
|
120
|
+
* @returns
|
|
121
|
+
*/
|
|
116
122
|
createNewFeature(event: InputEvent): void;
|
|
117
123
|
addPointToMultiPointFeature(event: InputEvent): boolean;
|
|
118
124
|
addVerticesToPolygonFeature(event: InputEvent): boolean;
|
|
@@ -143,7 +149,7 @@ export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
|
143
149
|
drawLine(ctx: CanvasRenderingContext2D, XYCoords: Coordinate[], featureIndex: number, lineStringIndex: number): void | DrawStyle;
|
|
144
150
|
drawPolygon(ctx: CanvasRenderingContext2D, XYCoords: Coordinate[], featureIndex: number, polygonIndex: number): void | DrawStyle;
|
|
145
151
|
convertGeoCoordsToScreenCoords(featureCoords: Position[]): Coordinate[];
|
|
146
|
-
|
|
152
|
+
initializeFeatureCoordinates(feature: GeoJsonFeature, type: string): GeoJsonFeature;
|
|
147
153
|
checkIfFeatureIsBox(feature: GeoJsonFeature): boolean;
|
|
148
154
|
featureHasChanged(text: string): void;
|
|
149
155
|
render(): React.ReactElement;
|