@mapgis/webclient-mapboxgl-plugin 17.0.4 → 17.0.6
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 +24 -0
- package/dist/es5/webclient-common.min.js +1 -1
- package/dist/es5/webclient-mapboxgl-plugin.min.js +1 -1
- package/dist/webclient-mapboxgl-plugin-es6.min.js +1 -1
- package/documention/EchartsLayer.html +12 -4
- package/documention/MapViewMapboxgl.html +350 -123
- package/documention/Popup.html +125 -33
- package/documention/Screenshot.html +30 -10
- package/documention/SketchEditorMapboxgl.html +211 -71
- package/documention/index.html +4 -4
- package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapvLayer.html +19 -7
- package/documention/scripts/sideBar.js +111 -6
- package/package.json +1 -1
|
@@ -75,13 +75,17 @@ import { SketchEditorMapboxgl } from "@mapgis/webclient-leaflet-plugin"
|
|
|
75
75
|
|
|
76
76
|
<tr class="deep-level-0">
|
|
77
77
|
|
|
78
|
-
<td class="name"
|
|
78
|
+
<td class="name"><code>options</code></td>
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
<td class="type">
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
<span class="param-type">
|
|
84
|
+
<span class="param-type">
|
|
85
|
+
|
|
86
|
+
Object
|
|
87
|
+
|
|
88
|
+
</span>
|
|
85
89
|
|
|
86
90
|
|
|
87
91
|
|
|
@@ -98,16 +102,24 @@ import { SketchEditorMapboxgl } from "@mapgis/webclient-leaflet-plugin"
|
|
|
98
102
|
|
|
99
103
|
<tr class="deep-level-1">
|
|
100
104
|
|
|
101
|
-
<td class="name"
|
|
105
|
+
<td class="name"><code>view</code></td>
|
|
102
106
|
|
|
103
107
|
|
|
104
108
|
<td class="type">
|
|
105
109
|
|
|
106
110
|
|
|
107
|
-
<span class="param-type"
|
|
111
|
+
<span class="param-type">
|
|
112
|
+
|
|
113
|
+
<a link="MapView.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapView" MapView.html>MapView</a>
|
|
114
|
+
|
|
115
|
+
</span>
|
|
108
116
|
|
|
|
109
117
|
|
|
110
|
-
<span class="param-type">
|
|
118
|
+
<span class="param-type">
|
|
119
|
+
|
|
120
|
+
SceneView
|
|
121
|
+
|
|
122
|
+
</span>
|
|
111
123
|
|
|
112
124
|
|
|
113
125
|
|
|
@@ -124,13 +136,17 @@ import { SketchEditorMapboxgl } from "@mapgis/webclient-leaflet-plugin"
|
|
|
124
136
|
|
|
125
137
|
<tr class="deep-level-1">
|
|
126
138
|
|
|
127
|
-
<td class="name"
|
|
139
|
+
<td class="name"><code>layer</code></td>
|
|
128
140
|
|
|
129
141
|
|
|
130
142
|
<td class="type">
|
|
131
143
|
|
|
132
144
|
|
|
133
|
-
<span class="param-type">
|
|
145
|
+
<span class="param-type">
|
|
146
|
+
|
|
147
|
+
GraphicsLayer
|
|
148
|
+
|
|
149
|
+
</span>
|
|
134
150
|
|
|
135
151
|
|
|
136
152
|
|
|
@@ -147,13 +163,17 @@ import { SketchEditorMapboxgl } from "@mapgis/webclient-leaflet-plugin"
|
|
|
147
163
|
|
|
148
164
|
<tr class="deep-level-1">
|
|
149
165
|
|
|
150
|
-
<td class="name"
|
|
166
|
+
<td class="name"><code>sketchStyle</code></td>
|
|
151
167
|
|
|
152
168
|
|
|
153
169
|
<td class="type">
|
|
154
170
|
|
|
155
171
|
|
|
156
|
-
<span class="param-type">
|
|
172
|
+
<span class="param-type">
|
|
173
|
+
|
|
174
|
+
SketchStyle
|
|
175
|
+
|
|
176
|
+
</span>
|
|
157
177
|
|
|
158
178
|
|
|
159
179
|
|
|
@@ -170,13 +190,17 @@ import { SketchEditorMapboxgl } from "@mapgis/webclient-leaflet-plugin"
|
|
|
170
190
|
|
|
171
191
|
<tr class="deep-level-1">
|
|
172
192
|
|
|
173
|
-
<td class="name"
|
|
193
|
+
<td class="name"><code>snapOption</code></td>
|
|
174
194
|
|
|
175
195
|
|
|
176
196
|
<td class="type">
|
|
177
197
|
|
|
178
198
|
|
|
179
|
-
<span class="param-type">
|
|
199
|
+
<span class="param-type">
|
|
200
|
+
|
|
201
|
+
Object
|
|
202
|
+
|
|
203
|
+
</span>
|
|
180
204
|
|
|
181
205
|
|
|
182
206
|
|
|
@@ -245,9 +269,9 @@ import { SketchEditorMapboxgl } from "@mapgis/webclient-leaflet-plugin"
|
|
|
245
269
|
<div class="column is-2"><label>绑定事件</label></div>
|
|
246
270
|
<div class="column is-10">
|
|
247
271
|
<ul>
|
|
248
|
-
<li
|
|
272
|
+
<li><a href="#草图绘制完成事件">草图绘制完成事件</a></li>
|
|
249
273
|
|
|
250
|
-
<li
|
|
274
|
+
<li><a href="#草图被选中事件">草图被选中事件</a></li>
|
|
251
275
|
</ul>
|
|
252
276
|
</div>
|
|
253
277
|
</div>
|
|
@@ -379,7 +403,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
379
403
|
|
|
380
404
|
</code>
|
|
381
405
|
</td>
|
|
382
|
-
<td class="name"><code><p
|
|
406
|
+
<td class="name"><code><p>向当前线或区草图中插入新的顶点</code></td>
|
|
383
407
|
</tr>
|
|
384
408
|
|
|
385
409
|
<tr class="deep-level-0">
|
|
@@ -388,14 +412,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
388
412
|
<code>
|
|
389
413
|
|
|
390
414
|
|
|
391
|
-
<span class="param-type">
|
|
415
|
+
<span class="param-type">
|
|
416
|
+
|
|
417
|
+
Boolean
|
|
418
|
+
|
|
419
|
+
</span>
|
|
392
420
|
|
|
393
421
|
|
|
394
422
|
|
|
395
423
|
|
|
396
424
|
</code>
|
|
397
425
|
</td>
|
|
398
|
-
<td class="name"><code><p
|
|
426
|
+
<td class="name"><code><p>草图是否可执行恢复操作</code></td>
|
|
399
427
|
</tr>
|
|
400
428
|
|
|
401
429
|
<tr class="deep-level-0">
|
|
@@ -404,14 +432,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
404
432
|
<code>
|
|
405
433
|
|
|
406
434
|
|
|
407
|
-
<span class="param-type">
|
|
435
|
+
<span class="param-type">
|
|
436
|
+
|
|
437
|
+
Boolean
|
|
438
|
+
|
|
439
|
+
</span>
|
|
408
440
|
|
|
409
441
|
|
|
410
442
|
|
|
411
443
|
|
|
412
444
|
</code>
|
|
413
445
|
</td>
|
|
414
|
-
<td class="name"><code><p
|
|
446
|
+
<td class="name"><code><p>草图是否可执行撤销操作</code></td>
|
|
415
447
|
</tr>
|
|
416
448
|
|
|
417
449
|
<tr class="deep-level-0">
|
|
@@ -421,7 +453,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
421
453
|
|
|
422
454
|
</code>
|
|
423
455
|
</td>
|
|
424
|
-
<td class="name"><code><p
|
|
456
|
+
<td class="name"><code><p>线拓扑造区</code></td>
|
|
425
457
|
</tr>
|
|
426
458
|
|
|
427
459
|
<tr class="deep-level-0">
|
|
@@ -430,14 +462,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
430
462
|
<code>
|
|
431
463
|
|
|
432
464
|
|
|
433
|
-
<span class="param-type">
|
|
465
|
+
<span class="param-type">
|
|
466
|
+
|
|
467
|
+
Geometry
|
|
468
|
+
|
|
469
|
+
</span>
|
|
434
470
|
|
|
435
471
|
|
|
436
472
|
|
|
437
473
|
|
|
438
474
|
</code>
|
|
439
475
|
</td>
|
|
440
|
-
<td class="name"><code><p
|
|
476
|
+
<td class="name"><code><p>获取草图几何对象</code></td>
|
|
441
477
|
</tr>
|
|
442
478
|
|
|
443
479
|
<tr class="deep-level-0">
|
|
@@ -446,14 +482,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
446
482
|
<code>
|
|
447
483
|
|
|
448
484
|
|
|
449
|
-
<span class="param-type">
|
|
485
|
+
<span class="param-type">
|
|
486
|
+
|
|
487
|
+
SketchStyle
|
|
488
|
+
|
|
489
|
+
</span>
|
|
450
490
|
|
|
451
491
|
|
|
452
492
|
|
|
453
493
|
|
|
454
494
|
</code>
|
|
455
495
|
</td>
|
|
456
|
-
<td class="name"><code><p
|
|
496
|
+
<td class="name"><code><p>获取草图样式</code></td>
|
|
457
497
|
</tr>
|
|
458
498
|
|
|
459
499
|
<tr class="deep-level-0">
|
|
@@ -462,14 +502,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
462
502
|
<code>
|
|
463
503
|
|
|
464
504
|
|
|
465
|
-
<span class="param-type">
|
|
505
|
+
<span class="param-type">
|
|
506
|
+
|
|
507
|
+
Geometry
|
|
508
|
+
|
|
509
|
+
</span>
|
|
466
510
|
|
|
467
511
|
|
|
468
512
|
|
|
469
513
|
|
|
470
514
|
</code>
|
|
471
515
|
</td>
|
|
472
|
-
<td class="name"><code><p
|
|
516
|
+
<td class="name"><code><p>恢复被撤销的草图</code></td>
|
|
473
517
|
</tr>
|
|
474
518
|
|
|
475
519
|
<tr class="deep-level-0">
|
|
@@ -479,7 +523,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
479
523
|
|
|
480
524
|
</code>
|
|
481
525
|
</td>
|
|
482
|
-
<td class="name"><code><p
|
|
526
|
+
<td class="name"><code><p>移除当前草图</code></td>
|
|
483
527
|
</tr>
|
|
484
528
|
|
|
485
529
|
<tr class="deep-level-0">
|
|
@@ -489,7 +533,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
489
533
|
|
|
490
534
|
</code>
|
|
491
535
|
</td>
|
|
492
|
-
<td class="name"><code><p
|
|
536
|
+
<td class="name"><code><p>移除草图图形的某个顶点</code></td>
|
|
493
537
|
</tr>
|
|
494
538
|
|
|
495
539
|
<tr class="deep-level-0">
|
|
@@ -499,7 +543,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
499
543
|
|
|
500
544
|
</code>
|
|
501
545
|
</td>
|
|
502
|
-
<td class="name"><code><p
|
|
546
|
+
<td class="name"><code><p>设置草图样式</code></td>
|
|
503
547
|
</tr>
|
|
504
548
|
|
|
505
549
|
<tr class="deep-level-0">
|
|
@@ -508,14 +552,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
508
552
|
<code>
|
|
509
553
|
|
|
510
554
|
|
|
511
|
-
<span class="param-type">
|
|
555
|
+
<span class="param-type">
|
|
556
|
+
|
|
557
|
+
Array.<Polygon>
|
|
558
|
+
|
|
559
|
+
</span>
|
|
512
560
|
|
|
513
561
|
|
|
514
562
|
|
|
515
563
|
|
|
516
564
|
</code>
|
|
517
565
|
</td>
|
|
518
|
-
<td class="name"><code><p
|
|
566
|
+
<td class="name"><code><p>分割草图对象或区几何对象</code></td>
|
|
519
567
|
</tr>
|
|
520
568
|
|
|
521
569
|
<tr class="deep-level-0">
|
|
@@ -525,7 +573,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
525
573
|
|
|
526
574
|
</code>
|
|
527
575
|
</td>
|
|
528
|
-
<td class="name"><code><p
|
|
576
|
+
<td class="name"><code><p>开始绘制草图</code></td>
|
|
529
577
|
</tr>
|
|
530
578
|
|
|
531
579
|
<tr class="deep-level-0">
|
|
@@ -535,7 +583,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
535
583
|
|
|
536
584
|
</code>
|
|
537
585
|
</td>
|
|
538
|
-
<td class="name"><code><p
|
|
586
|
+
<td class="name"><code><p>开始绘制草图</code></td>
|
|
539
587
|
</tr>
|
|
540
588
|
|
|
541
589
|
<tr class="deep-level-0">
|
|
@@ -545,7 +593,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
545
593
|
|
|
546
594
|
</code>
|
|
547
595
|
</td>
|
|
548
|
-
<td class="name"><code><p
|
|
596
|
+
<td class="name"><code><p>停止绘制</code></td>
|
|
549
597
|
</tr>
|
|
550
598
|
|
|
551
599
|
<tr class="deep-level-0">
|
|
@@ -554,14 +602,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
554
602
|
<code>
|
|
555
603
|
|
|
556
604
|
|
|
557
|
-
<span class="param-type">
|
|
605
|
+
<span class="param-type">
|
|
606
|
+
|
|
607
|
+
Geometry
|
|
608
|
+
|
|
609
|
+
</span>
|
|
558
610
|
|
|
559
611
|
|
|
560
612
|
|
|
561
613
|
|
|
562
614
|
</code>
|
|
563
615
|
</td>
|
|
564
|
-
<td class="name"><code><p
|
|
616
|
+
<td class="name"><code><p>撤销当前编辑操作</code></td>
|
|
565
617
|
</tr>
|
|
566
618
|
|
|
567
619
|
<tr class="deep-level-0">
|
|
@@ -570,14 +622,18 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
570
622
|
<code>
|
|
571
623
|
|
|
572
624
|
|
|
573
|
-
<span class="param-type">
|
|
625
|
+
<span class="param-type">
|
|
626
|
+
|
|
627
|
+
Polygon
|
|
628
|
+
|
|
629
|
+
</span>
|
|
574
630
|
|
|
575
631
|
|
|
576
632
|
|
|
577
633
|
|
|
578
634
|
</code>
|
|
579
635
|
</td>
|
|
580
|
-
<td class="name"><code><p
|
|
636
|
+
<td class="name"><code><p>合并多个区几何</code></td>
|
|
581
637
|
</tr>
|
|
582
638
|
|
|
583
639
|
<tr class="deep-level-0">
|
|
@@ -587,7 +643,7 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
587
643
|
|
|
588
644
|
</code>
|
|
589
645
|
</td>
|
|
590
|
-
<td class="name"><code><p
|
|
646
|
+
<td class="name"><code><p>更新当前草图图形的某个顶点</code></td>
|
|
591
647
|
</tr>
|
|
592
648
|
|
|
593
649
|
</tbody>
|
|
@@ -648,13 +704,17 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
648
704
|
|
|
649
705
|
<tr class="deep-level-0">
|
|
650
706
|
|
|
651
|
-
<td class="name"
|
|
707
|
+
<td class="name"><code>point</code></td>
|
|
652
708
|
|
|
653
709
|
|
|
654
710
|
<td class="type">
|
|
655
711
|
|
|
656
712
|
|
|
657
|
-
<span class="param-type">
|
|
713
|
+
<span class="param-type">
|
|
714
|
+
|
|
715
|
+
Point
|
|
716
|
+
|
|
717
|
+
</span>
|
|
658
718
|
|
|
659
719
|
|
|
660
720
|
|
|
@@ -673,13 +733,17 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
673
733
|
|
|
674
734
|
<tr class="deep-level-0">
|
|
675
735
|
|
|
676
|
-
<td class="name"
|
|
736
|
+
<td class="name"><code>index</code></td>
|
|
677
737
|
|
|
678
738
|
|
|
679
739
|
<td class="type">
|
|
680
740
|
|
|
681
741
|
|
|
682
|
-
<span class="param-type">
|
|
742
|
+
<span class="param-type">
|
|
743
|
+
|
|
744
|
+
Number
|
|
745
|
+
|
|
746
|
+
</span>
|
|
683
747
|
|
|
684
748
|
|
|
685
749
|
|
|
@@ -857,7 +921,11 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
857
921
|
<div class='column is-5 has-text-left'>
|
|
858
922
|
<label>类型: </label>
|
|
859
923
|
|
|
860
|
-
<span class="param-type">
|
|
924
|
+
<span class="param-type">
|
|
925
|
+
|
|
926
|
+
Boolean
|
|
927
|
+
|
|
928
|
+
</span>
|
|
861
929
|
|
|
862
930
|
|
|
863
931
|
|
|
@@ -972,7 +1040,11 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
972
1040
|
<div class='column is-5 has-text-left'>
|
|
973
1041
|
<label>类型: </label>
|
|
974
1042
|
|
|
975
|
-
<span class="param-type">
|
|
1043
|
+
<span class="param-type">
|
|
1044
|
+
|
|
1045
|
+
Boolean
|
|
1046
|
+
|
|
1047
|
+
</span>
|
|
976
1048
|
|
|
977
1049
|
|
|
978
1050
|
|
|
@@ -1044,13 +1116,17 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区
|
|
|
1044
1116
|
|
|
1045
1117
|
<tr class="deep-level-0">
|
|
1046
1118
|
|
|
1047
|
-
<td class="name"
|
|
1119
|
+
<td class="name"><code>snapAndReferGeometries</code></td>
|
|
1048
1120
|
|
|
1049
1121
|
|
|
1050
1122
|
<td class="type">
|
|
1051
1123
|
|
|
1052
1124
|
|
|
1053
|
-
<span class="param-type">
|
|
1125
|
+
<span class="param-type">
|
|
1126
|
+
|
|
1127
|
+
Array.<Polygon>
|
|
1128
|
+
|
|
1129
|
+
</span>
|
|
1054
1130
|
|
|
1055
1131
|
|
|
1056
1132
|
|
|
@@ -1303,7 +1379,11 @@ sketchEditorMapboxgl.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1303
1379
|
<div class='column is-5 has-text-left'>
|
|
1304
1380
|
<label>类型: </label>
|
|
1305
1381
|
|
|
1306
|
-
<span class="param-type">
|
|
1382
|
+
<span class="param-type">
|
|
1383
|
+
|
|
1384
|
+
Geometry
|
|
1385
|
+
|
|
1386
|
+
</span>
|
|
1307
1387
|
|
|
1308
1388
|
|
|
1309
1389
|
|
|
@@ -1418,7 +1498,11 @@ sketchEditorMapboxgl.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1418
1498
|
<div class='column is-5 has-text-left'>
|
|
1419
1499
|
<label>类型: </label>
|
|
1420
1500
|
|
|
1421
|
-
<span class="param-type">
|
|
1501
|
+
<span class="param-type">
|
|
1502
|
+
|
|
1503
|
+
SketchStyle
|
|
1504
|
+
|
|
1505
|
+
</span>
|
|
1422
1506
|
|
|
1423
1507
|
|
|
1424
1508
|
|
|
@@ -1533,7 +1617,11 @@ sketchEditorMapboxgl.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1533
1617
|
<div class='column is-5 has-text-left'>
|
|
1534
1618
|
<label>类型: </label>
|
|
1535
1619
|
|
|
1536
|
-
<span class="param-type">
|
|
1620
|
+
<span class="param-type">
|
|
1621
|
+
|
|
1622
|
+
Geometry
|
|
1623
|
+
|
|
1624
|
+
</span>
|
|
1537
1625
|
|
|
1538
1626
|
|
|
1539
1627
|
|
|
@@ -1722,13 +1810,17 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1722
1810
|
|
|
1723
1811
|
<tr class="deep-level-0">
|
|
1724
1812
|
|
|
1725
|
-
<td class="name"
|
|
1813
|
+
<td class="name"><code>index</code></td>
|
|
1726
1814
|
|
|
1727
1815
|
|
|
1728
1816
|
<td class="type">
|
|
1729
1817
|
|
|
1730
1818
|
|
|
1731
|
-
<span class="param-type">
|
|
1819
|
+
<span class="param-type">
|
|
1820
|
+
|
|
1821
|
+
Number
|
|
1822
|
+
|
|
1823
|
+
</span>
|
|
1732
1824
|
|
|
1733
1825
|
|
|
1734
1826
|
|
|
@@ -1863,13 +1955,17 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
1863
1955
|
|
|
1864
1956
|
<tr class="deep-level-0">
|
|
1865
1957
|
|
|
1866
|
-
<td class="name"
|
|
1958
|
+
<td class="name"><code>sketchStyle</code></td>
|
|
1867
1959
|
|
|
1868
1960
|
|
|
1869
1961
|
<td class="type">
|
|
1870
1962
|
|
|
1871
1963
|
|
|
1872
|
-
<span class="param-type">
|
|
1964
|
+
<span class="param-type">
|
|
1965
|
+
|
|
1966
|
+
SketchStyle
|
|
1967
|
+
|
|
1968
|
+
</span>
|
|
1873
1969
|
|
|
1874
1970
|
|
|
1875
1971
|
|
|
@@ -2089,16 +2185,24 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2089
2185
|
|
|
2090
2186
|
<tr class="deep-level-0">
|
|
2091
2187
|
|
|
2092
|
-
<td class="name"
|
|
2188
|
+
<td class="name"><code>target</code></td>
|
|
2093
2189
|
|
|
2094
2190
|
|
|
2095
2191
|
<td class="type">
|
|
2096
2192
|
|
|
2097
2193
|
|
|
2098
|
-
<span class="param-type">
|
|
2194
|
+
<span class="param-type">
|
|
2195
|
+
|
|
2196
|
+
Polygon
|
|
2197
|
+
|
|
2198
|
+
</span>
|
|
2099
2199
|
|
|
|
2100
2200
|
|
|
2101
|
-
<span class="param-type">
|
|
2201
|
+
<span class="param-type">
|
|
2202
|
+
|
|
2203
|
+
SketchEditor
|
|
2204
|
+
|
|
2205
|
+
</span>
|
|
2102
2206
|
|
|
2103
2207
|
|
|
2104
2208
|
|
|
@@ -2117,13 +2221,17 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2117
2221
|
|
|
2118
2222
|
<tr class="deep-level-0">
|
|
2119
2223
|
|
|
2120
|
-
<td class="name"
|
|
2224
|
+
<td class="name"><code>splitPolyline</code></td>
|
|
2121
2225
|
|
|
2122
2226
|
|
|
2123
2227
|
<td class="type">
|
|
2124
2228
|
|
|
2125
2229
|
|
|
2126
|
-
<span class="param-type">
|
|
2230
|
+
<span class="param-type">
|
|
2231
|
+
|
|
2232
|
+
Polyline
|
|
2233
|
+
|
|
2234
|
+
</span>
|
|
2127
2235
|
|
|
2128
2236
|
|
|
2129
2237
|
|
|
@@ -2212,7 +2320,11 @@ sketchEditor.start(SketchDataType.POLYGON)</code></pre>
|
|
|
2212
2320
|
<div class='column is-5 has-text-left'>
|
|
2213
2321
|
<label>类型: </label>
|
|
2214
2322
|
|
|
2215
|
-
<span class="param-type">
|
|
2323
|
+
<span class="param-type">
|
|
2324
|
+
|
|
2325
|
+
Array.<Polygon>
|
|
2326
|
+
|
|
2327
|
+
</span>
|
|
2216
2328
|
|
|
2217
2329
|
|
|
2218
2330
|
|
|
@@ -2324,13 +2436,17 @@ const newSketchEditors = SketchEditorMapboxgl.split(polygon,polyline)</code></pr
|
|
|
2324
2436
|
|
|
2325
2437
|
<tr class="deep-level-0">
|
|
2326
2438
|
|
|
2327
|
-
<td class="name"
|
|
2439
|
+
<td class="name"><code>dataType</code></td>
|
|
2328
2440
|
|
|
2329
2441
|
|
|
2330
2442
|
<td class="type">
|
|
2331
2443
|
|
|
2332
2444
|
|
|
2333
|
-
<span class="param-type">
|
|
2445
|
+
<span class="param-type">
|
|
2446
|
+
|
|
2447
|
+
SketchDataType
|
|
2448
|
+
|
|
2449
|
+
</span>
|
|
2334
2450
|
|
|
2335
2451
|
|
|
2336
2452
|
|
|
@@ -2500,13 +2616,17 @@ SketchEditorMapboxgl.start(SketchDataType.POLYGON) // 绘制区</code></pre>
|
|
|
2500
2616
|
|
|
2501
2617
|
<tr class="deep-level-0">
|
|
2502
2618
|
|
|
2503
|
-
<td class="name"
|
|
2619
|
+
<td class="name"><code>dataType</code></td>
|
|
2504
2620
|
|
|
2505
2621
|
|
|
2506
2622
|
<td class="type">
|
|
2507
2623
|
|
|
2508
2624
|
|
|
2509
|
-
<span class="param-type">
|
|
2625
|
+
<span class="param-type">
|
|
2626
|
+
|
|
2627
|
+
SketchDataType
|
|
2628
|
+
|
|
2629
|
+
</span>
|
|
2510
2630
|
|
|
2511
2631
|
|
|
2512
2632
|
|
|
@@ -2809,7 +2929,11 @@ sketchEditorMapboxgl.startCustomDrawTool(SketchEllipseDrawTool, "ellipse") //
|
|
|
2809
2929
|
<div class='column is-5 has-text-left'>
|
|
2810
2930
|
<label>类型: </label>
|
|
2811
2931
|
|
|
2812
|
-
<span class="param-type">
|
|
2932
|
+
<span class="param-type">
|
|
2933
|
+
|
|
2934
|
+
Geometry
|
|
2935
|
+
|
|
2936
|
+
</span>
|
|
2813
2937
|
|
|
2814
2938
|
|
|
2815
2939
|
|
|
@@ -2907,13 +3031,17 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
2907
3031
|
|
|
2908
3032
|
<tr class="deep-level-0">
|
|
2909
3033
|
|
|
2910
|
-
<td class="name"
|
|
3034
|
+
<td class="name"><code>polygons</code></td>
|
|
2911
3035
|
|
|
2912
3036
|
|
|
2913
3037
|
<td class="type">
|
|
2914
3038
|
|
|
2915
3039
|
|
|
2916
|
-
<span class="param-type">
|
|
3040
|
+
<span class="param-type">
|
|
3041
|
+
|
|
3042
|
+
Polygon
|
|
3043
|
+
|
|
3044
|
+
</span>
|
|
2917
3045
|
|
|
2918
3046
|
|
|
2919
3047
|
|
|
@@ -3002,7 +3130,11 @@ console.log("恢复后的几何对象" + geometry)</code></pre>
|
|
|
3002
3130
|
<div class='column is-5 has-text-left'>
|
|
3003
3131
|
<label>类型: </label>
|
|
3004
3132
|
|
|
3005
|
-
<span class="param-type">
|
|
3133
|
+
<span class="param-type">
|
|
3134
|
+
|
|
3135
|
+
Polygon
|
|
3136
|
+
|
|
3137
|
+
</span>
|
|
3006
3138
|
|
|
3007
3139
|
|
|
3008
3140
|
|
|
@@ -3120,13 +3252,17 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3120
3252
|
|
|
3121
3253
|
<tr class="deep-level-0">
|
|
3122
3254
|
|
|
3123
|
-
<td class="name"
|
|
3255
|
+
<td class="name"><code>point</code></td>
|
|
3124
3256
|
|
|
3125
3257
|
|
|
3126
3258
|
<td class="type">
|
|
3127
3259
|
|
|
3128
3260
|
|
|
3129
|
-
<span class="param-type">
|
|
3261
|
+
<span class="param-type">
|
|
3262
|
+
|
|
3263
|
+
Point
|
|
3264
|
+
|
|
3265
|
+
</span>
|
|
3130
3266
|
|
|
3131
3267
|
|
|
3132
3268
|
|
|
@@ -3145,13 +3281,17 @@ SketchEditorMapboxgl.union(polygons)</code></pre>
|
|
|
3145
3281
|
|
|
3146
3282
|
<tr class="deep-level-0">
|
|
3147
3283
|
|
|
3148
|
-
<td class="name"
|
|
3284
|
+
<td class="name"><code>index</code></td>
|
|
3149
3285
|
|
|
3150
3286
|
|
|
3151
3287
|
<td class="type">
|
|
3152
3288
|
|
|
3153
3289
|
|
|
3154
|
-
<span class="param-type">
|
|
3290
|
+
<span class="param-type">
|
|
3291
|
+
|
|
3292
|
+
Number
|
|
3293
|
+
|
|
3294
|
+
</span>
|
|
3155
3295
|
|
|
3156
3296
|
|
|
3157
3297
|
|