@mapgis/webclient-cesium-plugin 17.2.2 → 17.2.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.
Files changed (39) hide show
  1. package/README.md +17 -0
  2. package/dist/es5/webclient-cesium-plugin.min.js +3 -3
  3. package/dist/es5/webclient-common.min.js +3 -3
  4. package/dist/webclient-cesium-plugin-es6.min.js +3 -3
  5. package/documention/AlgorithmLib.html +7009 -0
  6. package/documention/AngulationTool.html +1068 -0
  7. package/documention/ArcGISMapServerImageryProvider.html +46 -3
  8. package/documention/ArcGISTileServerImageryProvider.html +43 -3
  9. package/documention/ArcGISVectorTileImageryProvider.html +6 -1
  10. package/documention/CesiumTerrainProvider.html +139 -0
  11. package/documention/CuttingTool.html +2910 -0
  12. package/documention/Deferred.html +139 -0
  13. package/documention/DrawElement.html +1643 -0
  14. package/documention/DrawTool.html +1275 -0
  15. package/documention/EditTool.html +1839 -0
  16. package/documention/FloodAnalysisReflection.html +1282 -0
  17. package/documention/Graphic.html +4789 -0
  18. package/documention/GraphicsLayer.html +5071 -0
  19. package/documention/MapGISTerrainProvider.html +16 -2
  20. package/documention/MapGISTileServerImageryProvider.html +39 -2
  21. package/documention/MeasureAreaTool.html +1182 -0
  22. package/documention/MeasureLengthTool.html +2306 -0
  23. package/documention/MeasureSlopeTool.html +1141 -0
  24. package/documention/ModelEditor.html +356 -0
  25. package/documention/PostProcessStageLibrary.html +1329 -0
  26. package/documention/Promise.html +980 -0
  27. package/documention/RiverGeometry.html +2659 -0
  28. package/documention/S3MTileset.html +34 -1
  29. package/documention/SelectTool.html +784 -0
  30. package/documention/ShadowRateAnalysis.html +1827 -0
  31. package/documention/ShadowRateDrawCommand.html +917 -0
  32. package/documention/Style.html +14203 -0
  33. package/documention/Tooltip.html +877 -0
  34. package/documention/TriangulationTool.html +1721 -0
  35. package/documention/VisiblityAnalysis.html +1998 -0
  36. package/documention/WaterReflection.html +1476 -0
  37. package/documention/WebMapServiceImageryProvider.html +45 -3
  38. package/documention/WebMapTileServiceImageryProvider.html +45 -3
  39. package/package.json +1 -1
