@mapgis/webclient-cesium-plugin 17.2.4 → 17.2.5

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,811 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">HeightLimited</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="HeightLimited">
26
+ <a class="href-link" href="#HeightLimited">#</a>
27
+
28
+ <span class="code-name" id="HeightLimited" style="font-size:30px">
29
+
30
+ new HeightLimited<span class="signature">(viewer<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span>
31
+
32
+ </span>
33
+ </h4>
34
+
35
+
36
+
37
+ <div class="description">
38
+ <p>限高分析</p>
39
+ </div>
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+ <h4>参数</h4>
51
+
52
+ <div class="table-container">
53
+ <table class="params table">
54
+ <thead>
55
+ <tr>
56
+
57
+ <th>名称</th>
58
+
59
+
60
+ <th>类型</th>
61
+
62
+
63
+ <th style="min-width: 100px;">默认值</th>
64
+
65
+
66
+ <th class="last">描述</th>
67
+ </tr>
68
+ </thead>
69
+
70
+ <tbody>
71
+
72
+
73
+
74
+ <tr class="deep-level-0">
75
+
76
+ <td class="name"><code>viewer</code></td>
77
+
78
+
79
+ <td class="type">
80
+
81
+
82
+ <span class="param-type">
83
+
84
+ <a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
85
+
86
+ </span>
87
+
88
+
89
+
90
+
91
+ </td>
92
+
93
+
94
+ <td class="default">
95
+
96
+ null
97
+
98
+ </td>
99
+
100
+
101
+ <td class="description last"><p>场景视图</p></td>
102
+ </tr>
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <tr class="deep-level-0">
110
+
111
+ <td class="name"><code>options</code></td>
112
+
113
+
114
+ <td class="type">
115
+
116
+
117
+ <span class="param-type">
118
+
119
+ Object
120
+
121
+ </span>
122
+
123
+
124
+
125
+
126
+ </td>
127
+
128
+
129
+ <td class="default">
130
+
131
+ {}
132
+
133
+ </td>
134
+
135
+
136
+ <td class="description last"><p>额外初始化参数</p></td>
137
+ </tr>
138
+
139
+
140
+
141
+
142
+ <tr class="deep-level-1">
143
+
144
+ <td class="name"><code>posArray</code></td>
145
+
146
+
147
+ <td class="type">
148
+
149
+
150
+ <span class="param-type">
151
+
152
+ Number
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+ </td>
160
+
161
+
162
+ <td class="default">
163
+
164
+ null
165
+
166
+ </td>
167
+
168
+
169
+ <td class="description last"><p>执行限高分析边界,坐标为经纬度坐标,点个数大于2</p></td>
170
+ </tr>
171
+
172
+
173
+
174
+
175
+ <tr class="deep-level-1">
176
+
177
+ <td class="name"><code>limitedColor</code></td>
178
+
179
+
180
+ <td class="type">
181
+
182
+
183
+ <span class="param-type">
184
+
185
+ Cesium.Color
186
+
187
+ </span>
188
+
189
+
190
+
191
+
192
+ </td>
193
+
194
+
195
+ <td class="default">
196
+
197
+ Cesium.Color.RED.withAlpha(0.7)
198
+
199
+ </td>
200
+
201
+
202
+ <td class="description last"><p>限高区域颜色</p></td>
203
+ </tr>
204
+
205
+
206
+
207
+
208
+ <tr class="deep-level-1">
209
+
210
+ <td class="name"><code>polygonColor</code></td>
211
+
212
+
213
+ <td class="type">
214
+
215
+
216
+ <span class="param-type">
217
+
218
+ Cesium.Color
219
+
220
+ </span>
221
+
222
+
223
+
224
+
225
+ </td>
226
+
227
+
228
+ <td class="default">
229
+
230
+ Cesium.Color.WHITE.withAlpha(0.7)
231
+
232
+ </td>
233
+
234
+
235
+ <td class="description last"><p>限高区域辅助面颜色</p></td>
236
+ </tr>
237
+
238
+
239
+
240
+
241
+ <tr class="deep-level-1">
242
+
243
+ <td class="name"><code>useOutLine</code></td>
244
+
245
+
246
+ <td class="type">
247
+
248
+
249
+ <span class="param-type">
250
+
251
+ Boolean
252
+
253
+ </span>
254
+
255
+
256
+
257
+
258
+ </td>
259
+
260
+
261
+ <td class="default">
262
+
263
+ true
264
+
265
+ </td>
266
+
267
+
268
+ <td class="description last"><p>限高区域辅助面外边线</p></td>
269
+ </tr>
270
+
271
+
272
+
273
+
274
+ <tr class="deep-level-1">
275
+
276
+ <td class="name"><code>height</code></td>
277
+
278
+
279
+ <td class="type">
280
+
281
+
282
+ <span class="param-type">
283
+
284
+ Number
285
+
286
+ </span>
287
+
288
+
289
+
290
+
291
+ </td>
292
+
293
+
294
+ <td class="default">
295
+
296
+ 10
297
+
298
+ </td>
299
+
300
+
301
+ <td class="description last"><p>限高高度</p></td>
302
+ </tr>
303
+
304
+
305
+
306
+
307
+ <tr class="deep-level-1">
308
+
309
+ <td class="name"><code>blendTransparency</code></td>
310
+
311
+
312
+ <td class="type">
313
+
314
+
315
+ <span class="param-type">
316
+
317
+ Number
318
+
319
+ </span>
320
+
321
+
322
+
323
+
324
+ </td>
325
+
326
+
327
+ <td class="default">
328
+
329
+ 0.8
330
+
331
+ </td>
332
+
333
+
334
+ <td class="description last"><p>限高颜色混合比例0-1</p></td>
335
+ </tr>
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ </tbody>
344
+ </table>
345
+ </div>
346
+
347
+
348
+
349
+
350
+
351
+
352
+ <dl class="details">
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+ </dl>
385
+
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+ <h5>示例</h5>
409
+
410
+ <p class="code-caption"><h7>限高分析</h7></p>
411
+
412
+
413
+ <pre class="prettyprint"><code>// 参考示例:
414
+ http://192.168.82.91:8086/#/modules/cesium/analyse/commonAnalyse/height-limited
415
+
416
+ // ES5引入方式
417
+ const { HeightLimited } = zondy.cesium
418
+ // ES6引入方式
419
+ import { HeightLimited } from "@mapgis/webclient-cesium-plugin"
420
+
421
+ // 1 构建限高分析工具
422
+ const heightLimitedTool = new HeightLimited(viewer, {
423
+ // 控高面的点坐标数组,笛卡尔3坐标
424
+ posArray: [],
425
+ // 限高高度
426
+ height: 100,
427
+ // 超过高度后的颜色
428
+ limitedColor: Cesium.Color.fromCssColorString('#ff0000').withAlpha(0.5),
429
+ // 限高面的颜色
430
+ polygonColor: Cesium.Color.fromCssColorString('#ffff00').withAlpha(0.5),
431
+ // 限高颜色混合比例
432
+ blendTransparency: 0.8
433
+ })
434
+ // 2 执行限高分析
435
+ heightLimited.add()
436
+ // 3 移除限高分析
437
+ heightLimited.remove()</code></pre>
438
+
439
+
440
+
441
+
442
+ </div>
443
+ </div>
444
+ </div>
445
+
446
+
447
+ </div>
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+ <div class='vertical-section'>
463
+ <h3 id='member'>成员变量</h3>
464
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
465
+ <div class="table-container">
466
+ <table class="params table">
467
+ <thead>
468
+ <tr>
469
+ <th>名称</th>
470
+ <th>类型</th>
471
+ <th>描述</th>
472
+ </tr>
473
+ </thead>
474
+ <tbody>
475
+
476
+ <tr class="deep-level-0">
477
+ <td class="name"><code><a href="#height">height</a></code></td>
478
+ <td class="name">
479
+ <code>
480
+
481
+ <span class="param-type">
482
+
483
+ Number
484
+
485
+ </span>
486
+
487
+
488
+
489
+ </code>
490
+ </td>
491
+ <td class="name"><code><p>辅助面高度</p></code></td>
492
+ </tr>
493
+
494
+ </tbody>
495
+ </table>
496
+ </div>
497
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
498
+ <div class="members">
499
+
500
+ <div class="member">
501
+
502
+ <span class="method-parameter is-pulled-right">
503
+ <label>类型:</label>
504
+
505
+ <span class="param-type">
506
+
507
+ Number
508
+
509
+ </span>
510
+
511
+
512
+
513
+ </span>
514
+
515
+ <h4 class="name" id="height">
516
+ <a class="href-link" href="#height">#</a>
517
+
518
+ <span class="code-name">
519
+ height
520
+ </span>
521
+
522
+ </h4>
523
+
524
+
525
+
526
+
527
+ <div class="description">
528
+ <p>辅助面高度</p>
529
+ </div>
530
+
531
+
532
+
533
+
534
+
535
+ <dl class="details">
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+ </dl>
568
+
569
+
570
+
571
+
572
+
573
+ </div>
574
+
575
+ </div>
576
+ </div>
577
+
578
+
579
+
580
+ <div class='vertical-section'>
581
+ <h3 id='function'>方法</h3>
582
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
583
+ <div class="members">
584
+ <div class="table-container">
585
+ <table class="params table">
586
+ <thead>
587
+ <tr>
588
+ <th>名称</th>
589
+ <th>返回值类型</th>
590
+ <th>描述</th>
591
+ </tr>
592
+ </thead>
593
+ <tbody>
594
+
595
+ <tr class="deep-level-0">
596
+ <td class="name"><code><a href="#add">add</a></code></td>
597
+ <td class="name">
598
+ <code>
599
+
600
+ </code>
601
+ </td>
602
+ <td class="name"><code><p>执行限高分析</p></code></td>
603
+ </tr>
604
+
605
+ <tr class="deep-level-0">
606
+ <td class="name"><code><a href="#remove">remove</a></code></td>
607
+ <td class="name">
608
+ <code>
609
+
610
+ </code>
611
+ </td>
612
+ <td class="name"><code><p>移除限高分析</p></code></td>
613
+ </tr>
614
+
615
+ </tbody>
616
+ </table>
617
+ </div>
618
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
619
+
620
+ <div class="member">
621
+
622
+
623
+
624
+ <h4 class="name" id="add">
625
+ <a class="href-link" href="#add">#</a>
626
+
627
+ <span class="code-name" id="add" style="font-size:30px">
628
+
629
+ add<span class="signature">()</span>
630
+
631
+ </span>
632
+ </h4>
633
+
634
+
635
+
636
+ <div class="description">
637
+ <p>执行限高分析</p>
638
+ </div>
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+ <dl class="details">
654
+
655
+
656
+
657
+
658
+
659
+
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
+ </dl>
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+ </div>
710
+
711
+ <div class="member">
712
+
713
+
714
+
715
+ <h4 class="name" id="remove">
716
+ <a class="href-link" href="#remove">#</a>
717
+
718
+ <span class="code-name" id="remove" style="font-size:30px">
719
+
720
+ remove<span class="signature">()</span>
721
+
722
+ </span>
723
+ </h4>
724
+
725
+
726
+
727
+ <div class="description">
728
+ <p>移除限高分析</p>
729
+ </div>
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+ <dl class="details">
745
+
746
+
747
+
748
+
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
+ </dl>
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+ </div>
801
+
802
+ </div>
803
+ </div>
804
+
805
+
806
+
807
+
808
+
809
+ </article>
810
+
811
+ </section>