@opengeoweb/webmap-react 9.28.1 → 9.29.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 +251 -245
- package/package.json +1 -1
- package/src/index.d.ts +5 -5
- package/src/lib/components/Axis/ProfileAxis.d.ts +8 -8
- package/src/lib/components/Axis/ProfileAxis.spec.d.ts +1 -1
- package/src/lib/components/Axis/ProfileAxis.stories.d.ts +9 -9
- package/src/lib/components/Axis/profileUtils.d.ts +17 -17
- package/src/lib/components/Axis/profileUtils.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoButton.d.ts +9 -9
- package/src/lib/components/LayerInfo/LayerInfoButton.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.d.ts +14 -14
- package/src/lib/components/LayerInfo/LayerInfoDialog.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoDialog.stories.d.ts +25 -25
- package/src/lib/components/LayerInfo/LayerInfoLegend.d.ts +9 -9
- package/src/lib/components/LayerInfo/LayerInfoLegend.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/LayerInfoList.d.ts +11 -11
- package/src/lib/components/LayerInfo/LayerInfoText.d.ts +15 -15
- package/src/lib/components/LayerInfo/LayerInfoUtils.d.ts +9 -9
- package/src/lib/components/LayerInfo/LayerInfoUtils.spec.d.ts +1 -1
- package/src/lib/components/LayerInfo/index.d.ts +6 -6
- package/src/lib/components/Legend/Legend.d.ts +7 -7
- package/src/lib/components/Legend/Legend.spec.d.ts +1 -1
- package/src/lib/components/Legend/Legend.stories.d.ts +8 -8
- package/src/lib/components/Legend/LegendButton.d.ts +5 -5
- package/src/lib/components/Legend/LegendButton.spec.d.ts +1 -1
- package/src/lib/components/Legend/LegendDialog.d.ts +15 -15
- package/src/lib/components/Legend/LegendDialog.spec.d.ts +1 -1
- package/src/lib/components/Legend/LegendLayout.d.ts +13 -13
- package/src/lib/components/Legend/LegendLayout.spec.d.ts +1 -1
- package/src/lib/components/Legend/index.d.ts +4 -4
- package/src/lib/components/MapControls/MapControlButton.d.ts +10 -10
- package/src/lib/components/MapControls/MapControlButton.spec.d.ts +1 -1
- package/src/lib/components/MapControls/MapControls.d.ts +7 -7
- package/src/lib/components/MapControls/MapControls.spec.d.ts +1 -1
- package/src/lib/components/MapControls/ZoomControls.d.ts +8 -8
- package/src/lib/components/MapControls/ZoomControls.spec.d.ts +1 -1
- package/src/lib/components/MapControls/index.d.ts +3 -3
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.d.ts +8 -8
- package/src/lib/components/MapDimensionSelect/DimensionSelectButton.spec.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.d.ts +14 -14
- package/src/lib/components/MapDimensionSelect/DimensionSelectDialog.stories.d.ts +29 -29
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.d.ts +14 -14
- package/src/lib/components/MapDimensionSelect/DimensionSelectSlider.spec.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.d.ts +11 -11
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.spec.d.ts +1 -1
- package/src/lib/components/MapDimensionSelect/MapDimensionSelect.stories.d.ts +7 -7
- package/src/lib/components/MapDimensionSelect/index.d.ts +6 -6
- package/src/lib/components/MapDimensionSelect/utils.d.ts +17 -17
- package/src/lib/components/MapDimensionSelect/utils.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/MapDraw.d.ts +158 -158
- package/src/lib/components/MapDraw/MapDraw.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/MapDraw.stories.d.ts +37 -37
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +23 -23
- package/src/lib/components/MapDraw/MapDrawContainer.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/geojsonShapes.d.ts +19 -19
- package/src/lib/components/MapDraw/index.d.ts +5 -5
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +44 -44
- package/src/lib/components/MapDraw/mapDrawUtils.spec.d.ts +1 -1
- package/src/lib/components/MapDraw/storyComponents/EditModeButton.d.ts +8 -8
- package/src/lib/components/MapDraw/storyComponents/FeatureInfo.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureInfoHTML.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/FeatureLayers.d.ts +9 -9
- package/src/lib/components/MapDraw/storyComponents/GeoJSONTextField.d.ts +11 -11
- package/src/lib/components/MapDraw/storyComponents/IntersectionSelect.d.ts +12 -12
- package/src/lib/components/MapDraw/storyComponents/MapDrawGeoJSON.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/SelectField.d.ts +10 -10
- package/src/lib/components/MapDraw/storyComponents/StoryLayout.d.ts +10 -10
- package/src/lib/components/MapDraw/storyComponents/StoryLayoutGrid.d.ts +5 -5
- package/src/lib/components/MapDraw/storyComponents/Synops.d.ts +3 -3
- package/src/lib/components/MapDraw/storyComponents/ToolButton.d.ts +10 -10
- package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +12 -12
- package/src/lib/components/MapDraw/storyComponents/index.d.ts +8 -8
- package/src/lib/components/MapDraw/storyComponents/storyUtils.d.ts +49 -49
- package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +13 -13
- package/src/lib/components/MapDrawTool/MapDrawToolIntersection.stories.d.ts +11 -11
- package/src/lib/components/MapDrawTool/MapDrawToolMultipleDrawTools.stories.d.ts +6 -6
- package/src/lib/components/MapDrawTool/index.d.ts +7 -7
- package/src/lib/components/MapDrawTool/storyExamplesMapDrawTool.d.ts +10 -10
- package/src/lib/components/MapDrawTool/storyExamplesMapDrawToolIntersection.d.ts +10 -10
- package/src/lib/components/MapDrawTool/storyExamplesMapDrawToolMultipleDrawTools.d.ts +13 -13
- package/src/lib/components/MapDrawTool/types.d.ts +13 -13
- package/src/lib/components/MapDrawTool/useMapDrawTool.d.ts +53 -53
- package/src/lib/components/MapDrawTool/useMapDrawTool.spec.d.ts +1 -1
- package/src/lib/components/MapDrawTool/utils.d.ts +62 -62
- package/src/lib/components/MapDrawTool/utils.spec.d.ts +1 -1
- package/src/lib/components/MapTime/MapTime.d.ts +11 -11
- package/src/lib/components/MapTime/MapTime.spec.d.ts +1 -1
- package/src/lib/components/MapTime/index.d.ts +1 -1
- package/src/lib/components/MapView/MapView.Error.stories.d.ts +14 -14
- package/src/lib/components/MapView/MapView.MapPin.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.Passive.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.ProfileSounding.stories.d.ts +9 -9
- package/src/lib/components/MapView/MapView.RadarAnimation.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.RadarData.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.SetProjectionBBox.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.SetProjectionBBoxLocalState.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.ShiftToZoom.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.ShowLayerInfo.stories.d.ts +10 -10
- package/src/lib/components/MapView/MapView.TiledBaseLayers.stories.d.ts +22 -22
- package/src/lib/components/MapView/MapView.d.ts +8 -8
- package/src/lib/components/MapView/MapView.spec.d.ts +1 -1
- package/src/lib/components/MapView/MapViewLayer.d.ts +16 -16
- package/src/lib/components/MapView/index.d.ts +2 -2
- package/src/lib/components/MapWarning/MapWarningProperties.d.ts +23 -23
- package/src/lib/components/MapWarning/MapWarningProperties.spec.d.ts +1 -1
- package/src/lib/components/MapWarning/index.d.ts +1 -1
- package/src/lib/components/Providers/Providers.d.ts +3 -3
- package/src/lib/components/Providers/index.d.ts +1 -1
- package/src/lib/components/ReactMapView/ReactMapView.d.ts +64 -64
- package/src/lib/components/ReactMapView/ReactMapView.spec.d.ts +2 -2
- package/src/lib/components/ReactMapView/ReactMapViewLayer.d.ts +8 -8
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.d.ts +4 -4
- package/src/lib/components/ReactMapView/ReactMapViewParseLayer.spec.d.ts +1 -1
- package/src/lib/components/ReactMapView/index.d.ts +5 -5
- package/src/lib/components/ReactMapView/types.d.ts +88 -86
- package/src/lib/components/ReactMapView/utils.d.ts +26 -26
- package/src/lib/components/ReactMapView/utils.spec.d.ts +1 -1
- package/src/lib/components/index.d.ts +12 -12
- package/src/lib/index.d.ts +3 -3
- package/src/lib/layers/defaultLayers.d.ts +15 -15
- package/src/lib/layers/defaultStorybookSettings.d.ts +9 -9
- package/src/lib/layers/index.d.ts +3 -3
- package/src/lib/layers/profileLayers.d.ts +19 -19
- package/src/lib/layers/publicLayers.d.ts +310 -310
- package/src/lib/layers/publicServices.d.ts +90 -90
- package/src/lib/utils/i18n.d.ts +6 -6
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export declare const defaultGeoJSONStyleProperties: GeoJSON.GeoJsonProperties;
|
|
2
|
-
export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
3
|
-
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
4
|
-
export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
5
|
-
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
6
|
-
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
7
|
-
export declare const lineString: GeoJSON.Feature<GeoJSON.LineString>;
|
|
8
|
-
export declare const lineStringCollection: GeoJSON.FeatureCollection;
|
|
9
|
-
export interface GeoFeatureStyle {
|
|
10
|
-
stroke?: string;
|
|
11
|
-
fill?: string;
|
|
12
|
-
'stroke-width'?: number;
|
|
13
|
-
'stroke-opacity'?: number;
|
|
14
|
-
'fill-opacity'?: number;
|
|
15
|
-
}
|
|
16
|
-
export interface Coordinate {
|
|
17
|
-
x: number;
|
|
18
|
-
y: number;
|
|
19
|
-
}
|
|
1
|
+
export declare const defaultGeoJSONStyleProperties: GeoJSON.GeoJsonProperties;
|
|
2
|
+
export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
3
|
+
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
4
|
+
export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
5
|
+
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
6
|
+
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
7
|
+
export declare const lineString: GeoJSON.Feature<GeoJSON.LineString>;
|
|
8
|
+
export declare const lineStringCollection: GeoJSON.FeatureCollection;
|
|
9
|
+
export interface GeoFeatureStyle {
|
|
10
|
+
stroke?: string;
|
|
11
|
+
fill?: string;
|
|
12
|
+
'stroke-width'?: number;
|
|
13
|
+
'stroke-opacity'?: number;
|
|
14
|
+
'fill-opacity'?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface Coordinate {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './MapDrawContainer';
|
|
2
|
-
export * from './MapDraw';
|
|
3
|
-
export * from './mapDrawUtils';
|
|
4
|
-
export * from './geojsonShapes';
|
|
5
|
-
export * from './storyComponents';
|
|
1
|
+
export * from './MapDrawContainer';
|
|
2
|
+
export * from './MapDraw';
|
|
3
|
+
export * from './mapDrawUtils';
|
|
4
|
+
export * from './geojsonShapes';
|
|
5
|
+
export * from './storyComponents';
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import proj4, { InterfaceProjection } from 'proj4';
|
|
2
|
-
import { Position } from 'geojson';
|
|
3
|
-
import { Coordinate } from './geojsonShapes';
|
|
4
|
-
export type CheckHoverFeaturesResult = {
|
|
5
|
-
coordinateIndexInFeature: number;
|
|
6
|
-
featureIndex: number;
|
|
7
|
-
feature: GeoJSON.Feature;
|
|
8
|
-
distance: number;
|
|
9
|
-
screenCoords: {
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
};
|
|
13
|
-
} | null;
|
|
14
|
-
export type ProjectorCache = Record<string, InterfaceProjection>;
|
|
15
|
-
export declare const Proj4js: typeof proj4;
|
|
16
|
-
export declare const projectorCache: ProjectorCache;
|
|
17
|
-
export declare const getProj4: (projection: string | proj4.InterfaceProjection) => InterfaceProjection;
|
|
18
|
-
export declare const distance: (a: Coordinate, b: Coordinate) => number;
|
|
19
|
-
export declare const isBetween: (a: Coordinate, c: Coordinate, b: Coordinate) => boolean;
|
|
20
|
-
export declare const convertGeoCoordsToScreenCoords: (featureCoords: Position[], mapId: string) => Coordinate[];
|
|
21
|
-
export declare const getPixelCoordFromGeoCoord: (featureCoords: Position[], mapId: string) => Coordinate[];
|
|
22
|
-
export declare const findClosestCoords: (positions: Coordinate[], mouseX: number, mouseY: number) => number[];
|
|
23
|
-
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
|
|
24
|
-
export interface MapDrawDrawFunctionArgs {
|
|
25
|
-
context: CanvasRenderingContext2D;
|
|
26
|
-
featureIndex: number;
|
|
27
|
-
coord: Coordinate;
|
|
28
|
-
selected: boolean;
|
|
29
|
-
isInEditMode: boolean;
|
|
30
|
-
feature: GeoJSON.Feature;
|
|
31
|
-
mouseX: number;
|
|
32
|
-
mouseY: number;
|
|
33
|
-
isHovered: boolean;
|
|
34
|
-
}
|
|
35
|
-
interface DrawFunction {
|
|
36
|
-
id: string;
|
|
37
|
-
drawMethod: (args: MapDrawDrawFunctionArgs) => void;
|
|
38
|
-
}
|
|
39
|
-
export declare const getDrawFunctionFromStore: (id: string) => DrawFunction['drawMethod'] | undefined;
|
|
40
|
-
export declare const registerDrawFunction: (drawFunction?: DrawFunction['drawMethod']) => string;
|
|
41
|
-
export declare const NEW_LINESTRING_CREATED: string;
|
|
42
|
-
export declare const NEW_FEATURE_CREATED: string;
|
|
43
|
-
export declare const NEW_POINT_CREATED: string;
|
|
44
|
-
export {};
|
|
1
|
+
import proj4, { InterfaceProjection } from 'proj4';
|
|
2
|
+
import { Position } from 'geojson';
|
|
3
|
+
import { Coordinate } from './geojsonShapes';
|
|
4
|
+
export type CheckHoverFeaturesResult = {
|
|
5
|
+
coordinateIndexInFeature: number;
|
|
6
|
+
featureIndex: number;
|
|
7
|
+
feature: GeoJSON.Feature;
|
|
8
|
+
distance: number;
|
|
9
|
+
screenCoords: {
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
} | null;
|
|
14
|
+
export type ProjectorCache = Record<string, InterfaceProjection>;
|
|
15
|
+
export declare const Proj4js: typeof proj4;
|
|
16
|
+
export declare const projectorCache: ProjectorCache;
|
|
17
|
+
export declare const getProj4: (projection: string | proj4.InterfaceProjection) => InterfaceProjection;
|
|
18
|
+
export declare const distance: (a: Coordinate, b: Coordinate) => number;
|
|
19
|
+
export declare const isBetween: (a: Coordinate, c: Coordinate, b: Coordinate) => boolean;
|
|
20
|
+
export declare const convertGeoCoordsToScreenCoords: (featureCoords: Position[], mapId: string) => Coordinate[];
|
|
21
|
+
export declare const getPixelCoordFromGeoCoord: (featureCoords: Position[], mapId: string) => Coordinate[];
|
|
22
|
+
export declare const findClosestCoords: (positions: Coordinate[], mouseX: number, mouseY: number) => number[];
|
|
23
|
+
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
|
|
24
|
+
export interface MapDrawDrawFunctionArgs {
|
|
25
|
+
context: CanvasRenderingContext2D;
|
|
26
|
+
featureIndex: number;
|
|
27
|
+
coord: Coordinate;
|
|
28
|
+
selected: boolean;
|
|
29
|
+
isInEditMode: boolean;
|
|
30
|
+
feature: GeoJSON.Feature;
|
|
31
|
+
mouseX: number;
|
|
32
|
+
mouseY: number;
|
|
33
|
+
isHovered: boolean;
|
|
34
|
+
}
|
|
35
|
+
interface DrawFunction {
|
|
36
|
+
id: string;
|
|
37
|
+
drawMethod: (args: MapDrawDrawFunctionArgs) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare const getDrawFunctionFromStore: (id: string) => DrawFunction['drawMethod'] | undefined;
|
|
40
|
+
export declare const registerDrawFunction: (drawFunction?: DrawFunction['drawMethod']) => string;
|
|
41
|
+
export declare const NEW_LINESTRING_CREATED: string;
|
|
42
|
+
export declare const NEW_FEATURE_CREATED: string;
|
|
43
|
+
export declare const NEW_POINT_CREATED: string;
|
|
44
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface EditModeButtonProps {
|
|
3
|
-
isInEditMode: boolean;
|
|
4
|
-
onToggleEditMode: (isEditMode: boolean) => void;
|
|
5
|
-
drawMode: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const EditModeButton: React.FC<EditModeButtonProps>;
|
|
8
|
-
export default EditModeButton;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EditModeButtonProps {
|
|
3
|
+
isInEditMode: boolean;
|
|
4
|
+
onToggleEditMode: (isEditMode: boolean) => void;
|
|
5
|
+
drawMode: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const EditModeButton: React.FC<EditModeButtonProps>;
|
|
8
|
+
export default EditModeButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const FeatureInfo: React.FC;
|
|
3
|
-
export default FeatureInfo;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const FeatureInfo: React.FC;
|
|
3
|
+
export default FeatureInfo;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const FeatureInfoHTML: React.FC;
|
|
3
|
-
export default FeatureInfoHTML;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const FeatureInfoHTML: React.FC;
|
|
3
|
+
export default FeatureInfoHTML;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface FeatureLayersProps {
|
|
3
|
-
geojson: GeoJSON.FeatureCollection;
|
|
4
|
-
onChangeLayerIndex: (newIndex: number, feature: GeoJSON.Feature) => void;
|
|
5
|
-
activeFeatureLayerIndex: number;
|
|
6
|
-
getToolIcon: (selectionType: string) => React.ReactElement;
|
|
7
|
-
}
|
|
8
|
-
declare const FeatureLayers: React.FC<FeatureLayersProps>;
|
|
9
|
-
export default FeatureLayers;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface FeatureLayersProps {
|
|
3
|
+
geojson: GeoJSON.FeatureCollection;
|
|
4
|
+
onChangeLayerIndex: (newIndex: number, feature: GeoJSON.Feature) => void;
|
|
5
|
+
activeFeatureLayerIndex: number;
|
|
6
|
+
getToolIcon: (selectionType: string) => React.ReactElement;
|
|
7
|
+
}
|
|
8
|
+
declare const FeatureLayers: React.FC<FeatureLayersProps>;
|
|
9
|
+
export default FeatureLayers;
|
|
@@ -1,11 +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;
|
|
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;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IntersectionElement {
|
|
3
|
-
geojson: GeoJSON.FeatureCollection;
|
|
4
|
-
title: string;
|
|
5
|
-
}
|
|
6
|
-
interface IntersectionSelectProps {
|
|
7
|
-
intersections: IntersectionElement[];
|
|
8
|
-
onChangeIntersection: (geojson: GeoJSON.FeatureCollection, title: string) => void;
|
|
9
|
-
isDisabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export declare const IntersectionSelect: React.FC<IntersectionSelectProps>;
|
|
12
|
-
export default IntersectionSelect;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IntersectionElement {
|
|
3
|
+
geojson: GeoJSON.FeatureCollection;
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
interface IntersectionSelectProps {
|
|
7
|
+
intersections: IntersectionElement[];
|
|
8
|
+
onChangeIntersection: (geojson: GeoJSON.FeatureCollection, title: string) => void;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const IntersectionSelect: React.FC<IntersectionSelectProps>;
|
|
12
|
+
export default IntersectionSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const MapDrawGeoJSON: React.FC;
|
|
3
|
-
export default MapDrawGeoJSON;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const MapDrawGeoJSON: React.FC;
|
|
3
|
+
export default MapDrawGeoJSON;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const SelectField: React.FC<{
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
onChangeValue: (value: string) => void;
|
|
6
|
-
options: string[];
|
|
7
|
-
width?: string;
|
|
8
|
-
showValueAsColor?: boolean;
|
|
9
|
-
labelSuffix?: string;
|
|
10
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const SelectField: React.FC<{
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
onChangeValue: (value: string) => void;
|
|
6
|
+
options: string[];
|
|
7
|
+
width?: string;
|
|
8
|
+
showValueAsColor?: boolean;
|
|
9
|
+
labelSuffix?: string;
|
|
10
|
+
}>;
|
|
@@ -1,10 +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;
|
|
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const StoryLayoutGrid: React.FC<{
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
mapComponent: React.ReactNode;
|
|
5
|
-
}>;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const StoryLayoutGrid: React.FC<{
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
mapComponent: React.ReactNode;
|
|
5
|
+
}>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare const Synops: React.FC;
|
|
3
|
-
export default Synops;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const Synops: React.FC;
|
|
3
|
+
export default Synops;
|
|
@@ -1,10 +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
|
+
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,12 +1,12 @@
|
|
|
1
|
-
export declare const simplePolygonGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
2
|
-
export declare const simplePointsGeojson: GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
3
|
-
export declare const simpleSmallLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
4
|
-
export declare const simpleFlightRoutePointsGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
5
|
-
export declare const simpleLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
6
|
-
export declare const simpleBoxGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
7
|
-
export declare const simpleBoxGeoJSONWrongOrder: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
8
|
-
export declare const simpleFlightRouteLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
9
|
-
export declare const simpleMultiPolygon: GeoJSON.FeatureCollection<GeoJSON.MultiPolygon>;
|
|
10
|
-
export declare const intersectionFeatureNL: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
11
|
-
export declare const intersectionFeatureBE: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
12
|
-
export declare const simpleGeometryCollectionGeoJSON: GeoJSON.FeatureCollection<GeoJSON.GeometryCollection<GeoJSON.MultiPolygon>>;
|
|
1
|
+
export declare const simplePolygonGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
2
|
+
export declare const simplePointsGeojson: GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
3
|
+
export declare const simpleSmallLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
4
|
+
export declare const simpleFlightRoutePointsGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Point>;
|
|
5
|
+
export declare const simpleLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
6
|
+
export declare const simpleBoxGeoJSON: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
7
|
+
export declare const simpleBoxGeoJSONWrongOrder: GeoJSON.FeatureCollection<GeoJSON.Polygon>;
|
|
8
|
+
export declare const simpleFlightRouteLineStringGeoJSON: GeoJSON.FeatureCollection<GeoJSON.LineString>;
|
|
9
|
+
export declare const simpleMultiPolygon: GeoJSON.FeatureCollection<GeoJSON.MultiPolygon>;
|
|
10
|
+
export declare const intersectionFeatureNL: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
11
|
+
export declare const intersectionFeatureBE: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
12
|
+
export declare const simpleGeometryCollectionGeoJSON: GeoJSON.FeatureCollection<GeoJSON.GeometryCollection<GeoJSON.MultiPolygon>>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { default as GeoJSONTextField } from './GeoJSONTextField';
|
|
2
|
-
export { default as FeatureLayers } from './FeatureLayers';
|
|
3
|
-
export { default as EditModeButtonField } from './EditModeButton';
|
|
4
|
-
export * from './geojsonExamples';
|
|
5
|
-
export * from './storyUtils';
|
|
6
|
-
export * from './StoryLayoutGrid';
|
|
7
|
-
export * from './SelectField';
|
|
8
|
-
export * from './IntersectionSelect';
|
|
1
|
+
export { default as GeoJSONTextField } from './GeoJSONTextField';
|
|
2
|
+
export { default as FeatureLayers } from './FeatureLayers';
|
|
3
|
+
export { default as EditModeButtonField } from './EditModeButton';
|
|
4
|
+
export * from './geojsonExamples';
|
|
5
|
+
export * from './storyUtils';
|
|
6
|
+
export * from './StoryLayoutGrid';
|
|
7
|
+
export * from './SelectField';
|
|
8
|
+
export * from './IntersectionSelect';
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { FeatureCollection } from 'geojson';
|
|
2
|
-
export declare const drawPolyStoryStyles: {
|
|
3
|
-
MapDrawGeoJSONContainer: {
|
|
4
|
-
display: string;
|
|
5
|
-
gridTemplateColumns: string;
|
|
6
|
-
gridTemplateRows: string;
|
|
7
|
-
gridTemplateAreas: string;
|
|
8
|
-
width: string;
|
|
9
|
-
height: string;
|
|
10
|
-
};
|
|
11
|
-
MapDrawGeoJSONMapContainer: {
|
|
12
|
-
gridArea: string;
|
|
13
|
-
width: string;
|
|
14
|
-
height: string;
|
|
15
|
-
};
|
|
16
|
-
MapDrawGeoJSONControlsContainer: {
|
|
17
|
-
gridArea: string;
|
|
18
|
-
width: string;
|
|
19
|
-
height: string;
|
|
20
|
-
};
|
|
21
|
-
MapDrawGeoJSONTextAreaContainer: {
|
|
22
|
-
gridArea: string;
|
|
23
|
-
width: string;
|
|
24
|
-
height: string;
|
|
25
|
-
};
|
|
26
|
-
MapDrawGeoJSONTextArea: {
|
|
27
|
-
padding: number;
|
|
28
|
-
border: string;
|
|
29
|
-
width: string;
|
|
30
|
-
height: string;
|
|
31
|
-
fontSize: string;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
export declare const useGeoJSON: () => {
|
|
35
|
-
editModes: {
|
|
36
|
-
key: string;
|
|
37
|
-
value: string;
|
|
38
|
-
}[];
|
|
39
|
-
isInEditMode: boolean;
|
|
40
|
-
geojson: GeoJSON.FeatureCollection;
|
|
41
|
-
setGeojson: (geojson: GeoJSON.FeatureCollection) => void;
|
|
42
|
-
geojsonText: string;
|
|
43
|
-
setGeojsonText: (text: string) => void;
|
|
44
|
-
drawMode: string;
|
|
45
|
-
currentFeatureNrToEdit: number;
|
|
46
|
-
setCurrentFeatureNrToEdit: (featureNumber: number) => void;
|
|
47
|
-
changeDrawMode: (mode: string) => void;
|
|
48
|
-
setEditMode: (on: boolean) => void;
|
|
49
|
-
};
|
|
1
|
+
import { FeatureCollection } from 'geojson';
|
|
2
|
+
export declare const drawPolyStoryStyles: {
|
|
3
|
+
MapDrawGeoJSONContainer: {
|
|
4
|
+
display: string;
|
|
5
|
+
gridTemplateColumns: string;
|
|
6
|
+
gridTemplateRows: string;
|
|
7
|
+
gridTemplateAreas: string;
|
|
8
|
+
width: string;
|
|
9
|
+
height: string;
|
|
10
|
+
};
|
|
11
|
+
MapDrawGeoJSONMapContainer: {
|
|
12
|
+
gridArea: string;
|
|
13
|
+
width: string;
|
|
14
|
+
height: string;
|
|
15
|
+
};
|
|
16
|
+
MapDrawGeoJSONControlsContainer: {
|
|
17
|
+
gridArea: string;
|
|
18
|
+
width: string;
|
|
19
|
+
height: string;
|
|
20
|
+
};
|
|
21
|
+
MapDrawGeoJSONTextAreaContainer: {
|
|
22
|
+
gridArea: string;
|
|
23
|
+
width: string;
|
|
24
|
+
height: string;
|
|
25
|
+
};
|
|
26
|
+
MapDrawGeoJSONTextArea: {
|
|
27
|
+
padding: number;
|
|
28
|
+
border: string;
|
|
29
|
+
width: string;
|
|
30
|
+
height: string;
|
|
31
|
+
fontSize: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const useGeoJSON: () => {
|
|
35
|
+
editModes: {
|
|
36
|
+
key: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
isInEditMode: boolean;
|
|
40
|
+
geojson: GeoJSON.FeatureCollection;
|
|
41
|
+
setGeojson: (geojson: GeoJSON.FeatureCollection) => void;
|
|
42
|
+
geojsonText: string;
|
|
43
|
+
setGeojsonText: (text: string) => void;
|
|
44
|
+
drawMode: string;
|
|
45
|
+
currentFeatureNrToEdit: number;
|
|
46
|
+
setCurrentFeatureNrToEdit: (featureNumber: number) => void;
|
|
47
|
+
changeDrawMode: (mode: string) => void;
|
|
48
|
+
setEditMode: (on: boolean) => void;
|
|
49
|
+
};
|
|
@@ -1,13 +1,13 @@
|
|
|
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;
|
|
13
|
-
export declare const BasicMapDrawToolWithMultipleShapesValues: () => React.ReactElement;
|
|
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;
|
|
13
|
+
export declare const BasicMapDrawToolWithMultipleShapesValues: () => React.ReactElement;
|
|
@@ -1,11 +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;
|
|
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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
title: string;
|
|
4
|
-
};
|
|
5
|
-
export default _default;
|
|
6
|
-
export declare const MultipleDrawToolsDemo: () => React.ReactElement;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
title: string;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export declare const MultipleDrawToolsDemo: () => React.ReactElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './types';
|
|
2
|
-
export { useMapDrawTool, defaultPoint, defaultDelete, defaultPolygon, defaultBox, defaultIntersectionStyleProperties, getIcon, currentlySupportedDrawModes, defaultModes, } from './useMapDrawTool';
|
|
3
|
-
export type { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
|
-
export * from './utils';
|
|
5
|
-
export * from './storyExamplesMapDrawTool';
|
|
6
|
-
export * from './storyExamplesMapDrawToolIntersection';
|
|
7
|
-
export * from './storyExamplesMapDrawToolMultipleDrawTools';
|
|
1
|
+
export * from './types';
|
|
2
|
+
export { useMapDrawTool, defaultPoint, defaultDelete, defaultPolygon, defaultBox, defaultIntersectionStyleProperties, getIcon, currentlySupportedDrawModes, defaultModes, } from './useMapDrawTool';
|
|
3
|
+
export type { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './storyExamplesMapDrawTool';
|
|
6
|
+
export * from './storyExamplesMapDrawToolIntersection';
|
|
7
|
+
export * from './storyExamplesMapDrawToolMultipleDrawTools';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SelectionType } from './types';
|
|
3
|
-
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
|
-
export declare const opacityOptions: string[];
|
|
5
|
-
export declare const fillOptions: any[];
|
|
6
|
-
export declare const strokeWidthOptions: string[];
|
|
7
|
-
export declare const getToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
8
|
-
export declare const basicExampleDrawOptions: MapDrawToolOptions;
|
|
9
|
-
export declare const basicExampleMultipleShapeDrawOptions: MapDrawToolOptions;
|
|
10
|
-
export declare const basicExampleMultipleShapeWithValuesDrawOptions: MapDrawToolOptions;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectionType } from './types';
|
|
3
|
+
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
|
+
export declare const opacityOptions: string[];
|
|
5
|
+
export declare const fillOptions: any[];
|
|
6
|
+
export declare const strokeWidthOptions: string[];
|
|
7
|
+
export declare const getToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
8
|
+
export declare const basicExampleDrawOptions: MapDrawToolOptions;
|
|
9
|
+
export declare const basicExampleMultipleShapeDrawOptions: MapDrawToolOptions;
|
|
10
|
+
export declare const basicExampleMultipleShapeWithValuesDrawOptions: MapDrawToolOptions;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SelectionType } from './types';
|
|
3
|
-
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
|
-
export declare const getIntersectionToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
5
|
-
export declare const exampleIntersections: {
|
|
6
|
-
title: string;
|
|
7
|
-
geojson: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const exampleIntersectionOptions: MapDrawToolOptions;
|
|
10
|
-
export declare const exampleIntersectionWithShapeOptions: MapDrawToolOptions;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectionType } from './types';
|
|
3
|
+
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
4
|
+
export declare const getIntersectionToolIcon: (selectionType: SelectionType) => React.ReactElement;
|
|
5
|
+
export declare const exampleIntersections: {
|
|
6
|
+
title: string;
|
|
7
|
+
geojson: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const exampleIntersectionOptions: MapDrawToolOptions;
|
|
10
|
+
export declare const exampleIntersectionWithShapeOptions: MapDrawToolOptions;
|