@mapgis/webclient-cesium-plugin 17.2.4 → 17.2.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.
@@ -0,0 +1,1053 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">TerrainProfile</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="TerrainProfile">
26
+ <a class="href-link" href="#TerrainProfile">#</a>
27
+
28
+ <span class="code-name" id="TerrainProfile" style="font-size:30px">
29
+
30
+ new TerrainProfile<span class="signature">(viewer, options<span class="signature-attributes">opt</span>)</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
+ <th style="min-width: 100px;">默认值</th>
60
+
61
+
62
+ <th class="last">描述</th>
63
+ </tr>
64
+ </thead>
65
+
66
+ <tbody>
67
+
68
+
69
+
70
+ <tr class="deep-level-0">
71
+
72
+ <td class="name"><code>viewer</code></td>
73
+
74
+
75
+ <td class="type">
76
+
77
+
78
+ <span class="param-type">
79
+
80
+ Viewer
81
+
82
+ </span>
83
+
84
+
85
+
86
+
87
+ </td>
88
+
89
+
90
+ <td class="default">
91
+
92
+ </td>
93
+
94
+
95
+ <td class="description last"><p>场景视图对象</p></td>
96
+ </tr>
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <tr class="deep-level-0">
104
+
105
+ <td class="name"><code>options</code></td>
106
+
107
+
108
+ <td class="type">
109
+
110
+
111
+ <span class="param-type">
112
+
113
+ Object
114
+
115
+ </span>
116
+
117
+
118
+
119
+
120
+ </td>
121
+
122
+
123
+ <td class="default">
124
+
125
+ </td>
126
+
127
+
128
+ <td class="description last"><p>包含以下属性的对象</p></td>
129
+ </tr>
130
+
131
+
132
+
133
+
134
+ <tr class="deep-level-1">
135
+
136
+ <td class="name"><code>echart</code></td>
137
+
138
+
139
+ <td class="type">
140
+
141
+
142
+ <span class="param-type">
143
+
144
+ Object
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+ </td>
152
+
153
+
154
+ <td class="default">
155
+
156
+ </td>
157
+
158
+
159
+ <td class="description last"><p>echart图表对象,如果resultShowType设置为1和2,则这个值必须传入</p></td>
160
+ </tr>
161
+
162
+
163
+
164
+
165
+ <tr class="deep-level-1">
166
+
167
+ <td class="name"><code>polygonColor</code></td>
168
+
169
+
170
+ <td class="type">
171
+
172
+
173
+ <span class="param-type">
174
+
175
+ Cesium.Color
176
+
177
+ </span>
178
+
179
+
180
+
181
+
182
+ </td>
183
+
184
+
185
+ <td class="default">
186
+
187
+ Cesium.Color.BLUE.withAlpha(0.5)
188
+
189
+ </td>
190
+
191
+
192
+ <td class="description last"><p>垂直面颜色</p></td>
193
+ </tr>
194
+
195
+
196
+
197
+
198
+ <tr class="deep-level-1">
199
+
200
+ <td class="name"><code>polygonHeight</code></td>
201
+
202
+
203
+ <td class="type">
204
+
205
+
206
+ <span class="param-type">
207
+
208
+ Number
209
+
210
+ </span>
211
+
212
+
213
+
214
+
215
+ </td>
216
+
217
+
218
+ <td class="default">
219
+
220
+ 50
221
+
222
+ </td>
223
+
224
+
225
+ <td class="description last"><p>垂直面高度,相较于最大地形高程</p></td>
226
+ </tr>
227
+
228
+
229
+
230
+
231
+ <tr class="deep-level-1">
232
+
233
+ <td class="name"><code>polyLineColor</code></td>
234
+
235
+
236
+ <td class="type">
237
+
238
+
239
+ <span class="param-type">
240
+
241
+ Cesium.Color
242
+
243
+ </span>
244
+
245
+
246
+
247
+
248
+ </td>
249
+
250
+
251
+ <td class="default">
252
+
253
+ Cesium.Color.RED.withAlpha(1)
254
+
255
+ </td>
256
+
257
+
258
+ <td class="description last"><p>垂直线颜色</p></td>
259
+ </tr>
260
+
261
+
262
+
263
+
264
+ <tr class="deep-level-1">
265
+
266
+ <td class="name"><code>polylineGroundColor</code></td>
267
+
268
+
269
+ <td class="type">
270
+
271
+
272
+ <span class="param-type">
273
+
274
+ Cesium.Color
275
+
276
+ </span>
277
+
278
+
279
+
280
+
281
+ </td>
282
+
283
+
284
+ <td class="default">
285
+
286
+ Cesium.Color.RED.withAlpha(1)
287
+
288
+ </td>
289
+
290
+
291
+ <td class="description last"><p>贴地线颜色</p></td>
292
+ </tr>
293
+
294
+
295
+
296
+
297
+ <tr class="deep-level-1">
298
+
299
+ <td class="name"><code>pointColor</code></td>
300
+
301
+
302
+ <td class="type">
303
+
304
+
305
+ <span class="param-type">
306
+
307
+ Cesium.Color
308
+
309
+ </span>
310
+
311
+
312
+
313
+
314
+ </td>
315
+
316
+
317
+ <td class="default">
318
+
319
+ Cesium.Color.RED.withAlpha(1)
320
+
321
+ </td>
322
+
323
+
324
+ <td class="description last"><p>贴地点颜色</p></td>
325
+ </tr>
326
+
327
+
328
+
329
+
330
+ <tr class="deep-level-1">
331
+
332
+ <td class="name"><code>samplePrecision</code></td>
333
+
334
+
335
+ <td class="type">
336
+
337
+
338
+ <span class="param-type">
339
+
340
+ Number
341
+
342
+ </span>
343
+
344
+
345
+
346
+
347
+ </td>
348
+
349
+
350
+ <td class="default">
351
+
352
+ 1
353
+
354
+ </td>
355
+
356
+
357
+ <td class="description last"><p>采样精度</p></td>
358
+ </tr>
359
+
360
+
361
+
362
+
363
+ <tr class="deep-level-1">
364
+
365
+ <td class="name"><code>showPolygon</code></td>
366
+
367
+
368
+ <td class="type">
369
+
370
+
371
+ <span class="param-type">
372
+
373
+ Boolean
374
+
375
+ </span>
376
+
377
+
378
+
379
+
380
+ </td>
381
+
382
+
383
+ <td class="default">
384
+
385
+ true
386
+
387
+ </td>
388
+
389
+
390
+ <td class="description last"><p>是否显示垂直面</p></td>
391
+ </tr>
392
+
393
+
394
+
395
+
396
+ <tr class="deep-level-1">
397
+
398
+ <td class="name"><code>profileType</code></td>
399
+
400
+
401
+ <td class="type">
402
+
403
+
404
+ <span class="param-type">
405
+
406
+ Number
407
+
408
+ </span>
409
+
410
+
411
+
412
+
413
+ </td>
414
+
415
+
416
+ <td class="default">
417
+
418
+ 0
419
+
420
+ </td>
421
+
422
+
423
+ <td class="description last"><p>分析类型.0代表地形,1代表地形和模型兼容</p></td>
424
+ </tr>
425
+
426
+
427
+
428
+
429
+ <tr class="deep-level-1">
430
+
431
+ <td class="name"><code>sampleLever</code></td>
432
+
433
+
434
+ <td class="type">
435
+
436
+
437
+ <span class="param-type">
438
+
439
+ Number
440
+
441
+ </span>
442
+
443
+
444
+
445
+
446
+ </td>
447
+
448
+
449
+ <td class="default">
450
+
451
+ 0
452
+
453
+ </td>
454
+
455
+
456
+ <td class="description last"><p>地形采样级别.0代表采最精细级别,1-20为自定义采样级别,数值越大,越精细</p></td>
457
+ </tr>
458
+
459
+
460
+
461
+
462
+ <tr class="deep-level-1">
463
+
464
+ <td class="name"><code>sampleSceneMostDetail</code></td>
465
+
466
+
467
+ <td class="type">
468
+
469
+
470
+ <span class="param-type">
471
+
472
+ Boolean
473
+
474
+ </span>
475
+
476
+
477
+
478
+
479
+ </td>
480
+
481
+
482
+ <td class="default">
483
+
484
+ false
485
+
486
+ </td>
487
+
488
+
489
+ <td class="description last"><p>是否对场景进行最精细的高程采样,默认为false,仅对当前场景深度进行采样,当值为true时,要求采样区域的模型缓存的叶子结点的数据不能全为空</p></td>
490
+ </tr>
491
+
492
+
493
+
494
+
495
+ <tr class="deep-level-1">
496
+
497
+ <td class="name"><code>resultShowType</code></td>
498
+
499
+
500
+ <td class="type">
501
+
502
+
503
+ <span class="param-type">
504
+
505
+ Number
506
+
507
+ </span>
508
+
509
+
510
+
511
+
512
+ </td>
513
+
514
+
515
+ <td class="default">
516
+
517
+ 2
518
+
519
+ </td>
520
+
521
+
522
+ <td class="description last"><p>结果展示形式.0代表仅场景中展示结果(直接在地形上绘制结果),1表示仅echart图表中展示结果,2表示场景和图表都展示结果</p></td>
523
+ </tr>
524
+
525
+
526
+
527
+
528
+ <tr class="deep-level-1">
529
+
530
+ <td class="name"><code>positions</code></td>
531
+
532
+
533
+ <td class="type">
534
+
535
+
536
+ <span class="param-type">
537
+
538
+ Array
539
+
540
+ </span>
541
+
542
+
543
+
544
+
545
+ </td>
546
+
547
+
548
+ <td class="default">
549
+
550
+ </td>
551
+
552
+
553
+ <td class="description last"><p>可选,Cartesian3数组,需要分析的坐标点集,数组内至少要有两个点.如果未传入positions,则接口内部调用绘制的接口,进行绘制获取点集</p></td>
554
+ </tr>
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+ </tbody>
563
+ </table>
564
+ </div>
565
+
566
+
567
+
568
+
569
+
570
+
571
+ <dl class="details">
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+ </dl>
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+ <h5>示例</h5>
628
+
629
+
630
+ <pre class="prettyprint"><code>var webGlobe = new Cesium.WebSceneControl('cesiumContainer', {});
631
+ var viewer = webGlobe.viewer;
632
+ if(!Cesium.Cesium.defined(terrainProfile)){
633
+ terrainProfile = new Cesium.TerrainProfile(viewer,{polygonColor:Cesium.Cesium.Color.RED.withAlpha(0.5),polygonHeight:0,polyLineColor:Cesium.Cesium.Color.BLUE.withAlpha(1)});
634
+ }
635
+ terrainProfile.profile();
636
+ }</code></pre>
637
+
638
+
639
+
640
+
641
+ </div>
642
+ </div>
643
+ </div>
644
+
645
+
646
+ </div>
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+ <div class='vertical-section'>
664
+ <h3 id='function'>方法</h3>
665
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
666
+ <div class="members">
667
+ <div class="table-container">
668
+ <table class="params table">
669
+ <thead>
670
+ <tr>
671
+ <th>名称</th>
672
+ <th>返回值类型</th>
673
+ <th>描述</th>
674
+ </tr>
675
+ </thead>
676
+ <tbody>
677
+
678
+ <tr class="deep-level-0">
679
+ <td class="name"><code><a href="#destroy">destroy</a></code></td>
680
+ <td class="name">
681
+ <code>
682
+
683
+ </code>
684
+ </td>
685
+ <td class="name"><code><p>结束剖面分析,清除场景对象</p></code></td>
686
+ </tr>
687
+
688
+ <tr class="deep-level-0">
689
+ <td class="name"><code><a href="#profile">profile</a></code></td>
690
+ <td class="name">
691
+ <code>
692
+
693
+ </code>
694
+ </td>
695
+ <td class="name"><code><p>开启地形剖切功能接口,左键画线,右键停止</p></code></td>
696
+ </tr>
697
+
698
+ <tr class="deep-level-0">
699
+ <td class="name"><code><a href="#stopDrawing">stopDrawing</a></code></td>
700
+ <td class="name">
701
+ <code>
702
+
703
+ </code>
704
+ </td>
705
+ <td class="name"><code><p>停止绘制
706
+ 解决绘制一半后需要停止绘制问题
707
+ wanghan 20231010</p></code></td>
708
+ </tr>
709
+
710
+ </tbody>
711
+ </table>
712
+ </div>
713
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
714
+
715
+ <div class="member">
716
+
717
+
718
+
719
+ <h4 class="name" id="destroy">
720
+ <a class="href-link" href="#destroy">#</a>
721
+
722
+ <span class="code-name" id="destroy" style="font-size:30px">
723
+
724
+ destroy<span class="signature">()</span>
725
+
726
+ </span>
727
+ </h4>
728
+
729
+
730
+
731
+ <div class="description">
732
+ <p>结束剖面分析,清除场景对象</p>
733
+ </div>
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+ <dl class="details">
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+ </dl>
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+ </div>
805
+
806
+ <div class="member">
807
+
808
+
809
+
810
+ <h4 class="name" id="profile">
811
+ <a class="href-link" href="#profile">#</a>
812
+
813
+ <span class="code-name" id="profile" style="font-size:30px">
814
+
815
+ profile<span class="signature">(callback)</span>
816
+
817
+ </span>
818
+ </h4>
819
+
820
+
821
+
822
+ <div class="description">
823
+ <p>开启地形剖切功能接口,左键画线,右键停止</p>
824
+ </div>
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+ <h4>参数</h4>
836
+
837
+ <div class="table-container">
838
+ <table class="params table">
839
+ <thead>
840
+ <tr>
841
+
842
+ <th>名称</th>
843
+
844
+
845
+ <th>类型</th>
846
+
847
+
848
+
849
+ <th class="last">描述</th>
850
+ </tr>
851
+ </thead>
852
+
853
+ <tbody>
854
+
855
+
856
+
857
+ <tr class="deep-level-0">
858
+
859
+ <td class="name"><code>callback</code></td>
860
+
861
+
862
+ <td class="type">
863
+
864
+
865
+ <span class="param-type">
866
+
867
+ function
868
+
869
+ </span>
870
+
871
+
872
+
873
+
874
+ </td>
875
+
876
+
877
+
878
+ <td class="description last"><p>执行成功返回回调函数</p></td>
879
+ </tr>
880
+
881
+
882
+
883
+
884
+ </tbody>
885
+ </table>
886
+ </div>
887
+
888
+
889
+
890
+
891
+
892
+
893
+ <dl class="details">
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+ </dl>
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+ </div>
950
+
951
+ <div class="member">
952
+
953
+
954
+
955
+ <h4 class="name" id="stopDrawing">
956
+ <a class="href-link" href="#stopDrawing">#</a>
957
+
958
+ <span class="code-name" id="stopDrawing" style="font-size:30px">
959
+
960
+ stopDrawing<span class="signature">()</span>
961
+
962
+ </span>
963
+ </h4>
964
+
965
+
966
+
967
+ <div class="description">
968
+ <p>停止绘制
969
+ 解决绘制一半后需要停止绘制问题
970
+ wanghan 20231010</p>
971
+ </div>
972
+
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+
981
+
982
+
983
+
984
+
985
+
986
+ <dl class="details">
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+ </dl>
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+ </div>
1043
+
1044
+ </div>
1045
+ </div>
1046
+
1047
+
1048
+
1049
+
1050
+
1051
+ </article>
1052
+
1053
+ </section>