@opengeoweb/webmap-react 6.0.4
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/README.md +7 -0
- package/index.esm.d.ts +1 -0
- package/index.esm.js +39886 -0
- package/package.json +13 -0
- package/src/index.d.ts +1 -0
- package/src/lib/components/CanvasComponent/CanvasComponent.d.ts +71 -0
- package/src/lib/components/CanvasComponent/index.d.ts +1 -0
- package/src/lib/components/Legend/Legend.d.ts +7 -0
- package/src/lib/components/Legend/LegendLayout.d.ts +13 -0
- package/src/lib/components/Legend/index.d.ts +2 -0
- package/src/lib/components/MapDraw/MapDraw.d.ts +151 -0
- package/src/lib/components/MapDraw/MapDrawContainer.d.ts +23 -0
- package/src/lib/components/MapDraw/geojsonShapes.d.ts +19 -0
- package/src/lib/components/MapDraw/index.d.ts +5 -0
- package/src/lib/components/MapDraw/mapDrawUtils.d.ts +57 -0
- package/src/lib/components/MapDraw/storyComponents/geojsonExamples.d.ts +11 -0
- package/src/lib/components/index.d.ts +3 -0
- package/src/lib/index.d.ts +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opengeoweb/webmap-react",
|
|
3
|
+
"version": "6.0.4",
|
|
4
|
+
"description": "GeoWeb react wrapper for webmap",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git@gitlab.com:opengeoweb/opengeoweb.git"
|
|
9
|
+
},
|
|
10
|
+
"module": "./index.esm.js",
|
|
11
|
+
"type": "module",
|
|
12
|
+
"main": "./index.esm.js"
|
|
13
|
+
}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
interface CanvasComponentProps {
|
|
3
|
+
onRenderCanvas: (ctx: CanvasRenderingContext2D, width: number, height: number, canvas: HTMLCanvasElement) => void;
|
|
4
|
+
onCanvasClick?: (x: number, y: number, width: number, height: number) => void;
|
|
5
|
+
onMouseMove?: (x: number, y: number, event: MouseEvent, width: number) => void;
|
|
6
|
+
onMouseUp?: (x: number) => void;
|
|
7
|
+
onMouseDown?: (x: number, y: number, width: number) => void;
|
|
8
|
+
onTouchStart?: (event: TouchEvent, width: number) => void;
|
|
9
|
+
onTouchEnd?: () => void;
|
|
10
|
+
onTouchMove?: (event: TouchEvent, width: number) => void;
|
|
11
|
+
onKeyUp?: (event: KeyboardEvent) => void;
|
|
12
|
+
onKeyDown?: (event: KeyboardEvent) => void;
|
|
13
|
+
isFocussed?: (isFocussed: boolean) => void;
|
|
14
|
+
onWheel?: ({ event, deltaY, deltaX, canvasWidth, mouseX, }: {
|
|
15
|
+
event: WheelEvent;
|
|
16
|
+
deltaY: number;
|
|
17
|
+
deltaX: number;
|
|
18
|
+
canvasWidth: number;
|
|
19
|
+
mouseX: number;
|
|
20
|
+
}) => void;
|
|
21
|
+
loop?: boolean;
|
|
22
|
+
redrawInterval?: number;
|
|
23
|
+
resizeCallback?: (newWidth: number) => void;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}
|
|
26
|
+
export declare class CanvasComponent extends Component<CanvasComponentProps> {
|
|
27
|
+
canvas: HTMLCanvasElement | null;
|
|
28
|
+
ctx: CanvasRenderingContext2D | null;
|
|
29
|
+
currentWidth: number;
|
|
30
|
+
currentHeight: number;
|
|
31
|
+
canvascontaineroutside: React.RefObject<HTMLDivElement> | null;
|
|
32
|
+
canvascontainer: React.RefObject<HTMLDivElement> | null;
|
|
33
|
+
timer: ReturnType<typeof setTimeout> | null;
|
|
34
|
+
redrawTimer: ReturnType<typeof setTimeout> | null;
|
|
35
|
+
loopHasStarted: boolean;
|
|
36
|
+
mounted: boolean;
|
|
37
|
+
static defaultProps: {
|
|
38
|
+
onRenderCanvas: () => void;
|
|
39
|
+
onCanvasClick: () => void;
|
|
40
|
+
onMouseMove: () => void;
|
|
41
|
+
onMouseUp: () => void;
|
|
42
|
+
onMouseDown: () => void;
|
|
43
|
+
onTouchStart: () => void;
|
|
44
|
+
onTouchEnd: () => void;
|
|
45
|
+
onTouchMove: () => void;
|
|
46
|
+
onWheel: () => void;
|
|
47
|
+
};
|
|
48
|
+
private _isFocussed;
|
|
49
|
+
constructor(props: CanvasComponentProps);
|
|
50
|
+
componentDidMount(): void;
|
|
51
|
+
shouldComponentUpdate(): boolean;
|
|
52
|
+
componentWillUnmount(): void;
|
|
53
|
+
handleMouseMoveEvent(event: MouseEvent): void;
|
|
54
|
+
handleMouseUpEvent(event: MouseEvent): void;
|
|
55
|
+
handleMouseDownEvent(event: MouseEvent): void;
|
|
56
|
+
handleTouchStartEvent(event: TouchEvent): void;
|
|
57
|
+
handleTouchEndEvent(): void;
|
|
58
|
+
handleTouchMoveEvent(event: TouchEvent): void;
|
|
59
|
+
handleClickEvent(event: MouseEvent): void;
|
|
60
|
+
handleWheelEvent(event: WheelEvent): void;
|
|
61
|
+
onFocus(): void;
|
|
62
|
+
onBlur(): void;
|
|
63
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
64
|
+
_documentKeyDown(event: KeyboardEvent): void;
|
|
65
|
+
_handleWindowResize(): void;
|
|
66
|
+
startLoop(): void;
|
|
67
|
+
updateCanvas(): void;
|
|
68
|
+
resize(): void;
|
|
69
|
+
render(): React.ReactElement;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CanvasComponent';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Dimension } from '@opengeoweb/webmap';
|
|
3
|
+
interface LegendLayoutProps {
|
|
4
|
+
title: string;
|
|
5
|
+
name: string;
|
|
6
|
+
dimensions: Dimension[];
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
height?: number;
|
|
9
|
+
width?: number;
|
|
10
|
+
minWidth?: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const LegendLayout: React.FC<LegendLayoutProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GeoJsonProperties, GeometryObject, Position } from 'geojson';
|
|
3
|
+
import { GeoJsonFeatureType, GeoJsonFeature, GeoFeatureStyle, Coordinate } from './geojsonShapes';
|
|
4
|
+
type DrawStyle = {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
nr: number;
|
|
8
|
+
};
|
|
9
|
+
type InputEvent = {
|
|
10
|
+
leftButton: boolean;
|
|
11
|
+
mouseDown: boolean;
|
|
12
|
+
mouseX: number;
|
|
13
|
+
mouseY: number;
|
|
14
|
+
rightButton: boolean;
|
|
15
|
+
};
|
|
16
|
+
export interface FeatureEvent {
|
|
17
|
+
coordinateIndexInFeature: number;
|
|
18
|
+
featureIndex: number;
|
|
19
|
+
mouseX: number;
|
|
20
|
+
mouseY: number;
|
|
21
|
+
isInEditMode: boolean;
|
|
22
|
+
feature: GeoJsonFeature;
|
|
23
|
+
}
|
|
24
|
+
export interface MapDrawProps {
|
|
25
|
+
mapId: string;
|
|
26
|
+
geojson: GeoJSON.FeatureCollection;
|
|
27
|
+
drawMode: string;
|
|
28
|
+
deletePolygonCallback?: string;
|
|
29
|
+
exitDrawModeCallback: (reason: DrawModeExitCallback) => void;
|
|
30
|
+
isInEditMode: boolean;
|
|
31
|
+
isInDeleteMode: boolean;
|
|
32
|
+
featureNrToEdit: number;
|
|
33
|
+
onHoverFeature?: (event: FeatureEvent) => void;
|
|
34
|
+
onClickFeature?: (event: FeatureEvent) => void;
|
|
35
|
+
updateGeojson: (geoJson: GeometryObject, text: string) => void;
|
|
36
|
+
}
|
|
37
|
+
export declare enum EDITMODE {
|
|
38
|
+
EMPTY = "EMPTY",
|
|
39
|
+
DELETE_FEATURES = "DELETE_FEATURES",
|
|
40
|
+
ADD_FEATURE = "ADD_FEATURE"
|
|
41
|
+
}
|
|
42
|
+
export declare enum DRAWMODE {
|
|
43
|
+
POLYGON = "POLYGON",
|
|
44
|
+
BOX = "BOX",
|
|
45
|
+
MULTIPOINT = "MULTIPOINT",
|
|
46
|
+
POINT = "POINT",
|
|
47
|
+
LINESTRING = "LINESTRING"
|
|
48
|
+
}
|
|
49
|
+
declare enum VERTEX {
|
|
50
|
+
NONE = "NONE",
|
|
51
|
+
MIDDLE_POINT_OF_FEATURE = "MIDDLE_POINT_OF_FEATURE"
|
|
52
|
+
}
|
|
53
|
+
declare enum EDGE {
|
|
54
|
+
NONE = "NONE"
|
|
55
|
+
}
|
|
56
|
+
declare enum SNAPPEDFEATURE {
|
|
57
|
+
NONE = "NONE"
|
|
58
|
+
}
|
|
59
|
+
export type DrawModeExitCallback = 'escaped' | 'doubleClicked';
|
|
60
|
+
export default class MapDraw extends React.PureComponent<MapDrawProps> {
|
|
61
|
+
myEditMode: EDITMODE;
|
|
62
|
+
myDrawMode: DRAWMODE;
|
|
63
|
+
textPositions: {
|
|
64
|
+
x: number;
|
|
65
|
+
y: number;
|
|
66
|
+
text: string;
|
|
67
|
+
}[];
|
|
68
|
+
mouseOverPolygonCoordinates: Coordinate[] | number;
|
|
69
|
+
defaultPolyProps: GeoFeatureStyle;
|
|
70
|
+
defaultLineStringProps: GeoFeatureStyle;
|
|
71
|
+
defaultIconProps: {
|
|
72
|
+
imageWidth: number;
|
|
73
|
+
imageHeight: number;
|
|
74
|
+
};
|
|
75
|
+
somethingWasDragged: string;
|
|
76
|
+
mouseIsOverVertexNr: SNAPPEDFEATURE | VERTEX | number;
|
|
77
|
+
selectedEdge: EDGE;
|
|
78
|
+
geojson: GeoJSON.FeatureCollection;
|
|
79
|
+
listenersInitialized: boolean;
|
|
80
|
+
mouseGeoCoord: Coordinate;
|
|
81
|
+
snappedGeoCoords: Coordinate;
|
|
82
|
+
doubleClickTimer: {
|
|
83
|
+
isRunning?: boolean;
|
|
84
|
+
timer?: number;
|
|
85
|
+
mouseX?: number;
|
|
86
|
+
mouseY?: number;
|
|
87
|
+
};
|
|
88
|
+
mouseStoppedTimer: number;
|
|
89
|
+
snappedPolygonIndex: SNAPPEDFEATURE | number;
|
|
90
|
+
mouseX: number;
|
|
91
|
+
mouseY: number;
|
|
92
|
+
mouseOverPolygonFeatureIndex: number;
|
|
93
|
+
drawMode: string;
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
static defaultProps: {
|
|
96
|
+
isInEditMode: boolean;
|
|
97
|
+
isInDeleteMode: boolean;
|
|
98
|
+
webmapjs: undefined;
|
|
99
|
+
featureNrToEdit: number;
|
|
100
|
+
};
|
|
101
|
+
featureEvent: FeatureEvent;
|
|
102
|
+
constructor(props: MapDrawProps);
|
|
103
|
+
componentDidMount(): void;
|
|
104
|
+
componentDidUpdate(prevProps: MapDrawProps): void;
|
|
105
|
+
componentWillUnmount(): void;
|
|
106
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
107
|
+
handleDrawMode(_drawMode: string): void;
|
|
108
|
+
getPixelCoordFromGeoCoord(featureCoords: Position[]): Coordinate[];
|
|
109
|
+
handleGeoJSONUpdate: (newGeoJSON: GeoJSON.FeatureCollection) => void;
|
|
110
|
+
handleExitDrawMode: (reason?: DrawModeExitCallback) => void;
|
|
111
|
+
hoverVertex(feature: GeoJsonFeature, mouseX: number, mouseY: number): void;
|
|
112
|
+
mouseMove(event: InputEvent): boolean;
|
|
113
|
+
triggerMouseDownTimer(event: InputEvent): void | boolean;
|
|
114
|
+
mouseDoubleClick(): void;
|
|
115
|
+
insertVertexInEdge(event: InputEvent): boolean;
|
|
116
|
+
createNewFeature(event: InputEvent): void;
|
|
117
|
+
addPointToMultiPointFeature(event: InputEvent): boolean;
|
|
118
|
+
addVerticesToPolygonFeature(event: InputEvent): boolean;
|
|
119
|
+
addPointToLineStringFeature(event: InputEvent): boolean;
|
|
120
|
+
mouseDown(event: InputEvent): void | boolean;
|
|
121
|
+
deletePolygon(index: number | SNAPPEDFEATURE): void;
|
|
122
|
+
deleteFeature(): void;
|
|
123
|
+
mouseUp(event: InputEvent): void | boolean;
|
|
124
|
+
cancelEdit(cancelLastPoint: boolean): void;
|
|
125
|
+
moveVertex(feature: GeoJsonFeature, mouseDown: boolean): boolean;
|
|
126
|
+
transposePolygon(featureCoords: Position[]): void;
|
|
127
|
+
transposeVertex(featureCoords: Position[]): void;
|
|
128
|
+
componentCleanup(): void;
|
|
129
|
+
validateFeature(feature: GeoJsonFeature): void;
|
|
130
|
+
validatePolys(fixPolys: boolean): void;
|
|
131
|
+
beforeDraw(ctx: CanvasRenderingContext2D): void;
|
|
132
|
+
distance(a: Coordinate, b: Coordinate): number;
|
|
133
|
+
isBetween(a: Coordinate, c: Coordinate, b: Coordinate): boolean;
|
|
134
|
+
checkDist(coord: Coordinate, polygonIndex: SNAPPEDFEATURE | number, mouseX: number, mouseY: number): boolean;
|
|
135
|
+
hoverEdge(geometry: GeoJsonFeatureType, mouseX: number, mouseY: number): {
|
|
136
|
+
selectedEdge: EDGE | number;
|
|
137
|
+
snappedPolygonIndex: SNAPPEDFEATURE | number;
|
|
138
|
+
};
|
|
139
|
+
drawVertice(ctx: CanvasRenderingContext2D, _coord: Coordinate, selected: boolean, middle: boolean, isInEditMode: boolean): void;
|
|
140
|
+
drawPoint(ctx: CanvasRenderingContext2D, _coord: Coordinate, selected: boolean, middle: boolean, isInEditMode: boolean, feature: GeoJsonFeature, featureIndex: number): void;
|
|
141
|
+
drawIcon(ctx: CanvasRenderingContext2D, _coord: Coordinate, featureProperties: GeoJsonProperties): DrawStyle;
|
|
142
|
+
drawMarker(ctx: CanvasRenderingContext2D, _coord: Coordinate, selected: boolean, middle: boolean, isInEditMode: boolean, featureProperties: GeoFeatureStyle): void | DrawStyle;
|
|
143
|
+
drawLine(ctx: CanvasRenderingContext2D, XYCoords: Coordinate[], featureIndex: number, lineStringIndex: number): void | DrawStyle;
|
|
144
|
+
drawPolygon(ctx: CanvasRenderingContext2D, XYCoords: Coordinate[], featureIndex: number, polygonIndex: number): void | DrawStyle;
|
|
145
|
+
convertGeoCoordsToScreenCoords(featureCoords: Position[]): Coordinate[];
|
|
146
|
+
initializeFeature(feature: GeoJsonFeature, type: string): GeoJSON.Feature;
|
|
147
|
+
checkIfFeatureIsBox(feature: GeoJsonFeature): boolean;
|
|
148
|
+
featureHasChanged(text: string): void;
|
|
149
|
+
render(): React.ReactElement;
|
|
150
|
+
}
|
|
151
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GeometryObject } from 'geojson';
|
|
3
|
+
import { DrawModeExitCallback, FeatureEvent } from './MapDraw';
|
|
4
|
+
export type FeatureLayer = {
|
|
5
|
+
id: string;
|
|
6
|
+
type: string;
|
|
7
|
+
features: [];
|
|
8
|
+
isInEditMode?: boolean;
|
|
9
|
+
isInDeleteMode?: boolean;
|
|
10
|
+
geojson?: GeoJSON.FeatureCollection;
|
|
11
|
+
drawMode?: string;
|
|
12
|
+
onHoverFeature?: (feature: FeatureEvent) => void;
|
|
13
|
+
onClickFeature?: (feature: FeatureEvent) => void;
|
|
14
|
+
updateGeojson?: (feature: GeometryObject) => void;
|
|
15
|
+
exitDrawModeCallback?: (reason: DrawModeExitCallback) => void;
|
|
16
|
+
featureNrToEdit?: string;
|
|
17
|
+
};
|
|
18
|
+
interface MapDrawContainerProps {
|
|
19
|
+
featureLayers: FeatureLayer[];
|
|
20
|
+
mapId: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const MapDrawContainer: React.FC<MapDrawContainerProps>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const emptyGeoJSON: GeoJSON.FeatureCollection;
|
|
2
|
+
export declare const featurePoint: GeoJSON.Feature<GeoJSON.Point>;
|
|
3
|
+
export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
4
|
+
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
5
|
+
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
6
|
+
export declare const lineString: GeoJSON.FeatureCollection;
|
|
7
|
+
export type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPolygon;
|
|
8
|
+
export type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
9
|
+
export type GeoFeatureStyle = {
|
|
10
|
+
stroke?: string;
|
|
11
|
+
fill?: string;
|
|
12
|
+
'stroke-width'?: number;
|
|
13
|
+
'stroke-opacity'?: number;
|
|
14
|
+
'fill-opacity'?: number;
|
|
15
|
+
};
|
|
16
|
+
export type Coordinate = {
|
|
17
|
+
x: number;
|
|
18
|
+
y: number;
|
|
19
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Position } from 'geojson';
|
|
2
|
+
import { Coordinate, GeoJsonFeature } from './geojsonShapes';
|
|
3
|
+
export type CheckHoverFeaturesResult = {
|
|
4
|
+
coordinateIndexInFeature: number;
|
|
5
|
+
featureIndex: number;
|
|
6
|
+
feature: GeoJsonFeature;
|
|
7
|
+
} | null;
|
|
8
|
+
export declare const distance: (a: Coordinate, b: Coordinate) => number;
|
|
9
|
+
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[], ignoreCoordinateIndexInFeature?: boolean) => CheckHoverFeaturesResult;
|
|
10
|
+
export interface MapDrawDrawFunctionArgs {
|
|
11
|
+
context: CanvasRenderingContext2D;
|
|
12
|
+
featureIndex: number;
|
|
13
|
+
coord: Coordinate;
|
|
14
|
+
selected: boolean;
|
|
15
|
+
isInEditMode: boolean;
|
|
16
|
+
feature: GeoJsonFeature;
|
|
17
|
+
mouseX: number;
|
|
18
|
+
mouseY: number;
|
|
19
|
+
isHovered: boolean;
|
|
20
|
+
}
|
|
21
|
+
type DrawFunction = {
|
|
22
|
+
id: string;
|
|
23
|
+
drawMethod: (args: MapDrawDrawFunctionArgs) => void;
|
|
24
|
+
};
|
|
25
|
+
export declare const getDrawFunctionFromStore: (id: string) => DrawFunction['drawMethod'] | undefined;
|
|
26
|
+
export declare const registerDrawFunction: (drawFunction?: DrawFunction['drawMethod']) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Adds properties to the first geojson feature based on the given property object.
|
|
29
|
+
* It only extends or changes the properties which are defined in styleConfig,
|
|
30
|
+
* all other properties in the geojson are left unchanged.
|
|
31
|
+
* @param geojson
|
|
32
|
+
* @param featureProperties
|
|
33
|
+
*/
|
|
34
|
+
export declare const addFeatureProperties: (geojson: GeoJSON.FeatureCollection | undefined, featureProperties: GeoJSON.GeoJsonProperties, featureIndex?: number) => GeoJSON.FeatureCollection;
|
|
35
|
+
/**
|
|
36
|
+
* Returns the intersection of two features. In case of a polygon, only the first feature is used.
|
|
37
|
+
* @param a Feature A
|
|
38
|
+
* @param b Feature B
|
|
39
|
+
* @returns The intersection of the two features.
|
|
40
|
+
*/
|
|
41
|
+
export declare const intersectGeoJSONS: (a: GeoJSON.FeatureCollection, b: GeoJSON.FeatureCollection, geoJSONProperties?: {
|
|
42
|
+
stroke: string;
|
|
43
|
+
'stroke-width': number;
|
|
44
|
+
'stroke-opacity': number;
|
|
45
|
+
fill: string;
|
|
46
|
+
'fill-opacity': number;
|
|
47
|
+
}) => GeoJSON.FeatureCollection;
|
|
48
|
+
/**
|
|
49
|
+
* Adds the intersectionStart and intersectionEnd properties to the GeoJSONS structure
|
|
50
|
+
* @param geoJSONs
|
|
51
|
+
* @returns GeoJSONS extend with intersections
|
|
52
|
+
*/
|
|
53
|
+
export declare const createInterSections: (geojson: GeoJSON.FeatureCollection, otherGeoJSON: GeoJSON.FeatureCollection, geoJSONproperties?: GeoJSON.GeoJsonProperties) => GeoJSON.FeatureCollection;
|
|
54
|
+
export declare const getGeoJson: (geojson: GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean) => GeoJSON.FeatureCollection;
|
|
55
|
+
export declare const getFeatureCollection: (geoJSONFeature: GeoJSON.Feature | GeoJSON.FeatureCollection, shouldAllowMultipleshapes: boolean, geoJSONFeatureCollection?: GeoJSON.FeatureCollection) => GeoJSON.FeatureCollection;
|
|
56
|
+
export declare const isGeoJSONFeatureCreatedByTool: (existingJSON: GeoJSON.FeatureCollection, newGeoJSON: GeoJSON.Feature | GeoJSON.FeatureCollection) => boolean;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const defaultStyleProperties: GeoJSON.GeoJsonProperties;
|
|
2
|
+
export declare const simplePolygonGeoJSON: GeoJSON.FeatureCollection;
|
|
3
|
+
export declare const simplePointsGeojson: GeoJSON.FeatureCollection;
|
|
4
|
+
export declare const simpleSmallLineStringGeoJSON: GeoJSON.FeatureCollection;
|
|
5
|
+
export declare const simpleFlightRoutePointsGeoJSON: GeoJSON.FeatureCollection;
|
|
6
|
+
export declare const simpleLineStringGeoJSON: GeoJSON.FeatureCollection;
|
|
7
|
+
export declare const simpleBoxGeoJSON: GeoJSON.FeatureCollection;
|
|
8
|
+
export declare const simpleFlightRouteLineStringGeoJSON: GeoJSON.FeatureCollection;
|
|
9
|
+
export declare const simpleMultiPolygon: GeoJSON.FeatureCollection;
|
|
10
|
+
export declare const intersectionFeatureNL: GeoJSON.Feature;
|
|
11
|
+
export declare const intersectionFeatureBE: GeoJSON.Feature;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|