@@ -0,0 +1,1643 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">DrawElement</span>
5
+
6
+ </header>
7
+
8
+
9
+
10
+
11
+
12
+ <section>
13
+
14
+ <article>
15
+ <div class="container-overview">
16
+
17
+
18
+ <div class='vertical-section'>
19
+ <div class="members">
20
+ <div class="member">
21
+
22
+
23
+
24
+
25
+ <h4 class="name" id="DrawElement">
26
+ <a class="href-link" href="#DrawElement">#</a>
27
+
28
+ <span class="code-name" id="DrawElement" style="font-size:30px">
29
+
30
+ new DrawElement<span class="signature">(viewer)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <h4>参数</h4>
47
+
48
+ <div class="table-container">
49
+ <table class="params table">
50
+ <thead>
51
+ <tr>
52
+
53
+ <th>名称</th>
54
+
55
+
56
+ <th>类型</th>
57
+
58
+
59
+
60
+ <th class="last">描述</th>
61
+ </tr>
62
+ </thead>
63
+
64
+ <tbody>
65
+
66
+
67
+
68
+ <tr class="deep-level-0">
69
+
70
+ <td class="name"><code>viewer</code></td>
71
+
72
+
73
+ <td class="type">
74
+
75
+
76
+ <span class="param-type">
77
+
78
+ Viewer
79
+
80
+ </span>
81
+
82
+
83
+
84
+
85
+ </td>
86
+
87
+
88
+
89
+ <td class="description last"><p>视图对象</p></td>
90
+ </tr>
91
+
92
+
93
+
94
+
95
+ </tbody>
96
+ </table>
97
+ </div>
98
+
99
+
100
+
101
+
102
+
103
+
104
+ <dl class="details">
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ </dl>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+ <h5>示例</h5>
161
+
162
+
163
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement();
164
+ // 修改绘制类型,支持,贴地,贴模型等参数设置</code></pre>
165
+
166
+
167
+
168
+
169
+ </div>
170
+ </div>
171
+ </div>
172
+
173
+
174
+ </div>
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+ <div class='vertical-section'>
192
+ <h3 id='function'>方法</h3>
193
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
194
+ <div class="members">
195
+ <div class="table-container">
196
+ <table class="params table">
197
+ <thead>
198
+ <tr>
199
+ <th>名称</th>
200
+ <th>返回值类型</th>
201
+ <th>描述</th>
202
+ </tr>
203
+ </thead>
204
+ <tbody>
205
+
206
+ <tr class="deep-level-0">
207
+ <td class="name"><code><a href="#destroy">destroy</a></code></td>
208
+ <td class="name">
209
+ <code>
210
+
211
+ </code>
212
+ </td>
213
+ <td class="name"><code><p>销毁对象</p></code></td>
214
+ </tr>
215
+
216
+ <tr class="deep-level-0">
217
+ <td class="name"><code><a href="#setGroundPrimitiveType">setGroundPrimitiveType</a></code></td>
218
+ <td class="name">
219
+ <code>
220
+
221
+ </code>
222
+ </td>
223
+ <td class="name"><code><p>修改自定义绘图时Primitive是否贴合地面或者贴合模型的属性</p></code></td>
224
+ </tr>
225
+
226
+ <tr class="deep-level-0">
227
+ <td class="name"><code><a href="#startDrawingCircle">startDrawingCircle</a></code></td>
228
+ <td class="name">
229
+ <code>
230
+
231
+ </code>
232
+ </td>
233
+ <td class="name"><code><p>绘制圆</p></code></td>
234
+ </tr>
235
+
236
+ <tr class="deep-level-0">
237
+ <td class="name"><code><a href="#startDrawingExtent">startDrawingExtent</a></code></td>
238
+ <td class="name">
239
+ <code>
240
+
241
+ </code>
242
+ </td>
243
+ <td class="name"><code><p>绘制矩形区功能</p></code></td>
244
+ </tr>
245
+
246
+ <tr class="deep-level-0">
247
+ <td class="name"><code><a href="#startDrawingMarker">startDrawingMarker</a></code></td>
248
+ <td class="name">
249
+ <code>
250
+
251
+ </code>
252
+ </td>
253
+ <td class="name"><code><p>绘制圆</p></code></td>
254
+ </tr>
255
+
256
+ <tr class="deep-level-0">
257
+ <td class="name"><code><a href="#startDrawingPolygon">startDrawingPolygon</a></code></td>
258
+ <td class="name">
259
+ <code>
260
+
261
+ </code>
262
+ </td>
263
+ <td class="name"><code><p>绘制多边形区功能</p></code></td>
264
+ </tr>
265
+
266
+ <tr class="deep-level-0">
267
+ <td class="name"><code><a href="#startDrawingPolyline">startDrawingPolyline</a></code></td>
268
+ <td class="name">
269
+ <code>
270
+
271
+ </code>
272
+ </td>
273
+ <td class="name"><code><p>绘制线功能</p></code></td>
274
+ </tr>
275
+
276
+ <tr class="deep-level-0">
277
+ <td class="name"><code><a href="#stopDrawing">stopDrawing</a></code></td>
278
+ <td class="name">
279
+ <code>
280
+
281
+ </code>
282
+ </td>
283
+ <td class="name"><code><p>停止绘制</p></code></td>
284
+ </tr>
285
+
286
+ </tbody>
287
+ </table>
288
+ </div>
289
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
290
+
291
+ <div class="member">
292
+
293
+
294
+
295
+ <h4 class="name" id="destroy">
296
+ <a class="href-link" href="#destroy">#</a>
297
+
298
+ <span class="code-name" id="destroy" style="font-size:30px">
299
+
300
+ destroy<span class="signature">()</span>
301
+
302
+ </span>
303
+ </h4>
304
+
305
+
306
+
307
+ <div class="description">
308
+ <p>销毁对象</p>
309
+ </div>
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+ <dl class="details">
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ </dl>
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+ </div>
381
+
382
+ <div class="member">
383
+
384
+
385
+
386
+ <h4 class="name" id="setGroundPrimitiveType">
387
+ <a class="href-link" href="#setGroundPrimitiveType">#</a>
388
+
389
+ <span class="code-name" id="setGroundPrimitiveType" style="font-size:30px">
390
+
391
+ setGroundPrimitiveType<span class="signature">(groundPrimitiveType<span class="signature-attributes">opt</span>)</span>
392
+
393
+ </span>
394
+ </h4>
395
+
396
+
397
+
398
+ <div class="description">
399
+ <p>修改自定义绘图时Primitive是否贴合地面或者贴合模型的属性</p>
400
+ </div>
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+ <h4>参数</h4>
412
+
413
+ <div class="table-container">
414
+ <table class="params table">
415
+ <thead>
416
+ <tr>
417
+
418
+ <th>名称</th>
419
+
420
+
421
+ <th>类型</th>
422
+
423
+
424
+ <th style="min-width: 100px;">默认值</th>
425
+
426
+
427
+ <th class="last">描述</th>
428
+ </tr>
429
+ </thead>
430
+
431
+ <tbody>
432
+
433
+
434
+
435
+ <tr class="deep-level-0">
436
+
437
+ <td class="name"><code>groundPrimitiveType</code></td>
438
+
439
+
440
+ <td class="type">
441
+
442
+
443
+ <span class="param-type">
444
+
445
+ String
446
+
447
+ </span>
448
+
449
+
450
+
451
+
452
+ </td>
453
+
454
+
455
+ <td class="default">
456
+
457
+ 'NONE'
458
+
459
+ </td>
460
+
461
+
462
+ <td class="description last"><p>{NONE, TERRAIN, MODEL, BOTH},NONE不贴地也不贴模型,TERRAIN仅贴地,MODEL仅贴模型,BOTH都贴</p></td>
463
+ </tr>
464
+
465
+
466
+
467
+
468
+ </tbody>
469
+ </table>
470
+ </div>
471
+
472
+
473
+
474
+
475
+
476
+
477
+ <dl class="details">
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+ </dl>
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+ <h5>示例</h5>
534
+
535
+
536
+ <pre class="prettyprint"><code>drawElement.setGroundPrimitiveType('TERRAIN');</code></pre>
537
+
538
+
539
+
540
+ </div>
541
+
542
+ <div class="member">
543
+
544
+
545
+
546
+ <h4 class="name" id="startDrawingCircle">
547
+ <a class="href-link" href="#startDrawingCircle">#</a>
548
+
549
+ <span class="code-name" id="startDrawingCircle" style="font-size:30px">
550
+
551
+ startDrawingCircle<span class="signature">(options)</span>
552
+
553
+ </span>
554
+ </h4>
555
+
556
+
557
+
558
+ <div class="description">
559
+ <p>绘制圆</p>
560
+ </div>
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+ <h4>参数</h4>
572
+
573
+ <div class="table-container">
574
+ <table class="params table">
575
+ <thead>
576
+ <tr>
577
+
578
+ <th>名称</th>
579
+
580
+
581
+ <th>类型</th>
582
+
583
+
584
+
585
+ <th class="last">描述</th>
586
+ </tr>
587
+ </thead>
588
+
589
+ <tbody>
590
+
591
+
592
+
593
+ <tr class="deep-level-0">
594
+
595
+ <td class="name"><code>options</code></td>
596
+
597
+
598
+ <td class="type">
599
+
600
+
601
+ <span class="param-type">
602
+
603
+ Object
604
+
605
+ </span>
606
+
607
+
608
+
609
+
610
+ </td>
611
+
612
+
613
+
614
+ <td class="description last"></td>
615
+ </tr>
616
+
617
+
618
+
619
+
620
+ <tr class="deep-level-1">
621
+
622
+ <td class="name"><code>callback</code></td>
623
+
624
+
625
+ <td class="type">
626
+
627
+
628
+ <span class="param-type">
629
+
630
+ function
631
+
632
+ </span>
633
+
634
+
635
+
636
+
637
+ </td>
638
+
639
+
640
+
641
+ <td class="description last"><p>回调函数,用于返回绘制的圆的中心点和半径</p></td>
642
+ </tr>
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+ </tbody>
651
+ </table>
652
+ </div>
653
+
654
+
655
+
656
+
657
+
658
+
659
+ <dl class="details">
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+ </dl>
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+ <h5>示例</h5>
716
+
717
+
718
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
719
+ drawElement.startDrawingCircle({
720
+ color: new Cesium.Color(0.2, 0.4, 0.3, 1.0),
721
+ callback: function (result) {
722
+ let circle = new Cesium.DrawElement.CirclePrimitive({
723
+ center: result.center,
724
+ radius: result.radius,
725
+ height: result.height,
726
+ asynchronous: false,
727
+ material: Cesium.Material.fromType('Color', {
728
+ color: new Cesium.Color(1.0, 0.0, 0.0, 1.0)
729
+ })
730
+ });
731
+ scene.primitives.add(circle);
732
+ circle.setEditable();
733
+ primitivesList.push(circle);
734
+ }
735
+ });</code></pre>
736
+
737
+
738
+
739
+ </div>
740
+
741
+ <div class="member">
742
+
743
+
744
+
745
+ <h4 class="name" id="startDrawingExtent">
746
+ <a class="href-link" href="#startDrawingExtent">#</a>
747
+
748
+ <span class="code-name" id="startDrawingExtent" style="font-size:30px">
749
+
750
+ startDrawingExtent<span class="signature">(options)</span>
751
+
752
+ </span>
753
+ </h4>
754
+
755
+
756
+
757
+ <div class="description">
758
+ <p>绘制矩形区功能</p>
759
+ </div>
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+ <h4>参数</h4>
771
+
772
+ <div class="table-container">
773
+ <table class="params table">
774
+ <thead>
775
+ <tr>
776
+
777
+ <th>名称</th>
778
+
779
+
780
+ <th>类型</th>
781
+
782
+
783
+
784
+ <th class="last">描述</th>
785
+ </tr>
786
+ </thead>
787
+
788
+ <tbody>
789
+
790
+
791
+
792
+ <tr class="deep-level-0">
793
+
794
+ <td class="name"><code>options</code></td>
795
+
796
+
797
+ <td class="type">
798
+
799
+
800
+ <span class="param-type">
801
+
802
+ Object
803
+
804
+ </span>
805
+
806
+
807
+
808
+
809
+ </td>
810
+
811
+
812
+
813
+ <td class="description last"></td>
814
+ </tr>
815
+
816
+
817
+
818
+
819
+ <tr class="deep-level-1">
820
+
821
+ <td class="name"><code>callback</code></td>
822
+
823
+
824
+ <td class="type">
825
+
826
+
827
+ <span class="param-type">
828
+
829
+ function
830
+
831
+ </span>
832
+
833
+
834
+
835
+
836
+ </td>
837
+
838
+
839
+
840
+ <td class="description last"><p>回调函数,用于返回绘制的矩形的点</p></td>
841
+ </tr>
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+ </tbody>
850
+ </table>
851
+ </div>
852
+
853
+
854
+
855
+
856
+
857
+
858
+ <dl class="details">
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+ </dl>
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+ <h5>示例</h5>
915
+
916
+
917
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
918
+ drawElement.startDrawingExtent({
919
+ color: new Cesium.Color(0.3, 0.8, 0.7),
920
+ callback: function (result) {
921
+ let redRectangle = new Cesium.DrawElement.ExtentPrimitive({
922
+ extent: result.extent,
923
+ height: result.height,
924
+ material: Cesium.Material.fromType('Color', {
925
+ color: new Cesium.Color(1.0, 0.0, 0.0, 1.0)
926
+ })
927
+ });
928
+ scene.primitives.add(redRectangle);
929
+ redRectangle.setEditable();
930
+ primitivesList.push(redRectangle);
931
+ }
932
+ });</code></pre>
933
+
934
+
935
+
936
+ </div>
937
+
938
+ <div class="member">
939
+
940
+
941
+
942
+ <h4 class="name" id="startDrawingMarker">
943
+ <a class="href-link" href="#startDrawingMarker">#</a>
944
+
945
+ <span class="code-name" id="startDrawingMarker" style="font-size:30px">
946
+
947
+ startDrawingMarker<span class="signature">(options)</span>
948
+
949
+ </span>
950
+ </h4>
951
+
952
+
953
+
954
+ <div class="description">
955
+ <p>绘制圆</p>
956
+ </div>
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+
966
+
967
+ <h4>参数</h4>
968
+
969
+ <div class="table-container">
970
+ <table class="params table">
971
+ <thead>
972
+ <tr>
973
+
974
+ <th>名称</th>
975
+
976
+
977
+ <th>类型</th>
978
+
979
+
980
+
981
+ <th class="last">描述</th>
982
+ </tr>
983
+ </thead>
984
+
985
+ <tbody>
986
+
987
+
988
+
989
+ <tr class="deep-level-0">
990
+
991
+ <td class="name"><code>options</code></td>
992
+
993
+
994
+ <td class="type">
995
+
996
+
997
+ <span class="param-type">
998
+
999
+ Object
1000
+
1001
+ </span>
1002
+
1003
+
1004
+
1005
+
1006
+ </td>
1007
+
1008
+
1009
+
1010
+ <td class="description last"></td>
1011
+ </tr>
1012
+
1013
+
1014
+
1015
+
1016
+ <tr class="deep-level-1">
1017
+
1018
+ <td class="name"><code>callback</code></td>
1019
+
1020
+
1021
+ <td class="type">
1022
+
1023
+
1024
+ <span class="param-type">
1025
+
1026
+ function
1027
+
1028
+ </span>
1029
+
1030
+
1031
+
1032
+
1033
+ </td>
1034
+
1035
+
1036
+
1037
+ <td class="description last"><p>回调函数,用于返回绘制的圆的中心点和半径</p></td>
1038
+ </tr>
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+ </tbody>
1047
+ </table>
1048
+ </div>
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+
1055
+ <dl class="details">
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+ </dl>
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+ <h5>示例</h5>
1112
+
1113
+
1114
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1115
+ drawElement.startDrawingMarker({
1116
+ addDefaultMark: true,
1117
+ color: new Cesium.Color(0.5, 0.2, 0.8, 1.0),
1118
+ callback: function (result) {}
1119
+ });
1120
+
1121
+ drawElement.startDrawingMarker({
1122
+ addDefaultMark: false,
1123
+ color: new Cesium.Color(0.5, 0.2, 0.8, 1.0),
1124
+ callback: function (result) {
1125
+ let pointGeometry = viewer.entities.add({
1126
+ position: result.position,
1127
+ point: {
1128
+ color: Cesium.Color.SKYBLUE,
1129
+ pixelSize: 10,
1130
+ outlineColor: Cesium.Color.YELLOW,
1131
+ outlineWidth: 3,
1132
+ disableDepthTestDistance: Number.POSITIVE_INFINITY
1133
+ }
1134
+ });
1135
+ }
1136
+ });</code></pre>
1137
+
1138
+
1139
+
1140
+ </div>
1141
+
1142
+ <div class="member">
1143
+
1144
+
1145
+
1146
+ <h4 class="name" id="startDrawingPolygon">
1147
+ <a class="href-link" href="#startDrawingPolygon">#</a>
1148
+
1149
+ <span class="code-name" id="startDrawingPolygon" style="font-size:30px">
1150
+
1151
+ startDrawingPolygon<span class="signature">(options)</span>
1152
+
1153
+ </span>
1154
+ </h4>
1155
+
1156
+
1157
+
1158
+ <div class="description">
1159
+ <p>绘制多边形区功能</p>
1160
+ </div>
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+ <h4>参数</h4>
1172
+
1173
+ <div class="table-container">
1174
+ <table class="params table">
1175
+ <thead>
1176
+ <tr>
1177
+
1178
+ <th>名称</th>
1179
+
1180
+
1181
+ <th>类型</th>
1182
+
1183
+
1184
+
1185
+ <th class="last">描述</th>
1186
+ </tr>
1187
+ </thead>
1188
+
1189
+ <tbody>
1190
+
1191
+
1192
+
1193
+ <tr class="deep-level-0">
1194
+
1195
+ <td class="name"><code>options</code></td>
1196
+
1197
+
1198
+ <td class="type">
1199
+
1200
+
1201
+ <span class="param-type">
1202
+
1203
+ Object
1204
+
1205
+ </span>
1206
+
1207
+
1208
+
1209
+
1210
+ </td>
1211
+
1212
+
1213
+
1214
+ <td class="description last"></td>
1215
+ </tr>
1216
+
1217
+
1218
+
1219
+
1220
+ <tr class="deep-level-1">
1221
+
1222
+ <td class="name"><code>callback</code></td>
1223
+
1224
+
1225
+ <td class="type">
1226
+
1227
+
1228
+ <span class="param-type">
1229
+
1230
+ function
1231
+
1232
+ </span>
1233
+
1234
+
1235
+
1236
+
1237
+ </td>
1238
+
1239
+
1240
+
1241
+ <td class="description last"><p>回调函数,用于返回绘制多边形的点</p></td>
1242
+ </tr>
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+ </tbody>
1251
+ </table>
1252
+ </div>
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+ <dl class="details">
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+
1267
+
1268
+
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+
1287
+
1288
+
1289
+
1290
+
1291
+ </dl>
1292
+
1293
+
1294
+
1295
+
1296
+
1297
+
1298
+
1299
+
1300
+
1301
+
1302
+
1303
+
1304
+
1305
+
1306
+
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+ <h5>示例</h5>
1316
+
1317
+
1318
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1319
+ drawElement.startDrawingPolygon({
1320
+ color: new Cesium.Color(0.5, 0.8, 0.3),
1321
+ callback: function (result) {
1322
+ //alert(position);
1323
+ let polygon = new Cesium.DrawElement.PolygonPrimitive({
1324
+ positions: result.positions,
1325
+ //material: Cesium.Material.fromType('Checkerboard') //materialEnd
1326
+ material: Cesium.Material.fromType('Color', {
1327
+ color: new Cesium.Color(1.0, 0.0, 0.0, 1.0)
1328
+ })
1329
+ });
1330
+ scene.primitives.add(polygon);
1331
+ polygon.setEditable();
1332
+ primitivesList.push(polygon);
1333
+ }
1334
+ });</code></pre>
1335
+
1336
+
1337
+
1338
+ </div>
1339
+
1340
+ <div class="member">
1341
+
1342
+
1343
+
1344
+ <h4 class="name" id="startDrawingPolyline">
1345
+ <a class="href-link" href="#startDrawingPolyline">#</a>
1346
+
1347
+ <span class="code-name" id="startDrawingPolyline" style="font-size:30px">
1348
+
1349
+ startDrawingPolyline<span class="signature">(options)</span>
1350
+
1351
+ </span>
1352
+ </h4>
1353
+
1354
+
1355
+
1356
+ <div class="description">
1357
+ <p>绘制线功能</p>
1358
+ </div>
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+ <h4>参数</h4>
1370
+
1371
+ <div class="table-container">
1372
+ <table class="params table">
1373
+ <thead>
1374
+ <tr>
1375
+
1376
+ <th>名称</th>
1377
+
1378
+
1379
+ <th>类型</th>
1380
+
1381
+
1382
+
1383
+ <th class="last">描述</th>
1384
+ </tr>
1385
+ </thead>
1386
+
1387
+ <tbody>
1388
+
1389
+
1390
+
1391
+ <tr class="deep-level-0">
1392
+
1393
+ <td class="name"><code>options</code></td>
1394
+
1395
+
1396
+ <td class="type">
1397
+
1398
+
1399
+ <span class="param-type">
1400
+
1401
+ Object
1402
+
1403
+ </span>
1404
+
1405
+
1406
+
1407
+
1408
+ </td>
1409
+
1410
+
1411
+
1412
+ <td class="description last"></td>
1413
+ </tr>
1414
+
1415
+
1416
+
1417
+
1418
+ <tr class="deep-level-1">
1419
+
1420
+ <td class="name"><code>callback</code></td>
1421
+
1422
+
1423
+ <td class="type">
1424
+
1425
+
1426
+ <span class="param-type">
1427
+
1428
+ function
1429
+
1430
+ </span>
1431
+
1432
+
1433
+
1434
+
1435
+ </td>
1436
+
1437
+
1438
+
1439
+ <td class="description last"><p>回调函数,用于返回绘制的线的点</p></td>
1440
+ </tr>
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+ </tbody>
1449
+ </table>
1450
+ </div>
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+ <dl class="details">
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+ </dl>
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+
1499
+
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+
1511
+
1512
+
1513
+ <h5>示例</h5>
1514
+
1515
+
1516
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1517
+ drawElement.startDrawingPolyline({
1518
+ color: new Cesium.Color(0.3, 0.7, 0.8, 1.0),
1519
+ callback: function (result) {
1520
+ let polyline = new Cesium.DrawElement.PolylinePrimitive({
1521
+ positions: result.positions,
1522
+ width: 1,
1523
+ geodesic: true
1524
+ });
1525
+ scene.primitives.add(polyline);
1526
+ polyline.setEditable();
1527
+ primitivesList.push(polyline);
1528
+ }
1529
+ });</code></pre>
1530
+
1531
+
1532
+
1533
+ </div>
1534
+
1535
+ <div class="member">
1536
+
1537
+
1538
+
1539
+ <h4 class="name" id="stopDrawing">
1540
+ <a class="href-link" href="#stopDrawing">#</a>
1541
+
1542
+ <span class="code-name" id="stopDrawing" style="font-size:30px">
1543
+
1544
+ stopDrawing<span class="signature">()</span>
1545
+
1546
+ </span>
1547
+ </h4>
1548
+
1549
+
1550
+
1551
+ <div class="description">
1552
+ <p>停止绘制</p>
1553
+ </div>
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+ <dl class="details">
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+
1577
+
1578
+
1579
+
1580
+
1581
+
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+
1600
+ </dl>
1601
+
1602
+
1603
+
1604
+
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+
1611
+
1612
+
1613
+
1614
+
1615
+
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+
1623
+
1624
+ <h5>示例</h5>
1625
+
1626
+
1627
+ <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1628
+ drawElement.stopDrawing();</code></pre>
1629
+
1630
+
1631
+
1632
+ </div>
1633
+
1634
+ </div>
1635
+ </div>
1636
+
1637
+
1638
+
1639
+
1640
+
1641
+ </article>
1642
+
1643
+ </section>