@geowiki/map 0.15.0-dev.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/LICENSE +201 -0
- package/README.md +52 -0
- package/dist/index.d.mts +639 -0
- package/dist/index.d.ts +639 -0
- package/dist/index.js +16713 -0
- package/dist/index.mjs +16906 -0
- package/dist/styles.css +1 -0
- package/package.json +109 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { CSSProperties, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
4
|
+
import * as L from 'leaflet';
|
|
5
|
+
import L__default, { LatLngBoundsExpression, WMSOptions, WMSParams, Map, LatLng } from 'leaflet';
|
|
6
|
+
import { TypedArray } from 'geotiff';
|
|
7
|
+
import { LayerProps } from '@react-leaflet/core';
|
|
8
|
+
import { GeoJsonObject } from 'geojson';
|
|
9
|
+
import * as zustand from 'zustand';
|
|
10
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
11
|
+
import { TaskStatus, UtmResult } from '@geowiki/core';
|
|
12
|
+
import { AssetElement } from '@geowiki/evoland-api-proxy';
|
|
13
|
+
import { MapContainerProps } from 'react-leaflet';
|
|
14
|
+
import { MapMenuItemItemDto, MapSettingsItemDto } from '@geowiki/cms-proxy';
|
|
15
|
+
|
|
16
|
+
declare const POSITION_CLASSES: {
|
|
17
|
+
bottomleft: string;
|
|
18
|
+
bottomright: string;
|
|
19
|
+
topleft: string;
|
|
20
|
+
topright: string;
|
|
21
|
+
middleCenter: string;
|
|
22
|
+
middleLeft: string;
|
|
23
|
+
middleRight: string;
|
|
24
|
+
};
|
|
25
|
+
interface GenericControlProps {
|
|
26
|
+
children?: react__default.ReactNode;
|
|
27
|
+
position?: keyof typeof POSITION_CLASSES;
|
|
28
|
+
cssclass?: string;
|
|
29
|
+
cssStyle?: CSSProperties;
|
|
30
|
+
}
|
|
31
|
+
declare const GenericControl: ({ position, children, cssclass, cssStyle, }: GenericControlProps) => react_jsx_runtime.JSX.Element;
|
|
32
|
+
|
|
33
|
+
declare const EvoLandGeometry: () => react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
interface PointSelectionProps {
|
|
36
|
+
userRole: string;
|
|
37
|
+
userId: string;
|
|
38
|
+
}
|
|
39
|
+
declare const PointSelection: (_props: PointSelectionProps) => null;
|
|
40
|
+
|
|
41
|
+
interface ICanvasImageProps {
|
|
42
|
+
}
|
|
43
|
+
declare const CanvasImage: React.FC<ICanvasImageProps>;
|
|
44
|
+
|
|
45
|
+
interface ITiffImageProps {
|
|
46
|
+
bounds: LatLngBoundsExpression;
|
|
47
|
+
rectangleBounds?: LatLngBoundsExpression;
|
|
48
|
+
showPopUp?: boolean;
|
|
49
|
+
PopUpContent?: string | string[];
|
|
50
|
+
isPopUpTags?: boolean;
|
|
51
|
+
}
|
|
52
|
+
declare const TiffImage: React.FC<ITiffImageProps>;
|
|
53
|
+
|
|
54
|
+
type EvoLandRasterType = "raster1" | "raster2" | "annotation";
|
|
55
|
+
declare enum RasterType {
|
|
56
|
+
SegmentationMask = "SEGMENTATION_MASK",
|
|
57
|
+
Composite = "COMPOSITE",
|
|
58
|
+
MetadataDocument = "METADATA_DOCUMENT",
|
|
59
|
+
SubmittedAnnotation = "SUBMITTED_ANNOTATION",
|
|
60
|
+
PreComputedAnnotation = "PRECOMPUTED_ANNOTATION",
|
|
61
|
+
SavedAnnotation = "SAVED_ANNOTATION",
|
|
62
|
+
PREVIEW_RGB = "TIMESERIES_RGB",
|
|
63
|
+
PREVIEW_FCC = "TIMESERIES_FCC",
|
|
64
|
+
TIMESERIES = "TIMESERIES",
|
|
65
|
+
ActiveLearning = "ActiveLearning",
|
|
66
|
+
ChangeSegmentationMask = "CHANGE_SEGMENTATION_MASK"
|
|
67
|
+
}
|
|
68
|
+
declare enum SegmentationType {
|
|
69
|
+
CopySingleSegment = 0,
|
|
70
|
+
CopyAllSegments = 1,
|
|
71
|
+
BrushPixels = 2,
|
|
72
|
+
BrushPixelsToPolygon = 3,
|
|
73
|
+
BrushSegments = 4,
|
|
74
|
+
BrushSegmentsWithPolygon = 5,
|
|
75
|
+
ClearSegmentWithPolygon = 6
|
|
76
|
+
}
|
|
77
|
+
declare enum CDSE_Layer {
|
|
78
|
+
FCC = "COLOR_INFRARED",
|
|
79
|
+
RGB = "TRUE_COLOR"
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
type RasterItem = {
|
|
83
|
+
type: EvoLandRasterType;
|
|
84
|
+
buffer: TypedArray | TypedArray[] | null;
|
|
85
|
+
uri: string | string[] | null;
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
metadata: string | string[] | null;
|
|
89
|
+
};
|
|
90
|
+
type RasterAssetItem = {
|
|
91
|
+
type: string;
|
|
92
|
+
buffer: TypedArray | TypedArray[] | null;
|
|
93
|
+
uri: string | string[] | null;
|
|
94
|
+
width: number;
|
|
95
|
+
height: number;
|
|
96
|
+
name?: string;
|
|
97
|
+
date?: string;
|
|
98
|
+
id: number;
|
|
99
|
+
reference_date?: string;
|
|
100
|
+
metadata?: string | string[] | {
|
|
101
|
+
[key: string]: number[];
|
|
102
|
+
}[] | null;
|
|
103
|
+
isInteractive?: boolean;
|
|
104
|
+
};
|
|
105
|
+
type AnnotationUndoRedo = {
|
|
106
|
+
past: RasterAssetItem[] | undefined;
|
|
107
|
+
future: RasterAssetItem[] | undefined;
|
|
108
|
+
};
|
|
109
|
+
type RasterItemBase64 = {
|
|
110
|
+
type: EvoLandRasterType;
|
|
111
|
+
base64: string | string[];
|
|
112
|
+
arrayType: string;
|
|
113
|
+
uri: string | string[] | null;
|
|
114
|
+
width: number;
|
|
115
|
+
height: number;
|
|
116
|
+
metadata: string | string[] | null;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
interface IReadOnlyTiffImageProps {
|
|
120
|
+
bounds: LatLngBoundsExpression;
|
|
121
|
+
raster: RasterAssetItem | null;
|
|
122
|
+
opacity: number | null;
|
|
123
|
+
isAnnualAnnotation?: boolean;
|
|
124
|
+
selectedBand?: number;
|
|
125
|
+
polygonBounds?: L.LatLngExpression[] | null;
|
|
126
|
+
}
|
|
127
|
+
declare const ReadOnlyTiffImage: React.FC<IReadOnlyTiffImageProps>;
|
|
128
|
+
|
|
129
|
+
interface ITiffWithD3Props {
|
|
130
|
+
bounds: any;
|
|
131
|
+
rectangleBounds?: any;
|
|
132
|
+
polygon_bounds?: any;
|
|
133
|
+
}
|
|
134
|
+
declare const TiffImageContainer: ({ bounds, rectangleBounds, polygon_bounds, }: ITiffWithD3Props) => react_jsx_runtime.JSX.Element;
|
|
135
|
+
|
|
136
|
+
interface ContainerProps {
|
|
137
|
+
sessionStatus: string;
|
|
138
|
+
}
|
|
139
|
+
declare const EvolandContainer: ({ sessionStatus }: ContainerProps) => react_jsx_runtime.JSX.Element | null;
|
|
140
|
+
|
|
141
|
+
declare const SelectedPoint: () => react_jsx_runtime.JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const LayerStoreList: () => react_jsx_runtime.JSX.Element;
|
|
144
|
+
|
|
145
|
+
declare const MapEvents: () => null;
|
|
146
|
+
|
|
147
|
+
interface LabelButtonProps {
|
|
148
|
+
}
|
|
149
|
+
declare const LabelButton: ({}: LabelButtonProps) => react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
interface LabelButtonViewProps {
|
|
152
|
+
}
|
|
153
|
+
declare const LabelButtonView: ({}: LabelButtonViewProps) => react_jsx_runtime.JSX.Element | null;
|
|
154
|
+
|
|
155
|
+
interface IMapSidebarProps {
|
|
156
|
+
}
|
|
157
|
+
declare const MapSidebar: ({}: IMapSidebarProps) => react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
interface AnnotationProps {
|
|
160
|
+
userRole: string;
|
|
161
|
+
}
|
|
162
|
+
declare const Annotation: (props: AnnotationProps) => react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
interface EvolandLeftSideProps {
|
|
165
|
+
userRole: string;
|
|
166
|
+
}
|
|
167
|
+
declare const EvolandLeftSideBar: (props: EvolandLeftSideProps) => react_jsx_runtime.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface QuestionProps {
|
|
170
|
+
userRole: string;
|
|
171
|
+
}
|
|
172
|
+
declare const Questions: (props: QuestionProps) => react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
interface BetterWMSParams extends WMSParams {
|
|
175
|
+
CQL_FILTER?: string;
|
|
176
|
+
SLD_BODY?: string;
|
|
177
|
+
}
|
|
178
|
+
interface BetterWMSOptions extends WMSOptions, LayerProps {
|
|
179
|
+
params?: BetterWMSParams;
|
|
180
|
+
url: string;
|
|
181
|
+
onInfoReceived?: (data: GeoJsonObject) => void;
|
|
182
|
+
onError?: (error: Error) => void;
|
|
183
|
+
showPopup?: boolean;
|
|
184
|
+
retryAttempts?: number;
|
|
185
|
+
retryDelay?: number;
|
|
186
|
+
loadingContent?: string;
|
|
187
|
+
popupOptions?: L__default.PopupOptions;
|
|
188
|
+
infoFormat?: "application/json" | "text/plain" | string;
|
|
189
|
+
allowedProperties?: string[];
|
|
190
|
+
showLoading?: boolean;
|
|
191
|
+
}
|
|
192
|
+
declare class BetterWMS extends L__default.TileLayer.WMS {
|
|
193
|
+
private geoJsonLayer;
|
|
194
|
+
private showPopup;
|
|
195
|
+
private onInfoReceived?;
|
|
196
|
+
private onError?;
|
|
197
|
+
private retryAttempts;
|
|
198
|
+
private retryDelay;
|
|
199
|
+
private loadingContent;
|
|
200
|
+
private popupOptions;
|
|
201
|
+
private infoFormat;
|
|
202
|
+
private loading;
|
|
203
|
+
private currentPopup?;
|
|
204
|
+
private baseUrl;
|
|
205
|
+
private allowedProperties?;
|
|
206
|
+
private canShowLoading;
|
|
207
|
+
private currentMap?;
|
|
208
|
+
private clickHandler;
|
|
209
|
+
private abortController?;
|
|
210
|
+
constructor(baseUrl: string, options: BetterWMSOptions);
|
|
211
|
+
onAdd(map: L__default.Map): this;
|
|
212
|
+
onRemove(map: L__default.Map): this;
|
|
213
|
+
/**
|
|
214
|
+
* Handle map click events and filter for relevant clicks
|
|
215
|
+
*/
|
|
216
|
+
private handleMapClick;
|
|
217
|
+
/**
|
|
218
|
+
* Builds the URL for the GetFeatureInfo WMS request
|
|
219
|
+
*/
|
|
220
|
+
private getFeatureInfoUrl;
|
|
221
|
+
/**
|
|
222
|
+
* Fetch feature info with automatic retries
|
|
223
|
+
*/
|
|
224
|
+
private fetchWithRetry;
|
|
225
|
+
/**
|
|
226
|
+
* Show feature info in a popup
|
|
227
|
+
*/
|
|
228
|
+
private showGetFeatureInfo;
|
|
229
|
+
/**
|
|
230
|
+
* Show loading popup
|
|
231
|
+
*/
|
|
232
|
+
private showLoading;
|
|
233
|
+
/**
|
|
234
|
+
* Request feature info for a location
|
|
235
|
+
*/
|
|
236
|
+
private getFeatureInfo;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
interface CustomWMSTileLayerProps extends WMSOptions, LayerProps {
|
|
240
|
+
params?: WMSParams;
|
|
241
|
+
url: string;
|
|
242
|
+
onInfoReceived?: (data: GeoJsonObject) => void;
|
|
243
|
+
allowedProperties?: string[];
|
|
244
|
+
showPopup?: boolean;
|
|
245
|
+
}
|
|
246
|
+
declare const CustomWMSTileLayer: ForwardRefExoticComponent<CustomWMSTileLayerProps & RefAttributes<BetterWMS>>;
|
|
247
|
+
|
|
248
|
+
interface MapLayerInfo {
|
|
249
|
+
citation?: string;
|
|
250
|
+
dateOfContent?: string;
|
|
251
|
+
description?: string;
|
|
252
|
+
function?: string;
|
|
253
|
+
geographicCoverage?: string;
|
|
254
|
+
isVisible?: boolean;
|
|
255
|
+
license?: string;
|
|
256
|
+
source?: string;
|
|
257
|
+
name?: string;
|
|
258
|
+
resolution?: string;
|
|
259
|
+
overview?: string;
|
|
260
|
+
hoverCardText?: string;
|
|
261
|
+
sourceLink?: {
|
|
262
|
+
name?: string;
|
|
263
|
+
href?: string;
|
|
264
|
+
};
|
|
265
|
+
citationLink?: {
|
|
266
|
+
name?: string;
|
|
267
|
+
href?: string;
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
interface CustomLegendItem {
|
|
272
|
+
label: string;
|
|
273
|
+
color: string;
|
|
274
|
+
symbol?: "circle" | "square" | "line" | "polygon" | "hexagon" | "icon";
|
|
275
|
+
iconPath?: string;
|
|
276
|
+
size?: number;
|
|
277
|
+
}
|
|
278
|
+
interface CustomLegendConfig {
|
|
279
|
+
title?: string;
|
|
280
|
+
items: CustomLegendItem[];
|
|
281
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
282
|
+
showTitle?: boolean;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
interface MapLayerWithInfo {
|
|
286
|
+
id: string;
|
|
287
|
+
title?: string;
|
|
288
|
+
url: string;
|
|
289
|
+
type: "WMS" | "GeoJson" | "GeoTrees" | "GoogleSheets" | "Marker" | "MarkerCluster";
|
|
290
|
+
layerName: string;
|
|
291
|
+
layerInfo?: MapLayerInfo;
|
|
292
|
+
opacity: number;
|
|
293
|
+
color: string;
|
|
294
|
+
properties?: string;
|
|
295
|
+
showPopup?: boolean;
|
|
296
|
+
index: number;
|
|
297
|
+
order?: number;
|
|
298
|
+
legendConfig?: CustomLegendConfig;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
declare const GeoJsonLayer: React.FC<{
|
|
302
|
+
layer: MapLayerWithInfo;
|
|
303
|
+
}>;
|
|
304
|
+
|
|
305
|
+
declare const TimeSeries: () => react_jsx_runtime.JSX.Element;
|
|
306
|
+
|
|
307
|
+
interface ViewAssetsProps {
|
|
308
|
+
projectId: number;
|
|
309
|
+
locationId: string;
|
|
310
|
+
taskId: number | null;
|
|
311
|
+
userRole: string;
|
|
312
|
+
position: "left" | "top";
|
|
313
|
+
defaultAssetView: RasterType;
|
|
314
|
+
}
|
|
315
|
+
declare const ViewAssets: (props: ViewAssetsProps) => react_jsx_runtime.JSX.Element;
|
|
316
|
+
|
|
317
|
+
declare const OverlayLayer: () => react_jsx_runtime.JSX.Element;
|
|
318
|
+
|
|
319
|
+
type State$2 = {
|
|
320
|
+
mapRef: Map | null;
|
|
321
|
+
setMapRef: (mapRef: Map) => void;
|
|
322
|
+
invalidateSize: () => void;
|
|
323
|
+
onMapMove: (center: LatLng) => void;
|
|
324
|
+
onMapZoom: (zoom: number) => void;
|
|
325
|
+
center: LatLng;
|
|
326
|
+
zoom: number;
|
|
327
|
+
clickPoint: LatLng;
|
|
328
|
+
isLoading: boolean;
|
|
329
|
+
setIsLoading: (isLoading: boolean) => void;
|
|
330
|
+
isBottomPanelOpen: boolean;
|
|
331
|
+
setIsBottomPanelOpen: (isBottomPanelOpen: boolean) => void;
|
|
332
|
+
showLeftPanel: boolean;
|
|
333
|
+
setShowLeftPanel: (showLeftPanel: boolean) => void;
|
|
334
|
+
showRightPanel: boolean;
|
|
335
|
+
setShowRightPanel: (showRightPanel: boolean) => void;
|
|
336
|
+
};
|
|
337
|
+
declare const useMapStore: zustand.UseBoundStore<zustand.StoreApi<State$2>>;
|
|
338
|
+
|
|
339
|
+
type State$1 = {
|
|
340
|
+
layers: MapLayerWithInfo[];
|
|
341
|
+
add: (layer: MapLayerWithInfo) => void;
|
|
342
|
+
remove: (layer: MapLayerWithInfo) => void;
|
|
343
|
+
updateOpacity: (id: string, opacity: number) => void;
|
|
344
|
+
updateLayer: (id: string, updates: Partial<MapLayerWithInfo>) => void;
|
|
345
|
+
reorderLayers: (oldIndex: number, newIndex: number) => void;
|
|
346
|
+
refresh: () => void;
|
|
347
|
+
selectedLayer: string;
|
|
348
|
+
setSelectedLayer: (selectedLayer: string) => void;
|
|
349
|
+
layerOpacity: number;
|
|
350
|
+
setLayerOpacity: (layerOpacity: number) => void;
|
|
351
|
+
};
|
|
352
|
+
declare const useMapLayerStore: zustand.UseBoundStore<zustand.StoreApi<State$1>>;
|
|
353
|
+
|
|
354
|
+
type Asset = {
|
|
355
|
+
id: number;
|
|
356
|
+
name: string;
|
|
357
|
+
href: string;
|
|
358
|
+
type: string;
|
|
359
|
+
creation_date: string;
|
|
360
|
+
reference_date?: string;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
type LocationWithAssets = {
|
|
364
|
+
result: Record<string, any>;
|
|
365
|
+
locationId?: string;
|
|
366
|
+
assets?: Asset[];
|
|
367
|
+
reference_date?: string;
|
|
368
|
+
exists: boolean;
|
|
369
|
+
status: TaskStatus | null;
|
|
370
|
+
task: TaskOut[] | null;
|
|
371
|
+
};
|
|
372
|
+
type TaskOut = {
|
|
373
|
+
task_id: number;
|
|
374
|
+
user_id: string;
|
|
375
|
+
user_alias: string;
|
|
376
|
+
location_id: string;
|
|
377
|
+
location_group: string;
|
|
378
|
+
reference_date: string;
|
|
379
|
+
project_id: number;
|
|
380
|
+
last_update_time: string;
|
|
381
|
+
status: string;
|
|
382
|
+
skip_reason?: string | null;
|
|
383
|
+
annotation_asset?: number | null;
|
|
384
|
+
saved_annotation?: number | null;
|
|
385
|
+
transition_states?: Array<string[]>;
|
|
386
|
+
meta_data?: Record<string, any> | null;
|
|
387
|
+
geometry_id?: number | null;
|
|
388
|
+
change_id?: number | null;
|
|
389
|
+
};
|
|
390
|
+
type TaskEventOut = {
|
|
391
|
+
task_id: number;
|
|
392
|
+
actor_id: string;
|
|
393
|
+
actor_alias: string;
|
|
394
|
+
event_type: string;
|
|
395
|
+
event_time: string;
|
|
396
|
+
content: string;
|
|
397
|
+
};
|
|
398
|
+
type LocationTask = {
|
|
399
|
+
exists: boolean;
|
|
400
|
+
task_id: number | null;
|
|
401
|
+
task_status: string | null;
|
|
402
|
+
annotation: Asset | null;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
declare enum ProjectType {
|
|
406
|
+
ANNUALLY = "ANNUALLY",
|
|
407
|
+
MONTHLY = "MONTHLY",
|
|
408
|
+
QUARTERLY = "QUARTERLY"
|
|
409
|
+
}
|
|
410
|
+
type ProjectInfo = {
|
|
411
|
+
project_id: number;
|
|
412
|
+
project_name: string;
|
|
413
|
+
project_reference_date: number;
|
|
414
|
+
project_type: ProjectType;
|
|
415
|
+
mixed_labels_level: number;
|
|
416
|
+
minimum_annotation: number;
|
|
417
|
+
maximum_annotation: number;
|
|
418
|
+
start_date: string;
|
|
419
|
+
end_date: string;
|
|
420
|
+
creation_date: string;
|
|
421
|
+
project_owner: string;
|
|
422
|
+
current_active_group: number;
|
|
423
|
+
is_deleted: boolean;
|
|
424
|
+
n_locations: number;
|
|
425
|
+
meta_data: any;
|
|
426
|
+
tags: string[];
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
type LabelItem = {
|
|
430
|
+
data: number;
|
|
431
|
+
label: string;
|
|
432
|
+
value: string;
|
|
433
|
+
color: number[];
|
|
434
|
+
};
|
|
435
|
+
type CombinationLabelItem = {
|
|
436
|
+
labelId: number;
|
|
437
|
+
labelName: string;
|
|
438
|
+
labelColor: number[];
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
type State = {
|
|
442
|
+
clickPoint: LatLng | null;
|
|
443
|
+
location: LocationWithAssets | null;
|
|
444
|
+
locationMetadata: string[] | null;
|
|
445
|
+
recenterLocation: boolean;
|
|
446
|
+
locationExists: boolean;
|
|
447
|
+
referenceDate: string | null;
|
|
448
|
+
selectedReferenceDate: string | null;
|
|
449
|
+
reference_dates: string[] | null;
|
|
450
|
+
annotation_dates: string[] | null;
|
|
451
|
+
isLoading: boolean;
|
|
452
|
+
timerReset: boolean;
|
|
453
|
+
selectedToolType: SegmentationType;
|
|
454
|
+
opacity: number | null;
|
|
455
|
+
maskAsset: RasterAssetItem[] | null;
|
|
456
|
+
changeMaskAsset: RasterAssetItem[] | null;
|
|
457
|
+
compositeAsset: RasterAssetItem[] | null;
|
|
458
|
+
preComputedAnnotation: RasterAssetItem[] | null;
|
|
459
|
+
submittedAnnotations: RasterAssetItem[] | null;
|
|
460
|
+
savedAnnotations: RasterAssetItem | null;
|
|
461
|
+
activeLearningAnnotations: RasterAssetItem | null;
|
|
462
|
+
annotatedRasterAsset: RasterAssetItem | null;
|
|
463
|
+
timeSeriesTypes: string[] | null;
|
|
464
|
+
timeSeriesAssets: AssetElement[] | null;
|
|
465
|
+
annotationUndoRedo: AnnotationUndoRedo | null;
|
|
466
|
+
annotationTime: number | null;
|
|
467
|
+
selectedRasterAsset: RasterAssetItem | null;
|
|
468
|
+
selectedCompositeRasterAsset: RasterAssetItem | null;
|
|
469
|
+
compositeOpacity: number | null;
|
|
470
|
+
annotationOpacity: number | null;
|
|
471
|
+
rasterAssetItems: RasterAssetItem[];
|
|
472
|
+
labelList: LabelItem[];
|
|
473
|
+
selectedDataPoint: number;
|
|
474
|
+
showMask: boolean;
|
|
475
|
+
showComposite: boolean;
|
|
476
|
+
showAnnotation: boolean;
|
|
477
|
+
showTimeSeries: boolean;
|
|
478
|
+
selectedColorLabel: CombinationLabelItem | null;
|
|
479
|
+
legends: CombinationLabelItem[];
|
|
480
|
+
labels: CombinationLabelItem[] | null;
|
|
481
|
+
brushThickness: number;
|
|
482
|
+
projectDetail: ProjectInfo | null;
|
|
483
|
+
currentTask: TaskOut | null;
|
|
484
|
+
taskEvents: TaskEventOut[];
|
|
485
|
+
ndviImageCanvasContext: CanvasRenderingContext2D | null;
|
|
486
|
+
ndviRGBValues: {
|
|
487
|
+
n90: string;
|
|
488
|
+
n50: string;
|
|
489
|
+
n10: string;
|
|
490
|
+
} | null;
|
|
491
|
+
currentPosition: LatLng | null;
|
|
492
|
+
sessionTimeOut: boolean | null;
|
|
493
|
+
latestTaskAnnotation: LocationTask | null;
|
|
494
|
+
updateAssets: boolean;
|
|
495
|
+
comment: string | null;
|
|
496
|
+
isAnnualAnnotation: boolean;
|
|
497
|
+
selectedBand: number | undefined;
|
|
498
|
+
taskGeometry: any;
|
|
499
|
+
task_for_review: boolean;
|
|
500
|
+
};
|
|
501
|
+
type Actions = {
|
|
502
|
+
setAnnotationUndoRedo: (annotationUndoRedo: AnnotationUndoRedo, annotatedRasterAsset: RasterAssetItem) => void;
|
|
503
|
+
setSelectedRasterAsset: (selectedRaster: RasterAssetItem) => void;
|
|
504
|
+
setSelectedCompositeRasterAsset: (selectedCompositeRasterAsset: RasterAssetItem | null) => void;
|
|
505
|
+
setLoading: (isLoading: boolean) => void;
|
|
506
|
+
setSelectedSegmentationType: (toolType: SegmentationType) => void;
|
|
507
|
+
setRecenterLocation: () => void;
|
|
508
|
+
setTimerReset: (timerReset: boolean) => void;
|
|
509
|
+
setAnnotationTime: (annotationTime: number) => void;
|
|
510
|
+
setRasterAssetItems: (rasterAssetItems: RasterAssetItem[]) => void;
|
|
511
|
+
onLocationSelected: (point: LatLng) => Promise<void>;
|
|
512
|
+
onRecenterLocation: () => void;
|
|
513
|
+
getLocationDetails: (locationId: string, projectId: number, user: string, taskId?: number, isAdmin?: boolean) => Promise<void>;
|
|
514
|
+
getLocationAssets: (locationId: string, projectId: number, type: RasterType, taskId: number | null) => Promise<RasterAssetItem[]>;
|
|
515
|
+
getNextLocationDetails: (projectId: number) => Promise<boolean | undefined>;
|
|
516
|
+
setBands: (bands: {
|
|
517
|
+
value: string;
|
|
518
|
+
label: string;
|
|
519
|
+
}[]) => void;
|
|
520
|
+
setNoOfClusters: (noOfClusters: number) => void;
|
|
521
|
+
setOpacity: (opacity: number | null) => void;
|
|
522
|
+
setCompositeOpacity: (opacity: number | null) => void;
|
|
523
|
+
setAnnotationOpacity: (opacity: number | null) => void;
|
|
524
|
+
addLabel: (location: LatLng, bounds: LatLngBoundsExpression, label: CombinationLabelItem) => Promise<any>;
|
|
525
|
+
setSelectedDataPoint: (selectedDataPoint: number) => void;
|
|
526
|
+
setShowMask: (value: boolean) => void;
|
|
527
|
+
setShowComposite: (value: boolean) => void;
|
|
528
|
+
setShowAnnotation: (value: boolean) => void;
|
|
529
|
+
setShowTimeSeries: (value: boolean) => void;
|
|
530
|
+
reset: () => void;
|
|
531
|
+
setSelectedColorLabel: (label: CombinationLabelItem) => void;
|
|
532
|
+
getLegendsDetails: (array: any) => void;
|
|
533
|
+
getLocationMetaData: (locationId: string, projectId: number, taskId: number) => void;
|
|
534
|
+
getLabels: (projectId: number) => Promise<CombinationLabelItem[] | undefined>;
|
|
535
|
+
getProjectDetail: (projectId: number) => void;
|
|
536
|
+
setBrushThickness: (value: number) => void;
|
|
537
|
+
getTaskEvents: (taskId: number) => void;
|
|
538
|
+
getTaskAnnotation: (annotation: AssetElement[], assetType: RasterType) => Promise<RasterAssetItem[]>;
|
|
539
|
+
setNDVIRGBValues: (vals: {
|
|
540
|
+
n90: string;
|
|
541
|
+
n50: string;
|
|
542
|
+
n10: string;
|
|
543
|
+
} | null) => void;
|
|
544
|
+
setCurrentPosition: (position: LatLng) => void;
|
|
545
|
+
setSessionTimeOut: (hasTimeOut: boolean) => void;
|
|
546
|
+
setLatestTaskAnnotation: (locationTask: LocationTask) => void;
|
|
547
|
+
getTaskReferenceDates: (projectId: number, locatioId: string, asset_type: string, setSelected: boolean) => void;
|
|
548
|
+
setSelectedReferenceDate: (currentReferenceDate: string) => void;
|
|
549
|
+
setUpdateAsset: (updateAssets: boolean) => void;
|
|
550
|
+
setComment: (comment: string) => void;
|
|
551
|
+
setAnnualAnnotation: (val: boolean) => void;
|
|
552
|
+
setSelectedBand: (index: number) => void;
|
|
553
|
+
setAnnotationDates: (annotationDates: string[]) => void;
|
|
554
|
+
setSavedAnnotations: (savedAnnotation: RasterAssetItem) => void;
|
|
555
|
+
setLabelList: (labels: LabelItem[]) => void;
|
|
556
|
+
setLocation: (loc: LocationWithAssets) => void;
|
|
557
|
+
setCurrentTask: (task: TaskOut) => void;
|
|
558
|
+
setTimeSeriesTypes: (types: string[]) => void;
|
|
559
|
+
setTimeSeriesAssets: (assets: AssetElement[]) => void;
|
|
560
|
+
setActiveLearningAnnotations: (active_learning: RasterAssetItem) => void;
|
|
561
|
+
setSubmittedAnnotations: (submit_annotation: RasterAssetItem[]) => void;
|
|
562
|
+
setAnnotatedRasterAsset: (annotated_raster: RasterAssetItem) => void;
|
|
563
|
+
setTaskGeometry: (taskGeometry: any) => void;
|
|
564
|
+
setTaskForReview: (taskForReview: boolean) => void;
|
|
565
|
+
};
|
|
566
|
+
declare const useEvolandStore: UseBoundStore<StoreApi<State & Actions>>;
|
|
567
|
+
|
|
568
|
+
type LocationWithGeometry = {
|
|
569
|
+
location: LatLng;
|
|
570
|
+
bounds: LatLngBoundsExpression;
|
|
571
|
+
result: UtmResult;
|
|
572
|
+
locationId: string;
|
|
573
|
+
noOfClusters: number;
|
|
574
|
+
bands: {
|
|
575
|
+
value: string;
|
|
576
|
+
label: string;
|
|
577
|
+
}[];
|
|
578
|
+
imageArrayBuffer: ArrayBuffer | null;
|
|
579
|
+
imageArrayMatrix: TypedArray | null;
|
|
580
|
+
imageUri: string;
|
|
581
|
+
opacity: number | null;
|
|
582
|
+
selectedValue: number | null;
|
|
583
|
+
previewImageArrayBuffer: ArrayBuffer | null;
|
|
584
|
+
previewImageArrayMatrix: TypedArray | null;
|
|
585
|
+
previewImageUri: string;
|
|
586
|
+
};
|
|
587
|
+
|
|
588
|
+
declare const BasicMap: () => react_jsx_runtime.JSX.Element;
|
|
589
|
+
|
|
590
|
+
interface BasfMapProps extends Partial<MapContainerProps> {
|
|
591
|
+
className?: string;
|
|
592
|
+
}
|
|
593
|
+
declare const BasfMap: react.NamedExoticComponent<BasfMapProps>;
|
|
594
|
+
|
|
595
|
+
declare const GeoTreesMap: () => react_jsx_runtime.JSX.Element;
|
|
596
|
+
|
|
597
|
+
declare const CanopyMap: () => react_jsx_runtime.JSX.Element;
|
|
598
|
+
|
|
599
|
+
interface Props {
|
|
600
|
+
mapMenuItems: MapMenuItemItemDto[];
|
|
601
|
+
mapSettings: MapSettingsItemDto;
|
|
602
|
+
session: any;
|
|
603
|
+
}
|
|
604
|
+
declare const GeoWikiMap: react__default.MemoExoticComponent<({ mapSettings, session }: Props) => react_jsx_runtime.JSX.Element>;
|
|
605
|
+
|
|
606
|
+
type BaseLayerType = "Esri World imagery" | "OpenStreetMap" | "Google Hybrid" | "Google Satellite";
|
|
607
|
+
|
|
608
|
+
declare const WaybackTimelineMap: (props: {
|
|
609
|
+
selectedLayer?: BaseLayerType;
|
|
610
|
+
mapping: any;
|
|
611
|
+
selectedIndex: number;
|
|
612
|
+
zoom: any;
|
|
613
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
614
|
+
|
|
615
|
+
interface BingLayerOptions extends L.TileLayerOptions {
|
|
616
|
+
culture?: string | undefined;
|
|
617
|
+
style?: string;
|
|
618
|
+
type?: string;
|
|
619
|
+
apiKey?: string;
|
|
620
|
+
}
|
|
621
|
+
declare class BingLayer extends L.TileLayer {
|
|
622
|
+
private _bing_key;
|
|
623
|
+
private _url;
|
|
624
|
+
private _providers;
|
|
625
|
+
metaRequested: boolean;
|
|
626
|
+
constructor(bing_key: string, options: BingLayerOptions);
|
|
627
|
+
private tile2quad;
|
|
628
|
+
getTileUrl(tilePoint: L.Point): string;
|
|
629
|
+
loadMetadata(): void;
|
|
630
|
+
initMetadata(meta: any): void;
|
|
631
|
+
protected _update(): void;
|
|
632
|
+
private _update_attribution;
|
|
633
|
+
onAdd(map: L.Map): this;
|
|
634
|
+
onRemove(map: L.Map): this;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare const BingLeafletLayer: ForwardRefExoticComponent<BingLayerOptions & RefAttributes<BingLayer>>;
|
|
638
|
+
|
|
639
|
+
export { Annotation, type AnnotationUndoRedo, type Asset, BasfMap, BasicMap, BingLeafletLayer, CDSE_Layer, CanopyMap, CanvasImage, CustomWMSTileLayer, type CustomWMSTileLayerProps, EvoLandGeometry, type EvoLandRasterType, EvolandContainer, EvolandLeftSideBar, GenericControl, GeoJsonLayer, GeoTreesMap, GeoWikiMap, type ICanvasImageProps, type IMapSidebarProps, type IReadOnlyTiffImageProps, type ITiffImageProps, type ITiffWithD3Props, LabelButton, type LabelButtonProps, LabelButtonView, type LabelButtonViewProps, LayerStoreList, type LocationWithGeometry, MapEvents, MapSidebar, OverlayLayer, PointSelection, Questions, type RasterAssetItem, type RasterItem, type RasterItemBase64, RasterType, ReadOnlyTiffImage, SegmentationType, SelectedPoint, TiffImage, TiffImageContainer, TimeSeries, ViewAssets, WaybackTimelineMap, useEvolandStore, useMapLayerStore, useMapStore };
|