@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,2306 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">MeasureLengthTool</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="MeasureLengthTool">
26
+ <a class="href-link" href="#MeasureLengthTool">#</a>
27
+
28
+ <span class="code-name" id="MeasureLengthTool" style="font-size:30px">
29
+
30
+ new MeasureLengthTool<span class="signature">(viewer, options)</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
+ Object
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>viewer对象</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>callBack</code></td>
137
+
138
+
139
+ <td class="type">
140
+
141
+
142
+ <span class="param-type">
143
+
144
+ function
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+ </td>
152
+
153
+
154
+ <td class="default">
155
+
156
+ function(result, positions){}
157
+
158
+ </td>
159
+
160
+
161
+ <td class="description last"><p>回调函数</p></td>
162
+ </tr>
163
+
164
+
165
+
166
+
167
+ <tr class="deep-level-1">
168
+
169
+ <td class="name"><code>labelCallBack</code></td>
170
+
171
+
172
+ <td class="type">
173
+
174
+
175
+ <span class="param-type">
176
+
177
+ function
178
+
179
+ </span>
180
+
181
+
182
+
183
+
184
+ </td>
185
+
186
+
187
+ <td class="default">
188
+
189
+ function(currentLength, totalLength, label){}
190
+
191
+ </td>
192
+
193
+
194
+ <td class="description last"><p>测量完毕后提示框的回调函数,可以覆盖提示内容</p></td>
195
+ </tr>
196
+
197
+
198
+
199
+
200
+ <tr class="deep-level-1">
201
+
202
+ <td class="name"><code>labelStyle</code></td>
203
+
204
+
205
+ <td class="type">
206
+
207
+
208
+ <span class="param-type">
209
+
210
+ LabelGraphics
211
+
212
+ </span>
213
+
214
+
215
+
216
+
217
+ </td>
218
+
219
+
220
+ <td class="default">
221
+
222
+ {}
223
+
224
+ </td>
225
+
226
+
227
+ <td class="description last"><p>labelStyle 提示框样式,参考<code>LabelGraphics</code></p></td>
228
+ </tr>
229
+
230
+
231
+
232
+
233
+ <tr class="deep-level-1">
234
+
235
+ <td class="name"><code>lineStyle</code></td>
236
+
237
+
238
+ <td class="type">
239
+
240
+
241
+ <span class="param-type">
242
+
243
+ PolylineGraphics
244
+
245
+ </span>
246
+
247
+
248
+
249
+
250
+ </td>
251
+
252
+
253
+ <td class="default">
254
+
255
+ {}
256
+
257
+ </td>
258
+
259
+
260
+ <td class="description last"><p>lineStyle 测量线式,参考<code>PolylineGraphics</code></p></td>
261
+ </tr>
262
+
263
+
264
+
265
+
266
+ <tr class="deep-level-1">
267
+
268
+ <td class="name"><code>pointStyle</code></td>
269
+
270
+
271
+ <td class="type">
272
+
273
+
274
+ <span class="param-type">
275
+
276
+ PointGraphics
277
+
278
+ </span>
279
+
280
+
281
+
282
+
283
+ </td>
284
+
285
+
286
+ <td class="default">
287
+
288
+ {}
289
+
290
+ </td>
291
+
292
+
293
+ <td class="description last"><p>lineStyle 测量点样式,参考<code>PointGraphics</code></p></td>
294
+ </tr>
295
+
296
+
297
+
298
+
299
+ <tr class="deep-level-1">
300
+
301
+ <td class="name"><code>billboardStyle</code></td>
302
+
303
+
304
+ <td class="type">
305
+
306
+
307
+ <span class="param-type">
308
+
309
+ Billboard
310
+
311
+ </span>
312
+
313
+
314
+
315
+
316
+ </td>
317
+
318
+
319
+ <td class="default">
320
+
321
+ {}
322
+
323
+ </td>
324
+
325
+
326
+ <td class="description last"><p>billboardStyle 测量点图标样式,参考<code>Billboard</code></p></td>
327
+ </tr>
328
+
329
+
330
+
331
+
332
+ <tr class="deep-level-1">
333
+
334
+ <td class="name"><code>closePointStyle</code></td>
335
+
336
+
337
+ <td class="type">
338
+
339
+
340
+ <span class="param-type">
341
+
342
+ Billboard
343
+
344
+ </span>
345
+
346
+
347
+
348
+
349
+ </td>
350
+
351
+
352
+ <td class="default">
353
+
354
+ {}
355
+
356
+ </td>
357
+
358
+
359
+ <td class="description last"><p>closePointStyle 删除测量结果图标样式,参考<code>Billboard</code></p></td>
360
+ </tr>
361
+
362
+
363
+
364
+
365
+ <tr class="deep-level-1">
366
+
367
+ <td class="name"><code>showMoreInfo</code></td>
368
+
369
+
370
+ <td class="type">
371
+
372
+
373
+ <span class="param-type">
374
+
375
+ Boolean
376
+
377
+ </span>
378
+
379
+
380
+
381
+
382
+ </td>
383
+
384
+
385
+ <td class="default">
386
+
387
+ false
388
+
389
+ </td>
390
+
391
+
392
+ <td class="description last"><p>是否显示详细信息。默认不显示。</p></td>
393
+ </tr>
394
+
395
+
396
+
397
+
398
+ <tr class="deep-level-1">
399
+
400
+ <td class="name"><code>exHeight</code></td>
401
+
402
+
403
+ <td class="type">
404
+
405
+
406
+ <span class="param-type">
407
+
408
+ Number
409
+
410
+ </span>
411
+
412
+
413
+
414
+
415
+ </td>
416
+
417
+
418
+ <td class="default">
419
+
420
+ 0
421
+
422
+ </td>
423
+
424
+
425
+ <td class="description last"><p>附加高程偏移 (避免遮挡)</p></td>
426
+ </tr>
427
+
428
+
429
+
430
+
431
+ <tr class="deep-level-1">
432
+
433
+ <td class="name"><code>disableDepthTestDistance</code></td>
434
+
435
+
436
+ <td class="type">
437
+
438
+
439
+ <span class="param-type">
440
+
441
+ Number
442
+
443
+ </span>
444
+
445
+
446
+
447
+
448
+ </td>
449
+
450
+
451
+ <td class="default">
452
+
453
+ Number.POSITIVE_INFINITY
454
+
455
+ </td>
456
+
457
+
458
+ <td class="description last"><p>只要小于这个距离深度检测就会失效,就会一直显示在最前面 不会被遮挡</p></td>
459
+ </tr>
460
+
461
+
462
+
463
+
464
+ <tr class="deep-level-1">
465
+
466
+ <td class="name"><code>isTerrain</code></td>
467
+
468
+
469
+ <td class="type">
470
+
471
+
472
+ <span class="param-type">
473
+
474
+ Boolean
475
+
476
+ </span>
477
+
478
+
479
+
480
+
481
+ </td>
482
+
483
+
484
+ <td class="default">
485
+
486
+ false
487
+
488
+ </td>
489
+
490
+
491
+ <td class="description last"><p>是否针对地形,为true时对地形数据进行贴地距离测量,为false时进行直线距离测量</p></td>
492
+ </tr>
493
+
494
+
495
+
496
+
497
+ <tr class="deep-level-1">
498
+
499
+ <td class="name"><code>paneNum</code></td>
500
+
501
+
502
+ <td class="type">
503
+
504
+
505
+ <span class="param-type">
506
+
507
+ Number
508
+
509
+ </span>
510
+
511
+
512
+
513
+
514
+ </td>
515
+
516
+
517
+ <td class="default">
518
+
519
+ 32
520
+
521
+ </td>
522
+
523
+
524
+ <td class="description last"><p>地形贴地距离测量中,向每段中插入采样点的数量</p></td>
525
+ </tr>
526
+
527
+
528
+
529
+
530
+ <tr class="deep-level-1">
531
+
532
+ <td class="name"><code>classificationType</code></td>
533
+
534
+
535
+ <td class="type">
536
+
537
+
538
+ <span class="param-type">
539
+
540
+ Number
541
+
542
+ </span>
543
+
544
+
545
+
546
+
547
+ </td>
548
+
549
+
550
+ <td class="default">
551
+
552
+ 0
553
+
554
+ </td>
555
+
556
+
557
+ <td class="description last"><p>测量区域的绘制结果显示,区分地形、模型,为0代表在地形上绘制,为1代表在模型上绘制,为2代表同时在地形和模型上绘制</p></td>
558
+ </tr>
559
+
560
+
561
+
562
+
563
+ <tr class="deep-level-1">
564
+
565
+ <td class="name"><code>style</code></td>
566
+
567
+
568
+ <td class="type">
569
+
570
+
571
+ <span class="param-type">
572
+
573
+ Cesium.LabelStyle
574
+
575
+ </span>
576
+
577
+
578
+
579
+
580
+ </td>
581
+
582
+
583
+ <td class="default">
584
+
585
+ Cesium.LabelStyle.FILL
586
+
587
+ </td>
588
+
589
+
590
+ <td class="description last"><p>label 文字的样式,支持填充、线框。填充和线框, FILL, OUTLINE, FILL_AND_OUTLINE</p></td>
591
+ </tr>
592
+
593
+
594
+
595
+
596
+ <tr class="deep-level-1">
597
+
598
+ <td class="name"><code>font</code></td>
599
+
600
+
601
+ <td class="type">
602
+
603
+
604
+ <span class="param-type">
605
+
606
+ String
607
+
608
+ </span>
609
+
610
+
611
+
612
+
613
+ </td>
614
+
615
+
616
+ <td class="default">
617
+
618
+ '12pt 楷体'
619
+
620
+ </td>
621
+
622
+
623
+ <td class="description last"><p>label 的字体以及大小 @see <a class="mapgis-link-name" title="https://html.spec.whatwg.org/multipage/canvas.html#text-styles" https://html.spec.whatwg.org/multipage/canvas.html#text-styles>https://html.spec.whatwg.org/multipage/canvas.html#text-styles</a></p></td>
624
+ </tr>
625
+
626
+
627
+
628
+
629
+ <tr class="deep-level-1">
630
+
631
+ <td class="name"><code>fillColor</code></td>
632
+
633
+
634
+ <td class="type">
635
+
636
+
637
+ <span class="param-type">
638
+
639
+ Cesium.Color
640
+
641
+ </span>
642
+
643
+
644
+
645
+
646
+ </td>
647
+
648
+
649
+ <td class="default">
650
+
651
+ Cesium.Color.WHITE
652
+
653
+ </td>
654
+
655
+
656
+ <td class="description last"><p>label 的字体颜色</p></td>
657
+ </tr>
658
+
659
+
660
+
661
+
662
+ <tr class="deep-level-1">
663
+
664
+ <td class="name"><code>outlineColor</code></td>
665
+
666
+
667
+ <td class="type">
668
+
669
+
670
+ <span class="param-type">
671
+
672
+ Cesium.Color
673
+
674
+ </span>
675
+
676
+
677
+
678
+
679
+ </td>
680
+
681
+
682
+ <td class="default">
683
+
684
+ Cesium.Color.WHITE
685
+
686
+ </td>
687
+
688
+
689
+ <td class="description last"><p>label 文字线框的颜色</p></td>
690
+ </tr>
691
+
692
+
693
+
694
+
695
+ <tr class="deep-level-1">
696
+
697
+ <td class="name"><code>outlineWidth</code></td>
698
+
699
+
700
+ <td class="type">
701
+
702
+
703
+ <span class="param-type">
704
+
705
+ Number
706
+
707
+ </span>
708
+
709
+
710
+
711
+
712
+ </td>
713
+
714
+
715
+ <td class="default">
716
+
717
+ 4.0
718
+
719
+ </td>
720
+
721
+
722
+ <td class="description last"><p>label 的外轮廓边线</p></td>
723
+ </tr>
724
+
725
+
726
+
727
+
728
+ <tr class="deep-level-1">
729
+
730
+ <td class="name"><code>verticalOrigin</code></td>
731
+
732
+
733
+ <td class="type">
734
+
735
+
736
+ <span class="param-type">
737
+
738
+ Cesium.VerticalOrigin
739
+
740
+ </span>
741
+
742
+
743
+
744
+
745
+ </td>
746
+
747
+
748
+ <td class="default">
749
+
750
+ Cesium.VerticalOrigin.BOTTOM
751
+
752
+ </td>
753
+
754
+
755
+ <td class="description last"><p>label 的摆放位置</p></td>
756
+ </tr>
757
+
758
+
759
+
760
+
761
+ <tr class="deep-level-1">
762
+
763
+ <td class="name"><code>showBackground</code></td>
764
+
765
+
766
+ <td class="type">
767
+
768
+
769
+ <span class="param-type">
770
+
771
+ Boolean
772
+
773
+ </span>
774
+
775
+
776
+
777
+
778
+ </td>
779
+
780
+
781
+ <td class="default">
782
+
783
+ true
784
+
785
+ </td>
786
+
787
+
788
+ <td class="description last"><p>是否显示 label 的背景</p></td>
789
+ </tr>
790
+
791
+
792
+
793
+
794
+ <tr class="deep-level-1">
795
+
796
+ <td class="name"><code>backgroundColor</code></td>
797
+
798
+
799
+ <td class="type">
800
+
801
+
802
+ <span class="param-type">
803
+
804
+ Cesium.Color
805
+
806
+ </span>
807
+
808
+
809
+
810
+
811
+ </td>
812
+
813
+
814
+ <td class="default">
815
+
816
+ new Cesium.Color(0, 0, 0, 0.4)
817
+
818
+ </td>
819
+
820
+
821
+ <td class="description last"><p>lable 背景的颜色</p></td>
822
+ </tr>
823
+
824
+
825
+
826
+
827
+ <tr class="deep-level-1">
828
+
829
+ <td class="name"><code>pixelOffset</code></td>
830
+
831
+
832
+ <td class="type">
833
+
834
+
835
+ <span class="param-type">
836
+
837
+ Cesium.Cartesian2
838
+
839
+ </span>
840
+
841
+
842
+
843
+
844
+ </td>
845
+
846
+
847
+ <td class="default">
848
+
849
+ new Cesium.Cartesian2(0, -4)
850
+
851
+ </td>
852
+
853
+
854
+ <td class="description last"><p>label 相对于设定点的偏移位置</p></td>
855
+ </tr>
856
+
857
+
858
+
859
+
860
+ <tr class="deep-level-1">
861
+
862
+ <td class="name"><code>unit</code></td>
863
+
864
+
865
+ <td class="type">
866
+
867
+
868
+ <span class="param-type">
869
+
870
+ String
871
+
872
+ </span>
873
+
874
+
875
+
876
+
877
+ </td>
878
+
879
+
880
+ <td class="default">
881
+
882
+ 'kilometers'
883
+
884
+ </td>
885
+
886
+
887
+ <td class="description last"><p>显示距离的单位</p></td>
888
+ </tr>
889
+
890
+
891
+
892
+
893
+ <tr class="deep-level-1">
894
+
895
+ <td class="name"><code>fixNum</code></td>
896
+
897
+
898
+ <td class="type">
899
+
900
+
901
+ <span class="param-type">
902
+
903
+ Number
904
+
905
+ </span>
906
+
907
+
908
+
909
+
910
+ </td>
911
+
912
+
913
+ <td class="default">
914
+
915
+ '4 or 0'
916
+
917
+ </td>
918
+
919
+
920
+ <td class="description last"><p>显示距离的小数点位数,unit为kilometers默认值为4,为meters时,默认值为0</p></td>
921
+ </tr>
922
+
923
+
924
+
925
+
926
+ <tr class="deep-level-1">
927
+
928
+ <td class="name"><code>pointIcon</code></td>
929
+
930
+
931
+ <td class="type">
932
+
933
+
934
+ <span class="param-type">
935
+
936
+ String
937
+
938
+ </span>
939
+
940
+
941
+
942
+
943
+ </td>
944
+
945
+
946
+ <td class="default">
947
+
948
+ ''
949
+
950
+ </td>
951
+
952
+
953
+ <td class="description last"><p>测量点的图标,不传则用默认图标</p></td>
954
+ </tr>
955
+
956
+
957
+
958
+
959
+ <tr class="deep-level-1">
960
+
961
+ <td class="name"><code>pointIconWith</code></td>
962
+
963
+
964
+ <td class="type">
965
+
966
+
967
+ <span class="param-type">
968
+
969
+ Number
970
+
971
+ </span>
972
+
973
+
974
+
975
+
976
+ </td>
977
+
978
+
979
+ <td class="default">
980
+
981
+ 16
982
+
983
+ </td>
984
+
985
+
986
+ <td class="description last"><p>测量点图标的宽度</p></td>
987
+ </tr>
988
+
989
+
990
+
991
+
992
+ <tr class="deep-level-1">
993
+
994
+ <td class="name"><code>pointIconHeight</code></td>
995
+
996
+
997
+ <td class="type">
998
+
999
+
1000
+ <span class="param-type">
1001
+
1002
+ Number
1003
+
1004
+ </span>
1005
+
1006
+
1007
+
1008
+
1009
+ </td>
1010
+
1011
+
1012
+ <td class="default">
1013
+
1014
+ 16
1015
+
1016
+ </td>
1017
+
1018
+
1019
+ <td class="description last"><p>测量点图标的高度</p></td>
1020
+ </tr>
1021
+
1022
+
1023
+
1024
+
1025
+ <tr class="deep-level-1">
1026
+
1027
+ <td class="name"><code>pointIconScale</code></td>
1028
+
1029
+
1030
+ <td class="type">
1031
+
1032
+
1033
+ <span class="param-type">
1034
+
1035
+ Number
1036
+
1037
+ </span>
1038
+
1039
+
1040
+
1041
+
1042
+ </td>
1043
+
1044
+
1045
+ <td class="default">
1046
+
1047
+ 1.2
1048
+
1049
+ </td>
1050
+
1051
+
1052
+ <td class="description last"><p>测量点图标的缩放比例</p></td>
1053
+ </tr>
1054
+
1055
+
1056
+
1057
+
1058
+ <tr class="deep-level-1">
1059
+
1060
+ <td class="name"><code>pointIconOffsetX</code></td>
1061
+
1062
+
1063
+ <td class="type">
1064
+
1065
+
1066
+ <span class="param-type">
1067
+
1068
+ Number
1069
+
1070
+ </span>
1071
+
1072
+
1073
+
1074
+
1075
+ </td>
1076
+
1077
+
1078
+ <td class="default">
1079
+
1080
+ 0
1081
+
1082
+ </td>
1083
+
1084
+
1085
+ <td class="description last"><p>测量点图标的X轴偏移,用于微调图标位置</p></td>
1086
+ </tr>
1087
+
1088
+
1089
+
1090
+
1091
+ <tr class="deep-level-1">
1092
+
1093
+ <td class="name"><code>pointIconOffsetY</code></td>
1094
+
1095
+
1096
+ <td class="type">
1097
+
1098
+
1099
+ <span class="param-type">
1100
+
1101
+ Number
1102
+
1103
+ </span>
1104
+
1105
+
1106
+
1107
+
1108
+ </td>
1109
+
1110
+
1111
+ <td class="default">
1112
+
1113
+ -5
1114
+
1115
+ </td>
1116
+
1117
+
1118
+ <td class="description last"><p>测量点图标的Y轴偏移,用于微调图标位置</p></td>
1119
+ </tr>
1120
+
1121
+
1122
+
1123
+
1124
+ <tr class="deep-level-1">
1125
+
1126
+ <td class="name"><code>closeIcon</code></td>
1127
+
1128
+
1129
+ <td class="type">
1130
+
1131
+
1132
+ <span class="param-type">
1133
+
1134
+ String
1135
+
1136
+ </span>
1137
+
1138
+
1139
+
1140
+
1141
+ </td>
1142
+
1143
+
1144
+ <td class="default">
1145
+
1146
+ ''
1147
+
1148
+ </td>
1149
+
1150
+
1151
+ <td class="description last"><p>删除测量结果图标,不传则用默认图标</p></td>
1152
+ </tr>
1153
+
1154
+
1155
+
1156
+
1157
+ <tr class="deep-level-1">
1158
+
1159
+ <td class="name"><code>closeIconWith</code></td>
1160
+
1161
+
1162
+ <td class="type">
1163
+
1164
+
1165
+ <span class="param-type">
1166
+
1167
+ Number
1168
+
1169
+ </span>
1170
+
1171
+
1172
+
1173
+
1174
+ </td>
1175
+
1176
+
1177
+ <td class="default">
1178
+
1179
+ 16
1180
+
1181
+ </td>
1182
+
1183
+
1184
+ <td class="description last"><p>删除测量结果图标的宽度</p></td>
1185
+ </tr>
1186
+
1187
+
1188
+
1189
+
1190
+ <tr class="deep-level-1">
1191
+
1192
+ <td class="name"><code>closeIconHeight</code></td>
1193
+
1194
+
1195
+ <td class="type">
1196
+
1197
+
1198
+ <span class="param-type">
1199
+
1200
+ Number
1201
+
1202
+ </span>
1203
+
1204
+
1205
+
1206
+
1207
+ </td>
1208
+
1209
+
1210
+ <td class="default">
1211
+
1212
+ 16
1213
+
1214
+ </td>
1215
+
1216
+
1217
+ <td class="description last"><p>删除测量结果图标的高度</p></td>
1218
+ </tr>
1219
+
1220
+
1221
+
1222
+
1223
+ <tr class="deep-level-1">
1224
+
1225
+ <td class="name"><code>closeIconScale</code></td>
1226
+
1227
+
1228
+ <td class="type">
1229
+
1230
+
1231
+ <span class="param-type">
1232
+
1233
+ Number
1234
+
1235
+ </span>
1236
+
1237
+
1238
+
1239
+
1240
+ </td>
1241
+
1242
+
1243
+ <td class="default">
1244
+
1245
+ 1
1246
+
1247
+ </td>
1248
+
1249
+
1250
+ <td class="description last"><p>删除测量结果图标的缩放比例</p></td>
1251
+ </tr>
1252
+
1253
+
1254
+
1255
+
1256
+ <tr class="deep-level-1">
1257
+
1258
+ <td class="name"><code>closeIconOffsetX</code></td>
1259
+
1260
+
1261
+ <td class="type">
1262
+
1263
+
1264
+ <span class="param-type">
1265
+
1266
+ Number
1267
+
1268
+ </span>
1269
+
1270
+
1271
+
1272
+
1273
+ </td>
1274
+
1275
+
1276
+ <td class="default">
1277
+
1278
+ 3
1279
+
1280
+ </td>
1281
+
1282
+
1283
+ <td class="description last"><p>删除测量结果图标的X轴偏移,用于微调图标位置</p></td>
1284
+ </tr>
1285
+
1286
+
1287
+
1288
+
1289
+ <tr class="deep-level-1">
1290
+
1291
+ <td class="name"><code>closeIconOffsetY</code></td>
1292
+
1293
+
1294
+ <td class="type">
1295
+
1296
+
1297
+ <span class="param-type">
1298
+
1299
+ Number
1300
+
1301
+ </span>
1302
+
1303
+
1304
+
1305
+
1306
+ </td>
1307
+
1308
+
1309
+ <td class="default">
1310
+
1311
+ 3
1312
+
1313
+ </td>
1314
+
1315
+
1316
+ <td class="description last"><p>删除测量结果图标的Y轴偏移,用于微调图标位置</p></td>
1317
+ </tr>
1318
+
1319
+
1320
+
1321
+
1322
+ <tr class="deep-level-1">
1323
+
1324
+ <td class="name"><code>enableScaleByDistance</code></td>
1325
+
1326
+
1327
+ <td class="type">
1328
+
1329
+
1330
+ <span class="param-type">
1331
+
1332
+ Number
1333
+
1334
+ </span>
1335
+
1336
+
1337
+
1338
+
1339
+ </td>
1340
+
1341
+
1342
+ <td class="default">
1343
+
1344
+ true
1345
+
1346
+ </td>
1347
+
1348
+
1349
+ <td class="description last"><p>是否启用标签随视角高度缩放功能</p></td>
1350
+ </tr>
1351
+
1352
+
1353
+
1354
+
1355
+ <tr class="deep-level-1">
1356
+
1357
+ <td class="name"><code>scaleByDistance</code></td>
1358
+
1359
+
1360
+ <td class="type">
1361
+
1362
+
1363
+ <span class="param-type">
1364
+
1365
+ Number
1366
+
1367
+ </span>
1368
+
1369
+
1370
+
1371
+
1372
+ </td>
1373
+
1374
+
1375
+ <td class="default">
1376
+
1377
+ </td>
1378
+
1379
+
1380
+ <td class="description last"><p>标签大小随视角高度缩放函数,用户可自定义,不传则使用默认函数,会传入一个当前的相机视角高度,返回一个NearFarScale函数对象,详见下方示例</p></td>
1381
+ </tr>
1382
+
1383
+
1384
+
1385
+
1386
+ <tr class="deep-level-1">
1387
+
1388
+ <td class="name"><code>isContinueDraw</code></td>
1389
+
1390
+
1391
+ <td class="type">
1392
+
1393
+
1394
+ <span class="param-type">
1395
+
1396
+ Number
1397
+
1398
+ </span>
1399
+
1400
+
1401
+
1402
+
1403
+ </td>
1404
+
1405
+
1406
+ <td class="default">
1407
+
1408
+ true
1409
+
1410
+ </td>
1411
+
1412
+
1413
+ <td class="description last"><p>是否连续绘制,true:是,false:否</p></td>
1414
+ </tr>
1415
+
1416
+
1417
+
1418
+
1419
+
1420
+
1421
+
1422
+ </tbody>
1423
+ </table>
1424
+ </div>
1425
+
1426
+
1427
+
1428
+
1429
+
1430
+
1431
+ <dl class="details">
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+ <dt class="tag-author">作者:</dt>
1451
+ <dd class="tag-author">
1452
+ <ul>
1453
+ <li>韩彦生
1454
+ modify 修改人:周凌风 2020年9月25日 添加针对地形数据进行贴地距离测量的功能</li>
1455
+ </ul>
1456
+ </dd>
1457
+
1458
+
1459
+
1460
+
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+ </dl>
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
1481
+
1482
+
1483
+
1484
+
1485
+
1486
+
1487
+
1488
+
1489
+
1490
+
1491
+
1492
+
1493
+
1494
+
1495
+ <h5>示例</h5>
1496
+
1497
+
1498
+ <pre class="prettyprint"><code>function callBackFunction(arg){}
1499
+ var measureLengthTool = new Cesium.MeasureLengthTool(viewer,
1500
+ {
1501
+ callBack:callBackFunction
1502
+ showMoreInfo:false,
1503
+ isTerrain:true,
1504
+ paneNum:32,
1505
+ scaleByDistance: function(height) {
1506
+ if (height &lt; 30) {
1507
+ return new NearFarScalar(30, 3, 180, 0);
1508
+ } else if (height &lt; 60) {
1509
+ return new NearFarScalar(60, 3, 360, 0);
1510
+ } else if (height &lt; 120) {
1511
+ return new NearFarScalar(120, 3, 720, 0);
1512
+ } else if (height &lt; 240) {
1513
+ return new NearFarScalar(240, 2, 1200, 0);
1514
+ } else if (height &lt; 480) {
1515
+ return new NearFarScalar(480, 2, 2400, 0);
1516
+ } else if (height &lt; 960) {
1517
+ return new NearFarScalar(960, 2, 4800, 0);
1518
+ } else if (height &lt; 1920) {
1519
+ return new NearFarScalar(1920, 2, 9600, 0);
1520
+ } else if (height &lt; 3840) {
1521
+ return new NearFarScalar(3840, 2, 19200, 0);
1522
+ } else if (height &lt; 7680) {
1523
+ return new NearFarScalar(7680, 2, 38400, 0);
1524
+ } else if (height &lt; 15360) {
1525
+ return new NearFarScalar(15360, 2, 76800, 0);
1526
+ } else if (height &lt; 30720) {
1527
+ return new NearFarScalar(30720, 2, 153600, 0);
1528
+ } else if (height &lt; 61440) {
1529
+ return new NearFarScalar(61440, 2, 307200, 0);
1530
+ } else if (height &lt; 122880) {
1531
+ return new NearFarScalar(122880, 2, 614400, 0);
1532
+ } else if (height &lt; 245760) {
1533
+ return new NearFarScalar(245760, 2, 1228800, 0);
1534
+ } else if (height &lt; 491520) {
1535
+ return new NearFarScalar(491520, 2, 2457600, 0);
1536
+ } else if (height &lt; 983040) {
1537
+ return new NearFarScalar(983040, 2, 4915200, 0);
1538
+ } else if (height &lt; 1966080) {
1539
+ return new NearFarScalar(1966080, 2, 9830400, 0);
1540
+ } else if (height &lt; 3932160) {
1541
+ return new NearFarScalar(3932160, 1, 19660800, 0);
1542
+ } else if (height &lt; 7864320) {
1543
+ return new NearFarScalar(7864320, 1, 39321600, 0);
1544
+ } else if (height &lt; 15728640) {
1545
+ return new NearFarScalar(15728640, 1, 78643200, 0);
1546
+ }
1547
+ return new NearFarScalar(15728640, 1, 78643200, 0);
1548
+ }
1549
+ });
1550
+ measureLengthTool.startTool(); //开始测量
1551
+ //measureLengthTool.stopTool(); //结束测量</code></pre>
1552
+
1553
+
1554
+
1555
+
1556
+ </div>
1557
+ </div>
1558
+ </div>
1559
+
1560
+
1561
+ </div>
1562
+
1563
+
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+
1570
+
1571
+
1572
+
1573
+
1574
+
1575
+
1576
+ <div class='vertical-section'>
1577
+ <h3 id='member'>成员变量</h3>
1578
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量概述</h4>
1579
+ <div class="table-container">
1580
+ <table class="params table">
1581
+ <thead>
1582
+ <tr>
1583
+ <th>名称</th>
1584
+ <th>类型</th>
1585
+ <th>描述</th>
1586
+ </tr>
1587
+ </thead>
1588
+ <tbody>
1589
+
1590
+ <tr class="deep-level-0">
1591
+ <td class="name"><code><a href="#distanceResult">distanceResult</a></code></td>
1592
+ <td class="name">
1593
+ <code>
1594
+
1595
+ <span class="param-type">
1596
+
1597
+ Number
1598
+
1599
+ </span>
1600
+
1601
+
1602
+
1603
+ </code>
1604
+ </td>
1605
+ <td class="name"><code><p>返回测量结果</p></code></td>
1606
+ </tr>
1607
+
1608
+ <tr class="deep-level-0">
1609
+ <td class="name"><code><a href="#isTerrain">isTerrain</a></code></td>
1610
+ <td class="name">
1611
+ <code>
1612
+
1613
+ <span class="param-type">
1614
+
1615
+ Boolean
1616
+
1617
+ </span>
1618
+
1619
+
1620
+
1621
+ </code>
1622
+ </td>
1623
+ <td class="name"><code><p>是否贴地测量</p></code></td>
1624
+ </tr>
1625
+
1626
+ <tr class="deep-level-0">
1627
+ <td class="name"><code><a href="#showMoreInfo">showMoreInfo</a></code></td>
1628
+ <td class="name">
1629
+ <code>
1630
+
1631
+ <span class="param-type">
1632
+
1633
+ Boolean
1634
+
1635
+ </span>
1636
+
1637
+
1638
+
1639
+ </code>
1640
+ </td>
1641
+ <td class="name"><code><p>显示详细信息</p></code></td>
1642
+ </tr>
1643
+
1644
+ </tbody>
1645
+ </table>
1646
+ </div>
1647
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">成员变量详情</h4>
1648
+ <div class="members">
1649
+
1650
+ <div class="member">
1651
+
1652
+ <span class="method-parameter is-pulled-right">
1653
+ <label>类型:</label>
1654
+
1655
+ <span class="param-type">
1656
+
1657
+ Number
1658
+
1659
+ </span>
1660
+
1661
+
1662
+
1663
+ </span>
1664
+
1665
+ <h4 class="name" id="distanceResult">
1666
+ <a class="href-link" href="#distanceResult">#</a>
1667
+
1668
+ <span class="code-name">
1669
+ distanceResult
1670
+ </span>
1671
+
1672
+ </h4>
1673
+
1674
+
1675
+
1676
+
1677
+ <div class="description">
1678
+ <p>返回测量结果</p>
1679
+ </div>
1680
+
1681
+
1682
+
1683
+
1684
+
1685
+ <dl class="details">
1686
+
1687
+
1688
+
1689
+
1690
+
1691
+
1692
+
1693
+
1694
+
1695
+
1696
+
1697
+
1698
+
1699
+
1700
+
1701
+
1702
+
1703
+
1704
+
1705
+
1706
+
1707
+
1708
+
1709
+
1710
+
1711
+
1712
+
1713
+
1714
+
1715
+
1716
+
1717
+ </dl>
1718
+
1719
+
1720
+
1721
+
1722
+
1723
+ </div>
1724
+
1725
+ <div class="member">
1726
+
1727
+ <span class="method-parameter is-pulled-right">
1728
+ <label>类型:</label>
1729
+
1730
+ <span class="param-type">
1731
+
1732
+ Boolean
1733
+
1734
+ </span>
1735
+
1736
+
1737
+
1738
+ </span>
1739
+
1740
+ <h4 class="name" id="isTerrain">
1741
+ <a class="href-link" href="#isTerrain">#</a>
1742
+
1743
+ <span class="code-name">
1744
+ isTerrain
1745
+ </span>
1746
+
1747
+ </h4>
1748
+
1749
+
1750
+
1751
+
1752
+ <div class="description">
1753
+ <p>是否贴地测量</p>
1754
+ </div>
1755
+
1756
+
1757
+
1758
+
1759
+
1760
+ <dl class="details">
1761
+
1762
+
1763
+
1764
+
1765
+
1766
+
1767
+
1768
+
1769
+
1770
+
1771
+
1772
+
1773
+
1774
+
1775
+
1776
+
1777
+
1778
+
1779
+
1780
+
1781
+
1782
+
1783
+
1784
+
1785
+
1786
+
1787
+
1788
+
1789
+
1790
+
1791
+
1792
+ </dl>
1793
+
1794
+
1795
+
1796
+
1797
+
1798
+ </div>
1799
+
1800
+ <div class="member">
1801
+
1802
+ <span class="method-parameter is-pulled-right">
1803
+ <label>类型:</label>
1804
+
1805
+ <span class="param-type">
1806
+
1807
+ Boolean
1808
+
1809
+ </span>
1810
+
1811
+
1812
+
1813
+ </span>
1814
+
1815
+ <h4 class="name" id="showMoreInfo">
1816
+ <a class="href-link" href="#showMoreInfo">#</a>
1817
+
1818
+ <span class="code-name">
1819
+ showMoreInfo
1820
+ </span>
1821
+
1822
+ </h4>
1823
+
1824
+
1825
+
1826
+
1827
+ <div class="description">
1828
+ <p>显示详细信息</p>
1829
+ </div>
1830
+
1831
+
1832
+
1833
+
1834
+
1835
+ <dl class="details">
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+
1856
+
1857
+
1858
+
1859
+
1860
+
1861
+
1862
+
1863
+
1864
+
1865
+
1866
+
1867
+ </dl>
1868
+
1869
+
1870
+
1871
+
1872
+
1873
+ </div>
1874
+
1875
+ </div>
1876
+ </div>
1877
+
1878
+
1879
+
1880
+ <div class='vertical-section'>
1881
+ <h3 id='function'>方法</h3>
1882
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
1883
+ <div class="members">
1884
+ <div class="table-container">
1885
+ <table class="params table">
1886
+ <thead>
1887
+ <tr>
1888
+ <th>名称</th>
1889
+ <th>返回值类型</th>
1890
+ <th>描述</th>
1891
+ </tr>
1892
+ </thead>
1893
+ <tbody>
1894
+
1895
+ <tr class="deep-level-0">
1896
+ <td class="name"><code><a href="#calcDistanceFromDegrees">calcDistanceFromDegrees</a></code></td>
1897
+ <td class="name">
1898
+ <code>
1899
+
1900
+
1901
+ <span class="param-type">
1902
+
1903
+ Number
1904
+
1905
+ </span>
1906
+
1907
+
1908
+
1909
+
1910
+ </code>
1911
+ </td>
1912
+ <td class="name"><code><p>计算距离(经纬度的坐标点)</p></code></td>
1913
+ </tr>
1914
+
1915
+ <tr class="deep-level-0">
1916
+ <td class="name"><code><a href="#startTool">startTool</a></code></td>
1917
+ <td class="name">
1918
+ <code>
1919
+
1920
+ </code>
1921
+ </td>
1922
+ <td class="name"><code><p>开始测量工具</p></code></td>
1923
+ </tr>
1924
+
1925
+ <tr class="deep-level-0">
1926
+ <td class="name"><code><a href="#stopTool">stopTool</a></code></td>
1927
+ <td class="name">
1928
+ <code>
1929
+
1930
+ </code>
1931
+ </td>
1932
+ <td class="name"><code><p>结束测量</p></code></td>
1933
+ </tr>
1934
+
1935
+ </tbody>
1936
+ </table>
1937
+ </div>
1938
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
1939
+
1940
+ <div class="member">
1941
+
1942
+
1943
+
1944
+ <h4 class="name" id="calcDistanceFromDegrees">
1945
+ <a class="href-link" href="#calcDistanceFromDegrees">#</a>
1946
+
1947
+ <span class="code-name" id="calcDistanceFromDegrees" style="font-size:30px">
1948
+
1949
+ calcDistanceFromDegrees<span class="signature">(positions)</span>
1950
+
1951
+ </span>
1952
+ </h4>
1953
+
1954
+
1955
+
1956
+ <div class="description">
1957
+ <p>计算距离(经纬度的坐标点)</p>
1958
+ </div>
1959
+
1960
+
1961
+
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+
1968
+
1969
+ <h4>参数</h4>
1970
+
1971
+ <div class="table-container">
1972
+ <table class="params table">
1973
+ <thead>
1974
+ <tr>
1975
+
1976
+ <th>名称</th>
1977
+
1978
+
1979
+ <th>类型</th>
1980
+
1981
+
1982
+
1983
+ <th class="last">描述</th>
1984
+ </tr>
1985
+ </thead>
1986
+
1987
+ <tbody>
1988
+
1989
+
1990
+
1991
+ <tr class="deep-level-0">
1992
+
1993
+ <td class="name"><code>positions</code></td>
1994
+
1995
+
1996
+ <td class="type">
1997
+
1998
+
1999
+ <span class="param-type">
2000
+
2001
+ Array
2002
+
2003
+ </span>
2004
+
2005
+
2006
+
2007
+
2008
+ </td>
2009
+
2010
+
2011
+
2012
+ <td class="description last"></td>
2013
+ </tr>
2014
+
2015
+
2016
+
2017
+
2018
+ </tbody>
2019
+ </table>
2020
+ </div>
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+ <dl class="details">
2028
+
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+
2051
+
2052
+
2053
+
2054
+
2055
+
2056
+
2057
+
2058
+
2059
+ </dl>
2060
+
2061
+
2062
+
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+
2077
+
2078
+ <div class='columns method-parameter'>
2079
+ <div class="column is-2"><label>返回值</label></div>
2080
+ <div class="column is-10">
2081
+
2082
+
2083
+
2084
+ <div class="columns">
2085
+
2086
+ <div class='param-desc column is-7'><p>返回测量距离</p></div>
2087
+
2088
+
2089
+ <div class='column is-5 has-text-left'>
2090
+ <label>类型: </label>
2091
+
2092
+ <span class="param-type">
2093
+
2094
+ Number
2095
+
2096
+ </span>
2097
+
2098
+
2099
+
2100
+ </div>
2101
+
2102
+ </div>
2103
+
2104
+
2105
+ </div>
2106
+ </div>
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+ </div>
2114
+
2115
+ <div class="member">
2116
+
2117
+
2118
+
2119
+ <h4 class="name" id="startTool">
2120
+ <a class="href-link" href="#startTool">#</a>
2121
+
2122
+ <span class="code-name" id="startTool" style="font-size:30px">
2123
+
2124
+ startTool<span class="signature">()</span>
2125
+
2126
+ </span>
2127
+ </h4>
2128
+
2129
+
2130
+
2131
+ <div class="description">
2132
+ <p>开始测量工具</p>
2133
+ </div>
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+ <dl class="details">
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+ </dl>
2181
+
2182
+
2183
+
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+
2191
+
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+
2201
+
2202
+
2203
+
2204
+ </div>
2205
+
2206
+ <div class="member">
2207
+
2208
+
2209
+
2210
+ <h4 class="name" id="stopTool">
2211
+ <a class="href-link" href="#stopTool">#</a>
2212
+
2213
+ <span class="code-name" id="stopTool" style="font-size:30px">
2214
+
2215
+ stopTool<span class="signature">()</span>
2216
+
2217
+ </span>
2218
+ </h4>
2219
+
2220
+
2221
+
2222
+ <div class="description">
2223
+ <p>结束测量</p>
2224
+ </div>
2225
+
2226
+
2227
+
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+ <dl class="details">
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+
2271
+ </dl>
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+ </div>
2296
+
2297
+ </div>
2298
+ </div>
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+ </article>
2305
+
2306
+ </section>