@earthview/core 0.1.1 → 0.2.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/README.md +298 -0
- package/dist/index.d.ts +399 -110
- package/dist/index.js +925 -136
- package/dist/index.mjs +33679 -27165
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,7 @@ import { default as default_2 } from 'ol/layer/Vector';
|
|
|
2
2
|
import { default as default_3 } from 'ol/source/Vector';
|
|
3
3
|
import { default as default_4 } from 'ol/layer/Heatmap';
|
|
4
4
|
import { default as default_5 } from 'ol/source/Cluster';
|
|
5
|
-
import {
|
|
6
|
-
import { default as default_7 } from 'ol/source/XYZ';
|
|
5
|
+
import { Feature } from 'ol';
|
|
7
6
|
|
|
8
7
|
export declare interface AreaMeasurementData {
|
|
9
8
|
id: string;
|
|
@@ -68,6 +67,7 @@ export declare class BarChartLayer extends BaseLayer {
|
|
|
68
67
|
private getHeight;
|
|
69
68
|
private getColor;
|
|
70
69
|
setData(data: BarChartData[]): void;
|
|
70
|
+
getData(): BarChartData[];
|
|
71
71
|
updateData(data: BarChartData[]): void;
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -114,7 +114,8 @@ export declare enum BasemapTypeEnum {
|
|
|
114
114
|
AMAP_STREETS = "amap-streets",
|
|
115
115
|
AMAP_SATELLITE = "amap-satellite",
|
|
116
116
|
GOOGLE_STREETS = "google-streets",
|
|
117
|
-
GOOGLE_SATELLITE = "google-satellite"
|
|
117
|
+
GOOGLE_SATELLITE = "google-satellite",
|
|
118
|
+
CUSTOMIZE = "customize"
|
|
118
119
|
}
|
|
119
120
|
|
|
120
121
|
export declare function bd09ToWgs84(lng: number, lat: number): [number, number];
|
|
@@ -136,6 +137,7 @@ export declare interface CircleDrawData {
|
|
|
136
137
|
fillColor?: number[];
|
|
137
138
|
outlineColor?: number[];
|
|
138
139
|
outlineWidth?: number;
|
|
140
|
+
outlineStyle?: "solid" | "dashed";
|
|
139
141
|
}
|
|
140
142
|
|
|
141
143
|
export declare class CircleDrawLayer extends BaseLayer {
|
|
@@ -145,18 +147,22 @@ export declare class CircleDrawLayer extends BaseLayer {
|
|
|
145
147
|
private defaultFillColor;
|
|
146
148
|
private defaultOutlineColor;
|
|
147
149
|
private defaultOutlineWidth;
|
|
150
|
+
private defaultOutlineStyle;
|
|
148
151
|
private onDrawCompleteCallback;
|
|
149
152
|
private onEditCompleteCallback;
|
|
150
153
|
private editingFeature;
|
|
151
154
|
private mapView;
|
|
155
|
+
private t;
|
|
152
156
|
constructor(id: string, name: string, options?: {
|
|
153
157
|
defaultFillColor?: number[];
|
|
154
158
|
defaultOutlineColor?: number[];
|
|
155
159
|
defaultOutlineWidth?: number;
|
|
160
|
+
defaultOutlineStyle?: "solid" | "dashed";
|
|
156
161
|
visible?: boolean;
|
|
157
162
|
opacity?: number;
|
|
158
163
|
zIndex?: number;
|
|
159
|
-
});
|
|
164
|
+
}, t?: Translations);
|
|
165
|
+
setTranslations(t: Translations): void;
|
|
160
166
|
private createStyle;
|
|
161
167
|
setView(view: any): void;
|
|
162
168
|
createLayer(map: any): default_2<default_3>;
|
|
@@ -201,6 +207,8 @@ export declare class CircleLayer extends BaseLayer {
|
|
|
201
207
|
updateData(data: {
|
|
202
208
|
circles?: CircleData[];
|
|
203
209
|
}): void;
|
|
210
|
+
getAllCircles(): CircleData[];
|
|
211
|
+
getCircle(id: string): CircleData | undefined;
|
|
204
212
|
}
|
|
205
213
|
|
|
206
214
|
export declare interface ClusterData {
|
|
@@ -228,6 +236,7 @@ export declare class ClusterLayer extends BaseLayer {
|
|
|
228
236
|
updateData(data: ClusterData[]): void;
|
|
229
237
|
getLayer(): default_2<default_5> | null;
|
|
230
238
|
destroy(): void;
|
|
239
|
+
getData(): ClusterData[];
|
|
231
240
|
}
|
|
232
241
|
|
|
233
242
|
/**
|
|
@@ -240,31 +249,6 @@ export declare enum CoordinateSystemTypeEnum {
|
|
|
240
249
|
WEB_MERCATOR = "web_mercator"
|
|
241
250
|
}
|
|
242
251
|
|
|
243
|
-
export declare class CustomTileLayer extends BaseLayer {
|
|
244
|
-
private tileLayer;
|
|
245
|
-
private urlTemplate;
|
|
246
|
-
private subDomains;
|
|
247
|
-
private attribution;
|
|
248
|
-
private minZoom;
|
|
249
|
-
private maxZoom;
|
|
250
|
-
constructor(id: string, name: string, options: {
|
|
251
|
-
urlTemplate: string;
|
|
252
|
-
subDomains?: string[];
|
|
253
|
-
attribution?: string;
|
|
254
|
-
minZoom?: number;
|
|
255
|
-
maxZoom?: number;
|
|
256
|
-
visible?: boolean;
|
|
257
|
-
opacity?: number;
|
|
258
|
-
zIndex?: number;
|
|
259
|
-
});
|
|
260
|
-
createLayer(map: any): default_6<default_7>;
|
|
261
|
-
updateData(data: {
|
|
262
|
-
urlTemplate: string;
|
|
263
|
-
}): void;
|
|
264
|
-
getLayer(): default_6<default_7> | null;
|
|
265
|
-
destroy(): void;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
252
|
export declare interface DistanceMeasurementData {
|
|
269
253
|
id: string;
|
|
270
254
|
points: MeasurementPoint[];
|
|
@@ -299,7 +283,7 @@ export declare class DistanceMeasurementLayer extends BaseLayer {
|
|
|
299
283
|
updateData(data: any): void;
|
|
300
284
|
}
|
|
301
285
|
|
|
302
|
-
export declare class
|
|
286
|
+
export declare class EarthView {
|
|
303
287
|
private mapManager;
|
|
304
288
|
private layerManager;
|
|
305
289
|
private uiManager;
|
|
@@ -318,6 +302,7 @@ export declare class EarthViewCore {
|
|
|
318
302
|
private drawingStatusDiv;
|
|
319
303
|
private measureStatusDiv;
|
|
320
304
|
private container;
|
|
305
|
+
private isOwnContainer;
|
|
321
306
|
private theme;
|
|
322
307
|
private t;
|
|
323
308
|
private locale;
|
|
@@ -338,13 +323,61 @@ export declare class EarthViewCore {
|
|
|
338
323
|
private currentColor;
|
|
339
324
|
private currentStrokeWidth;
|
|
340
325
|
private currentStrokeStyle;
|
|
326
|
+
private currentSize;
|
|
341
327
|
private currentScale;
|
|
342
328
|
private isLoading;
|
|
343
329
|
private isChangingBasemap;
|
|
344
330
|
private drawingStatusText;
|
|
345
331
|
private measureStatusText;
|
|
332
|
+
private freehandDrawLayer;
|
|
333
|
+
private ellipseDrawLayer;
|
|
334
|
+
private markerDrawLayer;
|
|
335
|
+
private textDrawLayer;
|
|
336
|
+
private arrowDrawLayer;
|
|
337
|
+
private freehandDrawTool;
|
|
338
|
+
private ellipseDrawTool;
|
|
339
|
+
private markerDrawTool;
|
|
340
|
+
private textDrawTool;
|
|
341
|
+
private arrowDrawTool;
|
|
342
|
+
private eventManager;
|
|
343
|
+
private selectedFreehandId;
|
|
344
|
+
private selectedEllipseId;
|
|
345
|
+
private selectedMarkerId;
|
|
346
|
+
private selectedTextId;
|
|
347
|
+
private selectedArrowId;
|
|
348
|
+
private lineDrawLayer;
|
|
349
|
+
private bezierDrawLayer;
|
|
350
|
+
private sectorDrawLayer;
|
|
351
|
+
private lineDrawTool;
|
|
352
|
+
private bezierDrawTool;
|
|
353
|
+
private sectorDrawTool;
|
|
354
|
+
private selectedLineId;
|
|
355
|
+
private selectedBezierId;
|
|
356
|
+
private selectedSectorId;
|
|
357
|
+
private pointCoordinatePickLayer;
|
|
358
|
+
private lineCoordinatePickLayer;
|
|
359
|
+
private polygonCoordinatePickLayer;
|
|
360
|
+
private pointCoordinateListPanel;
|
|
361
|
+
private currentPointCoordinates;
|
|
362
|
+
private currentLineCoordinates;
|
|
363
|
+
private currentPolygonCoordinates;
|
|
364
|
+
private imageDrawLayer;
|
|
365
|
+
private imageDrawTool;
|
|
366
|
+
private selectedImageId;
|
|
367
|
+
private selectedPointPickId;
|
|
368
|
+
private selectedLinePickId;
|
|
369
|
+
private selectedPolygonPickId;
|
|
346
370
|
constructor(options: EarthViewOptions);
|
|
371
|
+
private initEventManager;
|
|
372
|
+
private resolveContainer;
|
|
373
|
+
private createAutoContainer;
|
|
347
374
|
private initUI;
|
|
375
|
+
private updateCoordinateListPanel;
|
|
376
|
+
private showToast;
|
|
377
|
+
startPointCoordinatePick(): void;
|
|
378
|
+
startLineCoordinatePick(): void;
|
|
379
|
+
startPolygonCoordinatePick(): void;
|
|
380
|
+
private showCoordinateList;
|
|
348
381
|
private handleTogglePopup;
|
|
349
382
|
private createStatusIndicators;
|
|
350
383
|
private initLayers;
|
|
@@ -361,6 +394,15 @@ export declare class EarthViewCore {
|
|
|
361
394
|
private stopAllEditing;
|
|
362
395
|
private showFloatingToolbarForCircle;
|
|
363
396
|
private showFloatingToolbarForRectangle;
|
|
397
|
+
private showFloatingToolbarForFreehand;
|
|
398
|
+
private showFloatingToolbarForLine;
|
|
399
|
+
private showFloatingToolbarForBezier;
|
|
400
|
+
private showFloatingToolbarForSector;
|
|
401
|
+
private showFloatingToolbarForEllipse;
|
|
402
|
+
private showFloatingToolbarForMarker;
|
|
403
|
+
startDrawImage(): void;
|
|
404
|
+
private showFloatingToolbarForArrow;
|
|
405
|
+
private showGenericFloatingToolbar;
|
|
364
406
|
private showFloatingToolbarForTriangle;
|
|
365
407
|
private showMeasurementToolbarForFeature;
|
|
366
408
|
private hideFloatingToolbar;
|
|
@@ -377,16 +419,24 @@ export declare class EarthViewCore {
|
|
|
377
419
|
setCenter(center: [number, number], cs?: CoordinateSystemTypeEnum): void;
|
|
378
420
|
setZoom(zoom: number): void;
|
|
379
421
|
setBasemap(basemap: BasemapTypeEnum): void;
|
|
380
|
-
getBasemap(): BasemapTypeEnum;
|
|
422
|
+
getBasemap(): BasemapTypeEnum | null;
|
|
381
423
|
setTheme(theme: "light" | "dark"): void;
|
|
382
424
|
getTheme(): "light" | "dark";
|
|
383
425
|
setLocale(locale: Locale): void;
|
|
384
426
|
getContainer(): HTMLElement;
|
|
385
427
|
getLayerManager(): LayerManager;
|
|
386
428
|
getMap(): any;
|
|
387
|
-
addMarkerLayer(id: string, name: string, options?: any): MarkerLayer;
|
|
388
429
|
removeLayer(id: string): void;
|
|
389
430
|
setLayerVisibility(id: string, visible: boolean): void;
|
|
431
|
+
startDrawFreehand(): void;
|
|
432
|
+
startDrawFreehandPolygon(): void;
|
|
433
|
+
startDrawEllipse(): void;
|
|
434
|
+
startDrawMarker(): void;
|
|
435
|
+
startDrawText(): void;
|
|
436
|
+
startDrawArrow(): void;
|
|
437
|
+
startDrawLine(): void;
|
|
438
|
+
startDrawBezier(): void;
|
|
439
|
+
startDrawSector(): void;
|
|
390
440
|
startMeasureDistance(): void;
|
|
391
441
|
startMeasureArea(): void;
|
|
392
442
|
clearAllMeasurements(): void;
|
|
@@ -394,18 +444,29 @@ export declare class EarthViewCore {
|
|
|
394
444
|
zoomIn(): void;
|
|
395
445
|
zoomOut(): void;
|
|
396
446
|
locateUser(): void;
|
|
447
|
+
private getPointDataForPanel;
|
|
448
|
+
private getLineDataForPanel;
|
|
449
|
+
private getPolygonDataForPanel;
|
|
450
|
+
private locateToPoint;
|
|
451
|
+
private locateToLine;
|
|
452
|
+
setBasemapByUrl(url: string): void;
|
|
453
|
+
private locateToPolygon;
|
|
454
|
+
clearAllCoordinatePicks(): void;
|
|
397
455
|
destroy(): void;
|
|
398
456
|
}
|
|
399
457
|
|
|
400
458
|
export declare interface EarthViewOptions {
|
|
401
|
-
container
|
|
459
|
+
container?: HTMLElement;
|
|
460
|
+
containerSelector?: string;
|
|
461
|
+
id?: string;
|
|
462
|
+
parent?: HTMLElement;
|
|
463
|
+
parentSelector?: string;
|
|
402
464
|
basemap?: BasemapTypeEnum;
|
|
465
|
+
baseMapUrl?: string;
|
|
403
466
|
center?: [number, number];
|
|
404
467
|
zoom?: number;
|
|
405
468
|
coordinateSystem?: CoordinateSystemTypeEnum;
|
|
406
|
-
|
|
407
|
-
maxZoom?: number;
|
|
408
|
-
onLoad?: (core: any) => void;
|
|
469
|
+
onLoad?: (core: EarthView) => void;
|
|
409
470
|
onMoveEnd?: (center: [number, number], zoom: number) => void;
|
|
410
471
|
onMapClick?: (event: {
|
|
411
472
|
longitude: number;
|
|
@@ -413,7 +474,7 @@ export declare interface EarthViewOptions {
|
|
|
413
474
|
}) => void;
|
|
414
475
|
onCircleDrawn?: (data: CircleDrawData) => void;
|
|
415
476
|
theme?: "light" | "dark";
|
|
416
|
-
i18n?:
|
|
477
|
+
i18n?: Locale;
|
|
417
478
|
enableDrawing?: boolean;
|
|
418
479
|
}
|
|
419
480
|
|
|
@@ -435,12 +496,14 @@ export declare class GeoJSONLayer extends BaseLayer {
|
|
|
435
496
|
url?: string;
|
|
436
497
|
geojson?: any;
|
|
437
498
|
}): void;
|
|
499
|
+
getAllFeatures(): Feature[];
|
|
438
500
|
getLayer(): default_2<default_3> | null;
|
|
439
501
|
}
|
|
440
502
|
|
|
441
503
|
export declare const getTranslation: (locale: Locale) => Translations;
|
|
442
504
|
|
|
443
505
|
export declare interface HeatmapData {
|
|
506
|
+
id: string;
|
|
444
507
|
longitude: number;
|
|
445
508
|
latitude: number;
|
|
446
509
|
value?: number;
|
|
@@ -461,6 +524,7 @@ export declare class HeatmapLayer extends BaseLayer {
|
|
|
461
524
|
setData(data: HeatmapData[]): void;
|
|
462
525
|
updateData(data: HeatmapData[]): void;
|
|
463
526
|
getLayer(): default_4 | null;
|
|
527
|
+
getData(): HeatmapData[];
|
|
464
528
|
}
|
|
465
529
|
|
|
466
530
|
declare interface ILayer {
|
|
@@ -501,7 +565,6 @@ export declare class LayerManager implements ILayerManager {
|
|
|
501
565
|
constructor(map: any);
|
|
502
566
|
addLayer(layer: BaseLayer, index?: number): void;
|
|
503
567
|
private getZIndexForLayer;
|
|
504
|
-
private getLayerOrderIndex;
|
|
505
568
|
removeLayer(id: string): void;
|
|
506
569
|
getLayer(id: string): BaseLayer | undefined;
|
|
507
570
|
getAllLayers(): BaseLayer[];
|
|
@@ -530,40 +593,174 @@ export declare enum LayerTypeEnum {
|
|
|
530
593
|
RECTANGLE_DRAW = "rectangle-draw",
|
|
531
594
|
TRIANGLE_DRAW = "triangle-draw",
|
|
532
595
|
DISTANCE_MEASUREMENT = "distance-measurement",
|
|
533
|
-
AREA_MEASUREMENT = "area-measurement"
|
|
596
|
+
AREA_MEASUREMENT = "area-measurement",
|
|
597
|
+
FREEHAND_DRAW = "freehand-draw",
|
|
598
|
+
ELLIPSE_DRAW = "ellipse-draw",
|
|
599
|
+
MARKER_DRAW = "marker-draw",
|
|
600
|
+
TEXT_DRAW = "text-draw",
|
|
601
|
+
IMAGE_DRAW = "image-draw",
|
|
602
|
+
ARROW_DRAW = "arrow-draw",
|
|
603
|
+
LINE_DRAW = "line-draw",
|
|
604
|
+
BEZIER_DRAW = "bezier-draw",
|
|
605
|
+
SECTOR_DRAW = "sector-draw",
|
|
606
|
+
POINT_COORDINATE_PICK = "point-coordinate-pick",
|
|
607
|
+
LINE_COORDINATE_PICK = "line-coordinate-pick",
|
|
608
|
+
POLYGON_COORDINATE_PICK = "polygon-coordinate-pick"
|
|
534
609
|
}
|
|
535
610
|
|
|
536
611
|
export declare type Locale = "en" | "zh";
|
|
537
612
|
|
|
538
|
-
export declare interface MarkerData {
|
|
539
|
-
id: string;
|
|
540
|
-
longitude: number;
|
|
541
|
-
latitude: number;
|
|
542
|
-
color?: number[];
|
|
543
|
-
size?: number;
|
|
544
|
-
title?: string;
|
|
545
|
-
popupContent?: string;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
613
|
export declare class MarkerLayer extends BaseLayer {
|
|
614
|
+
private moveHandler;
|
|
549
615
|
private features;
|
|
616
|
+
private markersData;
|
|
617
|
+
private animationFrames;
|
|
550
618
|
private defaultColor;
|
|
551
619
|
private defaultSize;
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
620
|
+
private popupWidth;
|
|
621
|
+
private coverImageHeight;
|
|
622
|
+
private view;
|
|
623
|
+
private currentPopup;
|
|
624
|
+
private currentFeature;
|
|
625
|
+
private currentHoverTimeout;
|
|
626
|
+
private needsUpdate;
|
|
627
|
+
private animationFrameId;
|
|
628
|
+
private postRenderHandler;
|
|
629
|
+
private updateFrame;
|
|
630
|
+
constructor(id: string, name: string, options?: MarkerLayerOptions & {
|
|
555
631
|
visible?: boolean;
|
|
556
632
|
opacity?: number;
|
|
557
633
|
zIndex?: number;
|
|
558
634
|
});
|
|
635
|
+
setView(map: any): void;
|
|
636
|
+
private scheduleUpdate;
|
|
559
637
|
createLayer(map: any): default_2<default_3>;
|
|
560
|
-
|
|
638
|
+
private attachEvents;
|
|
639
|
+
private createPointStyle;
|
|
640
|
+
private startAnimation;
|
|
641
|
+
/**
|
|
642
|
+
* Create scaled style for pulse animation
|
|
643
|
+
*/
|
|
644
|
+
private createScaledStyle;
|
|
645
|
+
/**
|
|
646
|
+
* Create blended style for flashing animation
|
|
647
|
+
*/
|
|
648
|
+
private createBlendedStyle;
|
|
649
|
+
/**
|
|
650
|
+
* Create opacity style for breathing animation
|
|
651
|
+
*/
|
|
652
|
+
private createOpacityStyle;
|
|
653
|
+
/**
|
|
654
|
+
* Create glow style for light animation
|
|
655
|
+
*/
|
|
656
|
+
private createGlowStyle;
|
|
657
|
+
/**
|
|
658
|
+
* Stop animation for a marker
|
|
659
|
+
*/
|
|
660
|
+
private stopAnimation;
|
|
661
|
+
private createHtmlStyle;
|
|
662
|
+
addMarker(data: MarkerLayerData): Promise<void>;
|
|
561
663
|
removeMarker(id: string): void;
|
|
562
|
-
|
|
563
|
-
|
|
664
|
+
updateMarker(id: string, data: Partial<MarkerLayerData>): Promise<void>;
|
|
665
|
+
private showPopup;
|
|
666
|
+
private hidePopup;
|
|
667
|
+
clearAllMarkers(): void;
|
|
668
|
+
getAllMarkers(): MarkerLayerData[];
|
|
669
|
+
getMarker(id: string): MarkerLayerData | undefined;
|
|
564
670
|
updateData(data: {
|
|
565
|
-
markers
|
|
671
|
+
markers: MarkerLayerData[];
|
|
566
672
|
}): void;
|
|
673
|
+
private updatePopupPosition;
|
|
674
|
+
destroy(): void;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export declare enum MarkerLayerAnimationTypeEnum {
|
|
678
|
+
PULSE = "pulse",
|
|
679
|
+
FLASHING = "flashing",
|
|
680
|
+
BREATHING = "breathing",
|
|
681
|
+
LIGHT = "light"
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
export declare interface MarkerLayerData {
|
|
685
|
+
id: string;
|
|
686
|
+
name?: string;
|
|
687
|
+
longitude: number;
|
|
688
|
+
latitude: number;
|
|
689
|
+
bubbleBoxTitle?: string;
|
|
690
|
+
bubbleBoxDescription?: string;
|
|
691
|
+
bubbleBoxCoverImage?: string;
|
|
692
|
+
pointColor?: string;
|
|
693
|
+
pointType?: MarkerLayerPointTypeEnum;
|
|
694
|
+
pointSize?: number;
|
|
695
|
+
pointText?: string;
|
|
696
|
+
pointAnimationType?: MarkerLayerAnimationTypeEnum;
|
|
697
|
+
pointHtml?: string;
|
|
698
|
+
pointHtmlWidth?: number;
|
|
699
|
+
pointHtmlHeight?: number;
|
|
700
|
+
onClick?: (data: MarkerLayerData, event: any) => void;
|
|
701
|
+
onContextMenu?: (data: MarkerLayerData, event: any) => void;
|
|
702
|
+
onHover?: (data: MarkerLayerData, event: any) => void;
|
|
703
|
+
timestamp?: number;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
declare interface MarkerLayerOptions {
|
|
707
|
+
defaultColor?: number[];
|
|
708
|
+
defaultSize?: number;
|
|
709
|
+
popupWidth?: number;
|
|
710
|
+
coverImageHeight?: number;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export declare enum MarkerLayerPointTypeEnum {
|
|
714
|
+
SQUARE = "square",
|
|
715
|
+
CIRCLE = "circle",
|
|
716
|
+
TRIANGLE = "triangle",
|
|
717
|
+
PENTAGRAM = "pentagram",
|
|
718
|
+
TEXT = "text",
|
|
719
|
+
DIAMOND = "diamond",
|
|
720
|
+
CROSS = "cross",
|
|
721
|
+
X_SHAPE = "x_shape",
|
|
722
|
+
HEXAGON = "hexagon",
|
|
723
|
+
FLAG = "flag",
|
|
724
|
+
HOUSE = "house",
|
|
725
|
+
ARROW = "arrow",
|
|
726
|
+
TENT = "tent",// Tent - Camp, temporary post
|
|
727
|
+
BUNKER = "bunker",// Bunker - Fortification, fire point
|
|
728
|
+
LANDMINE = "landmine",// Landmine - Minefield, explosives
|
|
729
|
+
TANK = "tank",// Tank - Armored unit, heavy equipment
|
|
730
|
+
PLANE = "plane",// Plane - Airport, airstrip, aviation facility
|
|
731
|
+
SHIP = "ship",// Ship - Port, landing point, naval facility
|
|
732
|
+
RADAR = "radar",// Radar - Monitoring station, early warning point
|
|
733
|
+
MISSILE = "missile",// Missile - Missile site, launch point
|
|
734
|
+
FIRE_HYDRANT = "fire_hydrant",// Fire Hydrant - Fire facility, fire point
|
|
735
|
+
FIRST_AID = "first_aid",// First Aid - Medical supply point
|
|
736
|
+
WATER_TOWER = "water_tower",// Water Tower - Water source, reservoir
|
|
737
|
+
GENERATOR = "generator",// Generator - Power facility, backup power
|
|
738
|
+
MEGAPHONE = "megaphone",// Megaphone - Broadcast point, alert point
|
|
739
|
+
STREET_LAMP = "street_lamp",// Street Lamp - Lighting facility, emergency light
|
|
740
|
+
PARKING = "parking",// Parking - Parking lot, parking area
|
|
741
|
+
GAS_STATION = "gas_station",// Gas Station - Gas station, charging station
|
|
742
|
+
TUNNEL = "tunnel",// Tunnel - Tunnel entrance, culvert
|
|
743
|
+
BRIDGE = "bridge",// Bridge - Bridge, elevated road
|
|
744
|
+
TRAFFIC_LIGHT = "traffic_light",// Traffic Light - Traffic signal point
|
|
745
|
+
CAMERA = "camera",// Camera - Monitoring point, speed camera
|
|
746
|
+
TOILET = "toilet",// Toilet - Public restroom
|
|
747
|
+
TRASH_CAN = "trash_can",// Trash Can - Waste collection point
|
|
748
|
+
BUS_STOP = "bus_stop",// Bus Stop - Bus station
|
|
749
|
+
SUBWAY = "subway",// Subway - Subway entrance
|
|
750
|
+
SCHOOL = "school",// School - School, educational institution
|
|
751
|
+
HOSPITAL = "hospital",// Hospital - Hospital, clinic (distinct from cross)
|
|
752
|
+
TREE = "tree",// Tree - Forest, green area
|
|
753
|
+
WATER_SOURCE = "water_source",// Water Source - River, lake, well
|
|
754
|
+
MOUNTAIN = "mountain",// Mountain - Peak, high point
|
|
755
|
+
MINE = "mine",// Mine - Mining point, quarry
|
|
756
|
+
HEART = "heart",// Heart - Important attention point, donation spot
|
|
757
|
+
STAR = "star",// Star - Commendation point, excellent spot
|
|
758
|
+
CLOUD = "cloud",// Cloud - Cloud service node, weather observation point
|
|
759
|
+
GEAR = "gear",// Gear - Industrial facility, factory
|
|
760
|
+
LIGHTNING = "lightning",// Lightning - Power facility, hazard warning
|
|
761
|
+
PIN = "pin",// Pin - General marker point, favorite point
|
|
762
|
+
COMPASS = "compass",// Compass - Direction reference, navigation point
|
|
763
|
+
ANCHOR = "anchor"
|
|
567
764
|
}
|
|
568
765
|
|
|
569
766
|
export declare interface MeasurementPoint {
|
|
@@ -599,6 +796,8 @@ export declare class PolygonLayer extends BaseLayer {
|
|
|
599
796
|
updateData(data: {
|
|
600
797
|
polygons?: PolygonData[];
|
|
601
798
|
}): void;
|
|
799
|
+
getAllPolygons(): PolygonData[];
|
|
800
|
+
getPolygon(id: string): PolygonData | undefined;
|
|
602
801
|
}
|
|
603
802
|
|
|
604
803
|
export declare interface PolylineData {
|
|
@@ -626,60 +825,8 @@ export declare class PolylineLayer extends BaseLayer {
|
|
|
626
825
|
updateData(data: {
|
|
627
826
|
polylines?: PolylineData[];
|
|
628
827
|
}): void;
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
export declare interface PopupMarkerData {
|
|
632
|
-
id: string;
|
|
633
|
-
longitude: number;
|
|
634
|
-
latitude: number;
|
|
635
|
-
title?: string;
|
|
636
|
-
description?: string;
|
|
637
|
-
coverImage?: string;
|
|
638
|
-
color?: number[];
|
|
639
|
-
size?: number;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
export declare class PopupMarkerLayer extends BaseLayer {
|
|
643
|
-
private moveHandler;
|
|
644
|
-
private features;
|
|
645
|
-
private defaultColor;
|
|
646
|
-
private defaultSize;
|
|
647
|
-
private popupWidth;
|
|
648
|
-
private coverImageHeight;
|
|
649
|
-
private view;
|
|
650
|
-
private currentPopup;
|
|
651
|
-
private currentFeature;
|
|
652
|
-
private needsUpdate;
|
|
653
|
-
private animationFrameId;
|
|
654
|
-
private postRenderHandler;
|
|
655
|
-
private updateFrame;
|
|
656
|
-
constructor(id: string, name: string, options?: PopupMarkerLayerOptions & {
|
|
657
|
-
visible?: boolean;
|
|
658
|
-
opacity?: number;
|
|
659
|
-
zIndex?: number;
|
|
660
|
-
});
|
|
661
|
-
setView(map: any): void;
|
|
662
|
-
private scheduleUpdate;
|
|
663
|
-
createLayer(map: any): default_2<default_3>;
|
|
664
|
-
private attachClickEvent;
|
|
665
|
-
addMarker(data: PopupMarkerData): void;
|
|
666
|
-
removeMarker(id: string): void;
|
|
667
|
-
private showPopup;
|
|
668
|
-
private hidePopup;
|
|
669
|
-
clearAllMarkers(): void;
|
|
670
|
-
getAllMarkers(): PopupMarkerData[];
|
|
671
|
-
updateData(data: {
|
|
672
|
-
markers: PopupMarkerData[];
|
|
673
|
-
}): void;
|
|
674
|
-
private updatePopupPosition;
|
|
675
|
-
destroy(): void;
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
declare interface PopupMarkerLayerOptions {
|
|
679
|
-
defaultColor?: number[];
|
|
680
|
-
defaultSize?: number;
|
|
681
|
-
popupWidth?: number;
|
|
682
|
-
coverImageHeight?: number;
|
|
828
|
+
getAllPolylines(): PolylineData[];
|
|
829
|
+
getPolyline(id: string): PolylineData | undefined;
|
|
683
830
|
}
|
|
684
831
|
|
|
685
832
|
export declare interface TileLayerConfig {
|
|
@@ -693,6 +840,22 @@ export declare interface TileLayerConfig {
|
|
|
693
840
|
export declare function toWGS84(lng: number, lat: number, fromSystem: CoordinateSystemTypeEnum): [number, number];
|
|
694
841
|
|
|
695
842
|
export declare interface Translations {
|
|
843
|
+
pleaseEnterText: string;
|
|
844
|
+
longitude: string;
|
|
845
|
+
latitude: string;
|
|
846
|
+
confirm: string;
|
|
847
|
+
addImage: string;
|
|
848
|
+
imageUrl: string;
|
|
849
|
+
uploadImage: string;
|
|
850
|
+
width: string;
|
|
851
|
+
height: string;
|
|
852
|
+
opacity: string;
|
|
853
|
+
drawImage: string;
|
|
854
|
+
drawCoordinatePick: string;
|
|
855
|
+
coordinatePick: string;
|
|
856
|
+
coordinateList: string;
|
|
857
|
+
noCoordinates: string;
|
|
858
|
+
clearAll: string;
|
|
696
859
|
loading: string;
|
|
697
860
|
changingBasemap: string;
|
|
698
861
|
layers: string;
|
|
@@ -762,6 +925,132 @@ export declare interface Translations {
|
|
|
762
925
|
editShape: string;
|
|
763
926
|
editingRectangle: string;
|
|
764
927
|
editingTriangle: string;
|
|
928
|
+
circleDrawLayer: string;
|
|
929
|
+
rectangleDrawLayer: string;
|
|
930
|
+
triangleDrawLayer: string;
|
|
931
|
+
distanceMeasurementLayer: string;
|
|
932
|
+
areaMeasurementLayer: string;
|
|
933
|
+
drawFreehandLine: string;
|
|
934
|
+
drawFreehandPolygon: string;
|
|
935
|
+
drawEllipse: string;
|
|
936
|
+
drawMarker: string;
|
|
937
|
+
drawText: string;
|
|
938
|
+
drawArrow: string;
|
|
939
|
+
drawLine: string;
|
|
940
|
+
drawBezier: string;
|
|
941
|
+
drawSector: string;
|
|
942
|
+
pointData: string;
|
|
943
|
+
lineData: string;
|
|
944
|
+
polygonData: string;
|
|
945
|
+
coordinateData: string;
|
|
946
|
+
details: string;
|
|
947
|
+
copyCoordinates: string;
|
|
948
|
+
locateOnMap: string;
|
|
949
|
+
startPoint: string;
|
|
950
|
+
endPoint: string;
|
|
951
|
+
vertexCount: string;
|
|
952
|
+
createdTime: string;
|
|
953
|
+
noDataAvailable: string;
|
|
954
|
+
pleaseUseCoordinatePickTool: string;
|
|
955
|
+
coordinatesCopied: string;
|
|
956
|
+
locatedToPoint: string;
|
|
957
|
+
locatedToLine: string;
|
|
958
|
+
locatedToPolygon: string;
|
|
959
|
+
allCoordinatesCleared: string;
|
|
960
|
+
noCoordinateData: string;
|
|
961
|
+
copyAllPointCoordinates: string;
|
|
962
|
+
pointPickSuccess: string;
|
|
963
|
+
linePickSuccess: string;
|
|
964
|
+
polygonPickSuccess: string;
|
|
965
|
+
drawingStatusCancelHint: string;
|
|
966
|
+
editingText: string;
|
|
967
|
+
fontSize: string;
|
|
968
|
+
color: string;
|
|
969
|
+
bold: string;
|
|
970
|
+
italic: string;
|
|
971
|
+
imagePreview: string;
|
|
972
|
+
noImage: string;
|
|
973
|
+
imageLoadFailed: string;
|
|
974
|
+
image: string;
|
|
975
|
+
cancelDrawing: string;
|
|
976
|
+
drawingRectangle: string;
|
|
977
|
+
drawingTriangle: string;
|
|
978
|
+
drawingFreehand: string;
|
|
979
|
+
drawingFreehandPolygon: string;
|
|
980
|
+
drawingEllipse: string;
|
|
981
|
+
addingMarker: string;
|
|
982
|
+
addingText: string;
|
|
983
|
+
drawingArrow: string;
|
|
984
|
+
drawingLine: string;
|
|
985
|
+
drawingBezier: string;
|
|
986
|
+
drawingSector: string;
|
|
987
|
+
drawing: string;
|
|
988
|
+
pressEscToCancel: string;
|
|
989
|
+
clickMapToPickPoint: string;
|
|
990
|
+
clickMapToDrawLine: string;
|
|
991
|
+
clickMapToDrawPolygon: string;
|
|
992
|
+
doubleClickToFinishPick: string;
|
|
993
|
+
editText: string;
|
|
994
|
+
strokeWidth: string;
|
|
995
|
+
strokeStyle: string;
|
|
996
|
+
dragToMove: string;
|
|
997
|
+
noImagePreview: string;
|
|
998
|
+
uploadFromComputer: string;
|
|
999
|
+
enterImageUrl: string;
|
|
1000
|
+
deleteImage: string;
|
|
1001
|
+
cancelEdit: string;
|
|
1002
|
+
save: string;
|
|
1003
|
+
ok: string;
|
|
1004
|
+
lineTool: string;
|
|
1005
|
+
arrowTool: string;
|
|
1006
|
+
bezierTool: string;
|
|
1007
|
+
ellipseTool: string;
|
|
1008
|
+
rectangleTool: string;
|
|
1009
|
+
triangleTool: string;
|
|
1010
|
+
sectorTool: string;
|
|
1011
|
+
freehandTool: string;
|
|
1012
|
+
freehandPolygonTool: string;
|
|
1013
|
+
markerTool: string;
|
|
1014
|
+
textTool: string;
|
|
1015
|
+
imageTool: string;
|
|
1016
|
+
points: string;
|
|
1017
|
+
pointsCount: string;
|
|
1018
|
+
featureNotFound: string;
|
|
1019
|
+
cannotGetMapTarget: string;
|
|
1020
|
+
cannotGetPixelFromCoordinate: string;
|
|
1021
|
+
bezierFeatureNotFound: string;
|
|
1022
|
+
noSourceAvailable: string;
|
|
1023
|
+
dataLayers: string;
|
|
1024
|
+
drawLayers: string;
|
|
1025
|
+
toolLayers: string;
|
|
1026
|
+
freehandDrawLayer: string;
|
|
1027
|
+
ellipseDrawLayer: string;
|
|
1028
|
+
markerDrawLayer: string;
|
|
1029
|
+
textDrawLayer: string;
|
|
1030
|
+
imageDrawLayer: string;
|
|
1031
|
+
arrowDrawLayer: string;
|
|
1032
|
+
lineDrawLayer: string;
|
|
1033
|
+
bezierDrawLayer: string;
|
|
1034
|
+
sectorDrawLayer: string;
|
|
1035
|
+
pointPickLayer: string;
|
|
1036
|
+
linePickLayer: string;
|
|
1037
|
+
polygonPickLayer: string;
|
|
1038
|
+
featureType: string;
|
|
1039
|
+
properties: string;
|
|
1040
|
+
linePick: {
|
|
1041
|
+
default_name: string;
|
|
1042
|
+
label_prefix: string;
|
|
1043
|
+
highlight_text: string;
|
|
1044
|
+
};
|
|
1045
|
+
pointPick: {
|
|
1046
|
+
default_name: string;
|
|
1047
|
+
label_text: string;
|
|
1048
|
+
};
|
|
1049
|
+
polygonPick: {
|
|
1050
|
+
default_name: string;
|
|
1051
|
+
label_prefix: string;
|
|
1052
|
+
highlight_text: string;
|
|
1053
|
+
};
|
|
765
1054
|
}
|
|
766
1055
|
|
|
767
1056
|
export { }
|