@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,1182 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">MeasureAreaTool</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="MeasureAreaTool">
26
+ <a class="href-link" href="#MeasureAreaTool">#</a>
27
+
28
+ <span class="code-name" id="MeasureAreaTool" style="font-size:30px">
29
+
30
+ new MeasureAreaTool<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>视图</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(result, 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>polygonStyle</code></td>
269
+
270
+
271
+ <td class="type">
272
+
273
+
274
+ <span class="param-type">
275
+
276
+ PolygonGraphics
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>polygonStyle 测量点样式,参考<code>PolygonGraphics</code></p></td>
294
+ </tr>
295
+
296
+
297
+
298
+
299
+ <tr class="deep-level-1">
300
+
301
+ <td class="name"><code>closePointStyle</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>closePointStyle 删除测量结果图标样式,参考<code>Billboard</code></p></td>
327
+ </tr>
328
+
329
+
330
+
331
+
332
+ <tr class="deep-level-1">
333
+
334
+ <td class="name"><code>exHeight</code></td>
335
+
336
+
337
+ <td class="type">
338
+
339
+
340
+ <span class="param-type">
341
+
342
+ Number
343
+
344
+ </span>
345
+
346
+
347
+
348
+
349
+ </td>
350
+
351
+
352
+ <td class="default">
353
+
354
+ 0
355
+
356
+ </td>
357
+
358
+
359
+ <td class="description last"><p>附加高程偏移 (避免遮挡)</p></td>
360
+ </tr>
361
+
362
+
363
+
364
+
365
+ <tr class="deep-level-1">
366
+
367
+ <td class="name"><code>disableDepthTestDistance</code></td>
368
+
369
+
370
+ <td class="type">
371
+
372
+
373
+ <span class="param-type">
374
+
375
+ Number
376
+
377
+ </span>
378
+
379
+
380
+
381
+
382
+ </td>
383
+
384
+
385
+ <td class="default">
386
+
387
+ Number.POSITIVE_INFINITY
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>spaceArea</code></td>
401
+
402
+
403
+ <td class="type">
404
+
405
+
406
+ <span class="param-type">
407
+
408
+ Boolean
409
+
410
+ </span>
411
+
412
+
413
+
414
+
415
+ </td>
416
+
417
+
418
+ <td class="default">
419
+
420
+ </td>
421
+
422
+
423
+ <td class="description last"><p>是否计算空间点面积 默认计算的是球面投影面积</p></td>
424
+ </tr>
425
+
426
+
427
+
428
+
429
+ <tr class="deep-level-1">
430
+
431
+ <td class="name"><code>lineColor</code></td>
432
+
433
+
434
+ <td class="type">
435
+
436
+
437
+ <span class="param-type">
438
+
439
+ Cesium.Color
440
+
441
+ </span>
442
+
443
+
444
+
445
+
446
+ </td>
447
+
448
+
449
+ <td class="default">
450
+
451
+ </td>
452
+
453
+
454
+ <td class="description last"><p>边线颜色</p></td>
455
+ </tr>
456
+
457
+
458
+
459
+
460
+ <tr class="deep-level-1">
461
+
462
+ <td class="name"><code>areaColor</code></td>
463
+
464
+
465
+ <td class="type">
466
+
467
+
468
+ <span class="param-type">
469
+
470
+ Cesium.Color
471
+
472
+ </span>
473
+
474
+
475
+
476
+
477
+ </td>
478
+
479
+
480
+ <td class="default">
481
+
482
+ </td>
483
+
484
+
485
+ <td class="description last"><p>选定区域颜色</p></td>
486
+ </tr>
487
+
488
+
489
+
490
+
491
+ <tr class="deep-level-1">
492
+
493
+ <td class="name"><code>isTerrain</code></td>
494
+
495
+
496
+ <td class="type">
497
+
498
+
499
+ <span class="param-type">
500
+
501
+ Boolean
502
+
503
+ </span>
504
+
505
+
506
+
507
+
508
+ </td>
509
+
510
+
511
+ <td class="default">
512
+
513
+ false
514
+
515
+ </td>
516
+
517
+
518
+ <td class="description last"><p>是否针对地形,为true时对地形数据进行贴地面积测量,为false时进行空间面积测量</p></td>
519
+ </tr>
520
+
521
+
522
+
523
+
524
+ <tr class="deep-level-1">
525
+
526
+ <td class="name"><code>xPaneNum</code></td>
527
+
528
+
529
+ <td class="type">
530
+
531
+
532
+ <span class="param-type">
533
+
534
+ Number
535
+
536
+ </span>
537
+
538
+
539
+
540
+
541
+ </td>
542
+
543
+
544
+ <td class="default">
545
+
546
+ 32
547
+
548
+ </td>
549
+
550
+
551
+ <td class="description last"><p>地形贴地面积测量中,向经度方向插入采样点的数量</p></td>
552
+ </tr>
553
+
554
+
555
+
556
+
557
+ <tr class="deep-level-1">
558
+
559
+ <td class="name"><code>yPaneNum</code></td>
560
+
561
+
562
+ <td class="type">
563
+
564
+
565
+ <span class="param-type">
566
+
567
+ Number
568
+
569
+ </span>
570
+
571
+
572
+
573
+
574
+ </td>
575
+
576
+
577
+ <td class="default">
578
+
579
+ 32
580
+
581
+ </td>
582
+
583
+
584
+ <td class="description last"><p>地形贴地面积测量中,向纬度方向插入采样点的数量</p></td>
585
+ </tr>
586
+
587
+
588
+
589
+
590
+ <tr class="deep-level-1">
591
+
592
+ <td class="name"><code>classificationType</code></td>
593
+
594
+
595
+ <td class="type">
596
+
597
+
598
+ <span class="param-type">
599
+
600
+ Number
601
+
602
+ </span>
603
+
604
+
605
+
606
+
607
+ </td>
608
+
609
+
610
+ <td class="default">
611
+
612
+ 0
613
+
614
+ </td>
615
+
616
+
617
+ <td class="description last"><p>测量区域的绘制结果显示,区分地形、模型,为0代表在地形上绘制,为1代表在模型上绘制,为2代表同时在地形和模型上绘制</p></td>
618
+ </tr>
619
+
620
+
621
+
622
+
623
+ <tr class="deep-level-1">
624
+
625
+ <td class="name"><code>style</code></td>
626
+
627
+
628
+ <td class="type">
629
+
630
+
631
+ <span class="param-type">
632
+
633
+ Cesium.LabelStyle
634
+
635
+ </span>
636
+
637
+
638
+
639
+
640
+ </td>
641
+
642
+
643
+ <td class="default">
644
+
645
+ Cesium.LabelStyle.FILL
646
+
647
+ </td>
648
+
649
+
650
+ <td class="description last"><p>label 文字的样式,支持填充、线框。填充和线框, FILL, OUTLINE, FILL_AND_OUTLINE</p></td>
651
+ </tr>
652
+
653
+
654
+
655
+
656
+ <tr class="deep-level-1">
657
+
658
+ <td class="name"><code>font</code></td>
659
+
660
+
661
+ <td class="type">
662
+
663
+
664
+ <span class="param-type">
665
+
666
+ String
667
+
668
+ </span>
669
+
670
+
671
+
672
+
673
+ </td>
674
+
675
+
676
+ <td class="default">
677
+
678
+ '12pt 楷体'
679
+
680
+ </td>
681
+
682
+
683
+ <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>
684
+ </tr>
685
+
686
+
687
+
688
+
689
+ <tr class="deep-level-1">
690
+
691
+ <td class="name"><code>fillColor</code></td>
692
+
693
+
694
+ <td class="type">
695
+
696
+
697
+ <span class="param-type">
698
+
699
+ Cesium.Color
700
+
701
+ </span>
702
+
703
+
704
+
705
+
706
+ </td>
707
+
708
+
709
+ <td class="default">
710
+
711
+ Cesium.Color.WHITE
712
+
713
+ </td>
714
+
715
+
716
+ <td class="description last"><p>label 的字体颜色</p></td>
717
+ </tr>
718
+
719
+
720
+
721
+
722
+ <tr class="deep-level-1">
723
+
724
+ <td class="name"><code>outlineColor</code></td>
725
+
726
+
727
+ <td class="type">
728
+
729
+
730
+ <span class="param-type">
731
+
732
+ Cesium.Color
733
+
734
+ </span>
735
+
736
+
737
+
738
+
739
+ </td>
740
+
741
+
742
+ <td class="default">
743
+
744
+ Cesium.Color.WHITE
745
+
746
+ </td>
747
+
748
+
749
+ <td class="description last"><p>label 文字线框的颜色</p></td>
750
+ </tr>
751
+
752
+
753
+
754
+
755
+ <tr class="deep-level-1">
756
+
757
+ <td class="name"><code>outlineWidth</code></td>
758
+
759
+
760
+ <td class="type">
761
+
762
+
763
+ <span class="param-type">
764
+
765
+ Number
766
+
767
+ </span>
768
+
769
+
770
+
771
+
772
+ </td>
773
+
774
+
775
+ <td class="default">
776
+
777
+ 4.0
778
+
779
+ </td>
780
+
781
+
782
+ <td class="description last"><p>label 的外轮廓边线</p></td>
783
+ </tr>
784
+
785
+
786
+
787
+
788
+ <tr class="deep-level-1">
789
+
790
+ <td class="name"><code>verticalOrigin</code></td>
791
+
792
+
793
+ <td class="type">
794
+
795
+
796
+ <span class="param-type">
797
+
798
+ Cesium.VerticalOrigin
799
+
800
+ </span>
801
+
802
+
803
+
804
+
805
+ </td>
806
+
807
+
808
+ <td class="default">
809
+
810
+ Cesium.VerticalOrigin.BOTTOM
811
+
812
+ </td>
813
+
814
+
815
+ <td class="description last"><p>label 的摆放位置</p></td>
816
+ </tr>
817
+
818
+
819
+
820
+
821
+ <tr class="deep-level-1">
822
+
823
+ <td class="name"><code>showBackground</code></td>
824
+
825
+
826
+ <td class="type">
827
+
828
+
829
+ <span class="param-type">
830
+
831
+ Boolean
832
+
833
+ </span>
834
+
835
+
836
+
837
+
838
+ </td>
839
+
840
+
841
+ <td class="default">
842
+
843
+ true
844
+
845
+ </td>
846
+
847
+
848
+ <td class="description last"><p>是否显示 label 的背景</p></td>
849
+ </tr>
850
+
851
+
852
+
853
+
854
+ <tr class="deep-level-1">
855
+
856
+ <td class="name"><code>backgroundColor</code></td>
857
+
858
+
859
+ <td class="type">
860
+
861
+
862
+ <span class="param-type">
863
+
864
+ Cesium.Color
865
+
866
+ </span>
867
+
868
+
869
+
870
+
871
+ </td>
872
+
873
+
874
+ <td class="default">
875
+
876
+ new Cesium.Color(0, 0, 0, 0.4)
877
+
878
+ </td>
879
+
880
+
881
+ <td class="description last"><p>lable 背景的颜色</p></td>
882
+ </tr>
883
+
884
+
885
+
886
+
887
+ <tr class="deep-level-1">
888
+
889
+ <td class="name"><code>pixelOffset</code></td>
890
+
891
+
892
+ <td class="type">
893
+
894
+
895
+ <span class="param-type">
896
+
897
+ Cartesian2
898
+
899
+ </span>
900
+
901
+
902
+
903
+
904
+ </td>
905
+
906
+
907
+ <td class="default">
908
+
909
+ new Cesium.Cartesian2(0, -4)
910
+
911
+ </td>
912
+
913
+
914
+ <td class="description last"><p>label 相对于设定点的偏移位置</p></td>
915
+ </tr>
916
+
917
+
918
+
919
+
920
+ <tr class="deep-level-1">
921
+
922
+ <td class="name"><code>enableScaleByDistance</code></td>
923
+
924
+
925
+ <td class="type">
926
+
927
+
928
+ <span class="param-type">
929
+
930
+ Number
931
+
932
+ </span>
933
+
934
+
935
+
936
+
937
+ </td>
938
+
939
+
940
+ <td class="default">
941
+
942
+ true
943
+
944
+ </td>
945
+
946
+
947
+ <td class="description last"><p>是否启用标签随视角高度缩放功能</p></td>
948
+ </tr>
949
+
950
+
951
+
952
+
953
+ <tr class="deep-level-1">
954
+
955
+ <td class="name"><code>scaleByDistance</code></td>
956
+
957
+
958
+ <td class="type">
959
+
960
+
961
+ <span class="param-type">
962
+
963
+ Number
964
+
965
+ </span>
966
+
967
+
968
+
969
+
970
+ </td>
971
+
972
+
973
+ <td class="default">
974
+
975
+ </td>
976
+
977
+
978
+ <td class="description last"><p>标签代销随视角高度缩放函数,用户可自定义,不传则使用默认函数,会传入一个当前的相机视角高度,返回一个NearFarScale函数对象,详见下方示例</p></td>
979
+ </tr>
980
+
981
+
982
+
983
+
984
+ <tr class="deep-level-1">
985
+
986
+ <td class="name"><code>isContinueDraw</code></td>
987
+
988
+
989
+ <td class="type">
990
+
991
+
992
+ <span class="param-type">
993
+
994
+ Number
995
+
996
+ </span>
997
+
998
+
999
+
1000
+
1001
+ </td>
1002
+
1003
+
1004
+ <td class="default">
1005
+
1006
+ true
1007
+
1008
+ </td>
1009
+
1010
+
1011
+ <td class="description last"><p>是否连续绘制,true:是,false:否</p></td>
1012
+ </tr>
1013
+
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+ </tbody>
1021
+ </table>
1022
+ </div>
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+ <dl class="details">
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+ <dt class="tag-author">作者:</dt>
1049
+ <dd class="tag-author">
1050
+ <ul>
1051
+ <li>韩彦生</li>
1052
+ </ul>
1053
+ </dd>
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+ </dl>
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+ <h5>示例</h5>
1093
+
1094
+
1095
+ <pre class="prettyprint"><code>function callBack(measureResult){
1096
+ }
1097
+ var measureAreaTool = new Cesium.MeasureAreaTool(viewer,
1098
+ {
1099
+ callBack:callBack,
1100
+ isTerrain:true,
1101
+ xPaneNum:32,
1102
+ yPaneNum:32,
1103
+ scaleByDistance: function(height) {
1104
+ if (height &lt; 30) {
1105
+ return new NearFarScalar(30, 3, 180, 0);
1106
+ } else if (height &lt; 60) {
1107
+ return new NearFarScalar(60, 3, 360, 0);
1108
+ } else if (height &lt; 120) {
1109
+ return new NearFarScalar(120, 3, 720, 0);
1110
+ } else if (height &lt; 240) {
1111
+ return new NearFarScalar(240, 2, 1200, 0);
1112
+ } else if (height &lt; 480) {
1113
+ return new NearFarScalar(480, 2, 2400, 0);
1114
+ } else if (height &lt; 960) {
1115
+ return new NearFarScalar(960, 2, 4800, 0);
1116
+ } else if (height &lt; 1920) {
1117
+ return new NearFarScalar(1920, 2, 9600, 0);
1118
+ } else if (height &lt; 3840) {
1119
+ return new NearFarScalar(3840, 2, 19200, 0);
1120
+ } else if (height &lt; 7680) {
1121
+ return new NearFarScalar(7680, 2, 38400, 0);
1122
+ } else if (height &lt; 15360) {
1123
+ return new NearFarScalar(15360, 2, 76800, 0);
1124
+ } else if (height &lt; 30720) {
1125
+ return new NearFarScalar(30720, 2, 153600, 0);
1126
+ } else if (height &lt; 61440) {
1127
+ return new NearFarScalar(61440, 2, 307200, 0);
1128
+ } else if (height &lt; 122880) {
1129
+ return new NearFarScalar(122880, 2, 614400, 0);
1130
+ } else if (height &lt; 245760) {
1131
+ return new NearFarScalar(245760, 2, 1228800, 0);
1132
+ } else if (height &lt; 491520) {
1133
+ return new NearFarScalar(491520, 2, 2457600, 0);
1134
+ } else if (height &lt; 983040) {
1135
+ return new NearFarScalar(983040, 2, 4915200, 0);
1136
+ } else if (height &lt; 1966080) {
1137
+ return new NearFarScalar(1966080, 2, 9830400, 0);
1138
+ } else if (height &lt; 3932160) {
1139
+ return new NearFarScalar(3932160, 1, 19660800, 0);
1140
+ } else if (height &lt; 7864320) {
1141
+ return new NearFarScalar(7864320, 1, 39321600, 0);
1142
+ } else if (height &lt; 15728640) {
1143
+ return new NearFarScalar(15728640, 1, 78643200, 0);
1144
+ }
1145
+ return new NearFarScalar(15728640, 1, 78643200, 0);
1146
+ }
1147
+ });
1148
+ measureAreaTool.startTool(); //开始测量
1149
+ //measureAreaTool.stopTool(); //结束测量</code></pre>
1150
+
1151
+
1152
+
1153
+
1154
+ </div>
1155
+ </div>
1156
+ </div>
1157
+
1158
+
1159
+ </div>
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+ </article>
1181
+
1182
+ </section>