@opengeoweb/webmap-react 14.2.2 → 14.4.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 +6131 -5753
- package/package.json +4 -4
- package/src/lib/components/MapMeasure/MapMeasure.d.ts +4 -0
- package/src/lib/components/MapMeasure/index.d.ts +1 -0
- package/src/lib/components/OpenLayers/OlColors.d.ts +5 -0
- package/src/lib/components/OpenLayers/OlStyles.d.ts +6 -5
- package/src/lib/components/OpenLayers/OpenLayersMapView.Measure.stories.d.ts +6 -0
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.d.ts +1 -2
- package/src/lib/components/OpenLayers/draw/OpenLayersMapDraw.stories.d.ts +4 -6
- package/src/lib/components/{MapDraw → OpenLayers/draw}/geojsonShapes.d.ts +0 -1
- package/src/lib/components/OpenLayers/draw/index.d.ts +9 -0
- package/src/lib/components/{MapDraw → OpenLayers/draw}/mapDrawUtils.d.ts +2 -3
- package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/StoryLayout.d.ts +2 -2
- package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/ToolButton.d.ts +1 -1
- package/src/lib/components/{MapDrawTool → OpenLayers/draw}/storyExamplesMapDrawTool.d.ts +1 -2
- package/src/lib/components/OpenLayers/draw/types.d.ts +21 -1
- package/src/lib/components/{MapDrawTool → OpenLayers/draw}/useMapDrawTool.d.ts +7 -2
- package/src/lib/components/{MapDrawTool → OpenLayers/draw}/utils.d.ts +1 -0
- package/src/lib/components/OpenLayers/draw/utils.spec.d.ts +1 -0
- package/src/lib/components/OpenLayers/index.d.ts +1 -0
- package/src/lib/components/OpenLayers/layers/OpenLayersLayer.d.ts +1 -1
- package/src/lib/components/OpenLayers/utils/setMapCenter.d.ts +1 -1
- package/src/lib/components/index.d.ts +1 -2
- package/src/lib/utils/i18n.d.ts +1 -1
- package/src/lib/components/MapDraw/index.d.ts +0 -3
- package/src/lib/components/MapDrawTool/MapDrawTool.stories.d.ts +0 -9
- package/src/lib/components/MapDrawTool/MapDrawToolMultipleDrawTools.stories.d.ts +0 -6
- package/src/lib/components/MapDrawTool/index.d.ts +0 -7
- package/src/lib/components/MapDrawTool/types.d.ts +0 -16
- /package/src/lib/components/{MapDrawTool/utils.spec.d.ts → MapMeasure/MapMeasure.spec.d.ts} +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/EditModeButton.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/FeatureLayers.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/GeoJSONTextField.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/IntersectionSelect.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/SelectField.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/StoryLayoutGrid.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/geojsonExamples.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/index.d.ts +0 -0
- /package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/storyUtils.d.ts +0 -0
- /package/src/lib/components/{MapDrawTool → OpenLayers/draw}/storyExamplesMapDrawToolIntersection.d.ts +0 -0
- /package/src/lib/components/{MapDrawTool → OpenLayers/draw}/storyExamplesMapDrawToolMultipleDrawTools.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/webmap-react",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.4.0",
|
|
4
4
|
"description": "GeoWeb react wrapper for webmap",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@opengeoweb/webmap": "14.
|
|
12
|
-
"@opengeoweb/theme": "14.
|
|
13
|
-
"@opengeoweb/shared": "14.
|
|
11
|
+
"@opengeoweb/webmap": "14.4.0",
|
|
12
|
+
"@opengeoweb/theme": "14.4.0",
|
|
13
|
+
"@opengeoweb/shared": "14.4.0",
|
|
14
14
|
"lodash": "^4.17.21",
|
|
15
15
|
"ol": "^10.4.0",
|
|
16
16
|
"proj4": "^2.9.2",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MapMeasure';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const FEATURE_DRAW_FILL_COLOR_TRANSPARENT = "#186DFF18";
|
|
2
|
+
export declare const FEATURE_DRAW_FILL_COLOR = "#186DFF";
|
|
3
|
+
export declare const FEATURE_DRAW_STROKE_COLOR = "#186DFF";
|
|
4
|
+
export declare const FEATURE_DRAW_SECONDARY_FILL_COLOR = "#6e1e91";
|
|
5
|
+
export declare const FEATURE_DRAW_SECONDARY_STROKE_COLOR = "#6e1e91";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ColorLike } from 'ol/colorlike';
|
|
2
2
|
import { FeatureLike } from 'ol/Feature';
|
|
3
|
+
import { Polygon } from 'ol/geom';
|
|
3
4
|
import { Circle, Fill, Stroke } from 'ol/style';
|
|
4
5
|
import Style, { StyleFunction, StyleLike } from 'ol/style/Style';
|
|
5
6
|
import { Coordinate } from 'ol/coordinate';
|
|
6
|
-
import { LineCoordType } from 'ol/interaction/Draw';
|
|
7
|
-
import { DrawModeValue } from '
|
|
7
|
+
import { LineCoordType, GeometryFunction } from 'ol/interaction/Draw';
|
|
8
|
+
import { DrawModeValue } from './draw/types';
|
|
8
9
|
export declare enum MapFeatureClass {
|
|
9
10
|
MyLocation = "MyLocation",
|
|
10
11
|
GenericMarker = "GenericMarker",
|
|
@@ -20,10 +21,8 @@ export declare const FEATURE_FILL_SELECTED: Fill;
|
|
|
20
21
|
export declare const FEATURE_STROKE_SELECTED: Stroke;
|
|
21
22
|
export declare const FEATURE_VERTICE_IMAGE: Circle;
|
|
22
23
|
export declare const FEATURE_VERTICE_HANDLE_IMAGE: Circle;
|
|
23
|
-
export declare const ICON_LOCATIONMARKER: Style;
|
|
24
|
-
export declare const ICON_LOCATIONMARKER_SELECTED: Style;
|
|
25
|
-
export declare const ICON_LOCATIONMARKER_MODIFY: Style;
|
|
26
24
|
export declare const FEATURE_VERTICES_EDIT_HANDLES: Style;
|
|
25
|
+
export declare const getFeaturePointStyle: (fillColor?: string, fillOpacity?: number) => Style;
|
|
27
26
|
export declare const textLabelStyle: (text: string) => Style;
|
|
28
27
|
export declare const multiPolygonLabelStyle: (text: string) => Style;
|
|
29
28
|
export declare const multiLineStringLabelStyle: (text: string) => Style;
|
|
@@ -31,5 +30,7 @@ export declare const geowebColorToOpenLayersColor: (color: string, opacity?: str
|
|
|
31
30
|
export declare const inlineFeatureStyle: (feature: FeatureLike) => Style[];
|
|
32
31
|
export declare const genericOpenLayersFeatureStyle: StyleFunction;
|
|
33
32
|
export declare const catmullRomSpline: (points: LineCoordType, numPoints?: number) => Coordinate[];
|
|
33
|
+
export declare const createBoxBasedOnModifiedVertex: (modifiedGeometry: Polygon, originalGeometry: Polygon) => Polygon;
|
|
34
|
+
export declare const createOval: () => GeometryFunction;
|
|
34
35
|
export declare const drawStyles: Record<DrawModeValue, StyleLike>;
|
|
35
36
|
export declare const modifyStyles: Record<DrawModeValue, Style[] | StyleLike>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { OpenLayersMapView } from '.';
|
|
3
|
+
declare const meta: Meta<typeof OpenLayersMapView>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof OpenLayersMapView>;
|
|
6
|
+
export declare const MapViewMeasure: Story;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { StyleLike } from 'ol/style/Style';
|
|
3
|
-
import { DrawModeValue } from '
|
|
4
|
-
import { DrawModeExitCallback } from './types';
|
|
3
|
+
import { DrawModeExitCallback, DrawModeValue } from './types';
|
|
5
4
|
export interface OpenLayersMapDrawProps {
|
|
6
5
|
geojson: GeoJSON.FeatureCollection;
|
|
7
6
|
drawMode?: DrawModeValue;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { useMapDrawTool } from '
|
|
2
|
+
import { useMapDrawTool } from '.';
|
|
3
3
|
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const OlBasicMapDrawToolWithMultipleShapesValues: Story;
|
|
10
|
-
export declare const OlBasicMapDrawToolWithSmoothLines: Story;
|
|
6
|
+
export declare const OlMapDrawTool: Story;
|
|
7
|
+
export declare const OlMapDrawToolCustomShapes: Story;
|
|
8
|
+
export declare const OlMapDrawToolDrawMultipleShapes: Story;
|
|
@@ -3,7 +3,6 @@ export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
|
3
3
|
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
4
4
|
export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
5
5
|
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
6
|
-
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
7
6
|
export declare const lineString: GeoJSON.Feature<GeoJSON.LineString>;
|
|
8
7
|
export declare const lineStringCollection: GeoJSON.FeatureCollection;
|
|
9
8
|
export interface GeoFeatureStyle {
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
export * from './OpenLayersMapDraw';
|
|
2
2
|
export * from './types';
|
|
3
|
+
export { useMapDrawTool, defaultPoint, defaultDelete, defaultPolygon, defaultBox, defaultLocation, defaultIntersectionStyleProperties, defaultSmoothLine, defaultCircle, defaultFreehandLine, defaultLineString, defaultOval, defaultSquare, getIcon, currentlySupportedDrawModes, defaultModes, } from './useMapDrawTool';
|
|
4
|
+
export type { MapDrawToolOptions } from './useMapDrawTool';
|
|
5
|
+
export * from './utils';
|
|
6
|
+
export * from './storyExamplesMapDrawTool';
|
|
7
|
+
export * from './storyExamplesMapDrawToolIntersection';
|
|
8
|
+
export * from './storyExamplesMapDrawToolMultipleDrawTools';
|
|
9
|
+
export * from './geojsonShapes';
|
|
10
|
+
export * from './mapDrawUtils';
|
|
11
|
+
export * from './storyComponents';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import proj4, { InterfaceProjection } from 'proj4';
|
|
2
|
-
export type ProjectorCache = Record<string, InterfaceProjection>;
|
|
3
|
-
export declare const Proj4js: typeof proj4;
|
|
1
|
+
import proj4, { InterfaceProjection, Converter } from 'proj4';
|
|
2
|
+
export type ProjectorCache = Record<string, InterfaceProjection | Converter>;
|
|
4
3
|
export declare const projectorCache: ProjectorCache;
|
|
5
4
|
export declare const getProj4: (projection: string | proj4.InterfaceProjection) => InterfaceProjection;
|
|
6
5
|
export declare const NEW_LINESTRING_CREATED = "new point in LineString created";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DrawModeExitCallback } from '
|
|
3
|
-
import { OpenLayersLayerProps } from '../../
|
|
2
|
+
import { DrawModeExitCallback } from '../..';
|
|
3
|
+
import { OpenLayersLayerProps } from '../../layers';
|
|
4
4
|
interface StoryLayoutProps {
|
|
5
5
|
layers: OpenLayersLayerProps[];
|
|
6
6
|
children: React.ReactElement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SelectionType } from './types';
|
|
3
2
|
import { MapDrawToolOptions } from './useMapDrawTool';
|
|
3
|
+
import { SelectionType } from './types';
|
|
4
4
|
export declare const opacityOptions: string[];
|
|
5
5
|
export declare const fillOptions: any[];
|
|
6
6
|
export declare const strokeWidthOptions: string[];
|
|
@@ -8,4 +8,3 @@ export declare const getToolIcon: (selectionType: SelectionType) => React.ReactE
|
|
|
8
8
|
export declare const basicExampleDrawOptions: MapDrawToolOptions;
|
|
9
9
|
export declare const basicExampleMultipleShapeDrawOptions: MapDrawToolOptions;
|
|
10
10
|
export declare const basicExampleMultipleShapeWithValuesDrawOptions: MapDrawToolOptions;
|
|
11
|
-
export declare const basicExampleSmoothLineOptions: MapDrawToolOptions;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import { Feature, Polygon, MultiPolygon } from 'geojson';
|
|
1
2
|
export declare enum DRAWMODE {
|
|
2
3
|
POLYGON = "POLYGON",
|
|
3
4
|
BOX = "BOX",
|
|
4
5
|
MULTIPOINT = "MULTIPOINT",
|
|
5
6
|
POINT = "POINT",
|
|
6
7
|
LINESTRING = "LINESTRING",
|
|
7
|
-
SMOOTHLINE = "SMOOTHLINE"
|
|
8
|
+
SMOOTHLINE = "SMOOTHLINE",
|
|
9
|
+
CIRCLE = "CIRCLE",
|
|
10
|
+
SQUARE = "SQUARE",
|
|
11
|
+
OVAL = "OVAL",
|
|
12
|
+
LOCATION = "LOCATION",
|
|
13
|
+
FREEHANDLINE = "FREEHANDLINE"
|
|
8
14
|
}
|
|
9
15
|
export interface FeatureEvent {
|
|
10
16
|
coordinateIndexInFeature: number;
|
|
@@ -19,3 +25,17 @@ export interface FeatureEvent {
|
|
|
19
25
|
feature: GeoJSON.Feature;
|
|
20
26
|
}
|
|
21
27
|
export type DrawModeExitCallback = 'escaped' | 'doubleClicked' | 'clickedNearStartingPoint';
|
|
28
|
+
export type DrawModeValue = DRAWMODE | 'DELETE' | '';
|
|
29
|
+
type DefaultSelectionTypes = 'poly' | 'point' | 'box' | 'linestring';
|
|
30
|
+
export type SelectionType = DefaultSelectionTypes | string;
|
|
31
|
+
export interface DrawMode {
|
|
32
|
+
drawModeId: string;
|
|
33
|
+
value: DrawModeValue;
|
|
34
|
+
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
35
|
+
title: string;
|
|
36
|
+
isSelectable: boolean;
|
|
37
|
+
selectionType: SelectionType;
|
|
38
|
+
}
|
|
39
|
+
export type ProjectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
40
|
+
export type UnprojectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
41
|
+
export {};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { DrawMode, DrawModeValue, SelectionType } from './types';
|
|
3
|
-
import { OpenLayersLayerProps } from '../
|
|
3
|
+
import { OpenLayersLayerProps } from '../layers';
|
|
4
4
|
export declare const defaultIntersectionStyleProperties: GeoJSON.GeoJsonProperties;
|
|
5
5
|
export declare const emptyLineString: GeoJSON.Feature;
|
|
6
6
|
export declare const emptyPoint: GeoJSON.Feature;
|
|
7
7
|
export declare const emptyPolygon: GeoJSON.Feature;
|
|
8
|
-
export declare const emptyBox: GeoJSON.Feature;
|
|
9
8
|
export declare const emptyIntersectionShape: GeoJSON.FeatureCollection;
|
|
10
9
|
type DrawLayerType = 'geoJSON' | 'geoJSONIntersection' | 'geoJSONIntersectionBounds';
|
|
11
10
|
export interface MapDrawToolProps {
|
|
@@ -48,6 +47,12 @@ export declare const defaultPolygon: DrawMode;
|
|
|
48
47
|
export declare const defaultBox: DrawMode;
|
|
49
48
|
export declare const defaultLineString: DrawMode;
|
|
50
49
|
export declare const defaultDelete: DrawMode;
|
|
50
|
+
export declare const defaultCircle: DrawMode;
|
|
51
|
+
export declare const defaultSquare: DrawMode;
|
|
52
|
+
export declare const defaultFreehandLine: DrawMode;
|
|
53
|
+
export declare const defaultOval: DrawMode;
|
|
54
|
+
export declare const defaultLocation: DrawMode;
|
|
55
|
+
export declare const defaultSmoothLine: DrawMode;
|
|
51
56
|
export declare const defaultModes: DrawMode[];
|
|
52
57
|
export declare const currentlySupportedDrawModes: DrawMode[];
|
|
53
58
|
export declare const useMapDrawTool: ({ defaultDrawModes, shouldAllowMultipleShapes, defaultGeoJSON, defaultGeoJSONIntersection, defaultGeoJSONIntersectionBounds, defaultGeoJSONIntersectionProperties, geoJSONLayerId, geoJSONIntersectionLayerId, geoJSONIntersectionBoundsLayerId, projection, }: MapDrawToolOptions) => MapDrawToolProps;
|
|
@@ -66,3 +66,4 @@ export declare const rewindGeometry: (geoJSON: FeatureCollection) => FeatureColl
|
|
|
66
66
|
export declare const addGeoJSONProperties: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, newProperties: GeoJsonProperties) => GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
67
67
|
export declare const addSelectionTypeToGeoJSON: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection, selectionType: SelectionType) => GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
68
68
|
export declare const getFeatureExtent: (geoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => Bbox;
|
|
69
|
+
export declare const getDrawModeIdFromSelectionType: (selectionType: string, drawModes: DrawMode[]) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -17,4 +17,4 @@ export interface OpenLayersLayerProps extends LayerFoundation {
|
|
|
17
17
|
onHoverFeature?: (event: FeatureEvent) => void;
|
|
18
18
|
tileServerSettings?: TileServerSettings;
|
|
19
19
|
}
|
|
20
|
-
export declare const OpenLayersLayer: (layerProps: OpenLayersLayerProps) => React.ReactElement;
|
|
20
|
+
export declare const OpenLayersLayer: (layerProps: OpenLayersLayerProps) => React.ReactElement | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Map } from 'ol';
|
|
2
|
-
export declare const setMapCenter: (map: Map, lon: number, lat: number) => void;
|
|
2
|
+
export declare const setMapCenter: (map: Map, lon: number, lat: number, zoomLevel?: number) => void;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * from './Legend';
|
|
2
|
-
export * from './MapDraw';
|
|
3
|
-
export * from './MapDrawTool';
|
|
4
2
|
export * from './MapTime';
|
|
5
3
|
export * from './MapControls';
|
|
6
4
|
export * from './MapWarning';
|
|
7
5
|
export * from './MapDimensionSelect';
|
|
8
6
|
export * from './LayerInfo';
|
|
9
7
|
export * from './OpenLayers';
|
|
8
|
+
export * from './MapMeasure';
|
package/src/lib/utils/i18n.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ import i18n, { Namespace } from 'i18next';
|
|
|
2
2
|
import { UseTranslationResponse } from 'react-i18next';
|
|
3
3
|
export declare const WEBMAP_REACT_NAMESPACE = "webmapreact";
|
|
4
4
|
export declare const initWebmapReactTestI18n: () => void;
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const translateInTestsAndStories: (key: string, params?: Record<string, string | number> | undefined, ns?: string) => string;
|
|
6
6
|
export declare const useWebmapReactTranslation: (ns?: Namespace) => UseTranslationResponse<typeof ns, typeof i18n>;
|
|
7
7
|
export { i18n };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { useMapDrawTool } from './useMapDrawTool';
|
|
3
|
-
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
-
export declare const BasicMapDrawTool: Story;
|
|
7
|
-
export declare const BasicMapDrawToolShape: Story;
|
|
8
|
-
export declare const BasicMapDrawToolWithMultipleShapes: Story;
|
|
9
|
-
export declare const BasicMapDrawToolWithMultipleShapesValues: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
|
-
import { useMapDrawTool } from './useMapDrawTool';
|
|
3
|
-
declare const meta: Meta<typeof useMapDrawTool>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof useMapDrawTool>;
|
|
6
|
-
export declare const MultipleDrawToolsDemo: Story;
|
|
@@ -1,7 +0,0 @@
|
|
|
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,16 +0,0 @@
|
|
|
1
|
-
import { Feature, Polygon, MultiPolygon } from 'geojson';
|
|
2
|
-
import { DRAWMODE } from '../OpenLayers/draw/types';
|
|
3
|
-
export type DrawModeValue = DRAWMODE | 'DELETE' | '';
|
|
4
|
-
type DefaultSelectionTypes = 'poly' | 'point' | 'box' | 'linestring';
|
|
5
|
-
export type SelectionType = DefaultSelectionTypes | string;
|
|
6
|
-
export interface DrawMode {
|
|
7
|
-
drawModeId: string;
|
|
8
|
-
value: DrawModeValue;
|
|
9
|
-
shape: GeoJSON.Feature | GeoJSON.FeatureCollection;
|
|
10
|
-
title: string;
|
|
11
|
-
isSelectable: boolean;
|
|
12
|
-
selectionType: SelectionType;
|
|
13
|
-
}
|
|
14
|
-
export type ProjectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
15
|
-
export type UnprojectFn = (feat: Feature<Polygon | MultiPolygon>) => Feature<Polygon | MultiPolygon>;
|
|
16
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/GeoJSONTextField.d.ts
RENAMED
|
File without changes
|
/package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/IntersectionSelect.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/StoryLayoutGrid.d.ts
RENAMED
|
File without changes
|
/package/src/lib/components/{MapDraw → OpenLayers/draw}/storyComponents/geojsonExamples.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|