@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,3701 @@
1
+ <header id="page-title" class="page-title">
2
+
3
+ <span class="page-title-main">类名</span>
4
+ <span class="page-title-sub">CesiumHeatmap</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="CesiumHeatmap">
26
+ <a class="href-link" href="#CesiumHeatmap">#</a>
27
+
28
+ <span class="code-name" id="CesiumHeatmap" style="font-size:30px">
29
+
30
+ new CesiumHeatmap<span class="signature">()</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
+
51
+
52
+
53
+
54
+ <dl class="details">
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+ </dl>
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <h5>示例</h5>
111
+
112
+ <p class="code-caption"><h7>热力图</h7></p>
113
+
114
+
115
+ <pre class="prettyprint"><code>// 参考示例:
116
+ http://192.168.82.91:8086/#/modules/cesium/visualization/themeLayer/heat-map
117
+
118
+ // ES5引入方式
119
+ const { CesiumHeatmap } = zondy.cesium
120
+ // ES6引入方式
121
+ import { CesiumHeatmap } from "@mapgis/webclient-cesium-plugin"
122
+
123
+ // 1 构造热力图初始化参数
124
+ const options = {
125
+ // 热力半径
126
+ radius: 36,
127
+ // 图层透明度
128
+ alpha: 0.85,
129
+ // 模糊因子
130
+ blur: 0.75,
131
+ // 热力图颜色梯度
132
+ gradient: {
133
+ 0.3: 'rgb(0,0,255)',
134
+ 0.65: 'rgb(255,255,0)',
135
+ 0.8: 'rgb(255,128,0)',
136
+ 0.95: 'rgb(255,0,0)'
137
+ },
138
+ // 是否自动重算热力半径
139
+ canChange: false
140
+ }
141
+
142
+ // 2 创建热力图
143
+ const heatMap = zondy.cesium.CesiumHeatmap.create(
144
+ // Cesium场景视图对象
145
+ viewer,
146
+ // 热力图范围
147
+ bounds,
148
+ // 热力图额外初始化参数
149
+ options
150
+ )
151
+
152
+ // 3 构建热力图数据,在矩形框内创建随机点,200个
153
+ const bounds = {
154
+ east: 114.40295687456313,
155
+ north: 30.467989447011963,
156
+ south: 30.465570241010646,
157
+ west: 114.40024175306026
158
+ }
159
+ const array = zondy.cesium.AlgorithmLib.getRandomPointByRect(
160
+ bounds.west,
161
+ bounds.south,
162
+ bounds.east,
163
+ bounds.north,
164
+ 200
165
+ )
166
+ const heatMapData = []
167
+ for (let i = 0; i &lt; array.length; i++) {
168
+ heatMapData.push({
169
+ x: array[i].x,
170
+ y: array[i].y,
171
+ // 获取30到150之间的随机值
172
+ value: parseInt(Math.random() * (150 - 30 + 1) + 30, 10)
173
+ })
174
+ }
175
+
176
+ // 4 添加数据集,并设置数据范围
177
+ heatMap.setWGS84Data(30, 150, heatMapData)</code></pre>
178
+
179
+
180
+
181
+
182
+ </div>
183
+ </div>
184
+ </div>
185
+
186
+
187
+ </div>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <div class='vertical-section'>
205
+ <h3 id='function'>方法</h3>
206
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
207
+ <div class="members">
208
+ <div class="table-container">
209
+ <table class="params table">
210
+ <thead>
211
+ <tr>
212
+ <th>名称</th>
213
+ <th>返回值类型</th>
214
+ <th>描述</th>
215
+ </tr>
216
+ </thead>
217
+ <tbody>
218
+
219
+ <tr class="deep-level-0">
220
+ <td class="name"><code><a href="#create">create</a></code></td>
221
+ <td class="name">
222
+ <code>
223
+
224
+
225
+ <span class="param-type">
226
+
227
+ Object
228
+
229
+ </span>
230
+
231
+
232
+
233
+
234
+ </code>
235
+ </td>
236
+ <td class="name"><code><p>创建并返回一个热力图对象</p></code></td>
237
+ </tr>
238
+
239
+ <tr class="deep-level-0">
240
+ <td class="name"><code><a href="#mercatorToWgs84">mercatorToWgs84</a></code></td>
241
+ <td class="name">
242
+ <code>
243
+
244
+ </code>
245
+ </td>
246
+ <td class="name"><code><p>Convert a mercator location into a WGS84 location</p>
247
+ <p>p: the mercator lcation like {x, y}</p></code></td>
248
+ </tr>
249
+
250
+ </tbody>
251
+ </table>
252
+ </div>
253
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
254
+
255
+ <div class="member">
256
+
257
+
258
+
259
+ <h4 class="name" id=".create">
260
+ <a class="href-link" href="#.create">#</a>
261
+
262
+
263
+ <span class='tag'>static</span>
264
+
265
+
266
+ <span class="code-name" id="create" style="font-size:30px">
267
+
268
+ create<span class="signature">(viewer<span class="signature-attributes">opt</span>, boundingbox<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span>
269
+
270
+ </span>
271
+ </h4>
272
+
273
+
274
+
275
+ <div class="description">
276
+ <p>创建并返回一个热力图对象</p>
277
+ </div>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+ <h4>参数</h4>
289
+
290
+ <div class="table-container">
291
+ <table class="params table">
292
+ <thead>
293
+ <tr>
294
+
295
+ <th>名称</th>
296
+
297
+
298
+ <th>类型</th>
299
+
300
+
301
+ <th style="min-width: 100px;">默认值</th>
302
+
303
+
304
+ <th class="last">描述</th>
305
+ </tr>
306
+ </thead>
307
+
308
+ <tbody>
309
+
310
+
311
+
312
+ <tr class="deep-level-0">
313
+
314
+ <td class="name"><code>viewer</code></td>
315
+
316
+
317
+ <td class="type">
318
+
319
+
320
+ <span class="param-type">
321
+
322
+ <a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
323
+
324
+ </span>
325
+
326
+
327
+
328
+
329
+ </td>
330
+
331
+
332
+ <td class="default">
333
+
334
+ null
335
+
336
+ </td>
337
+
338
+
339
+ <td class="description last"><p>场景视图</p></td>
340
+ </tr>
341
+
342
+
343
+
344
+
345
+
346
+
347
+ <tr class="deep-level-0">
348
+
349
+ <td class="name"><code>boundingbox</code></td>
350
+
351
+
352
+ <td class="type">
353
+
354
+
355
+ <span class="param-type">
356
+
357
+ Cesium.Rectangle
358
+
359
+ </span>
360
+
361
+
362
+
363
+
364
+ </td>
365
+
366
+
367
+ <td class="default">
368
+
369
+ null
370
+
371
+ </td>
372
+
373
+
374
+ <td class="description last"><p>热力图范围</p></td>
375
+ </tr>
376
+
377
+
378
+
379
+
380
+
381
+
382
+ <tr class="deep-level-0">
383
+
384
+ <td class="name"><code>options</code></td>
385
+
386
+
387
+ <td class="type">
388
+
389
+
390
+ <span class="param-type">
391
+
392
+ Object
393
+
394
+ </span>
395
+
396
+
397
+
398
+
399
+ </td>
400
+
401
+
402
+ <td class="default">
403
+
404
+ {}
405
+
406
+ </td>
407
+
408
+
409
+ <td class="description last"><p>可选参数</p></td>
410
+ </tr>
411
+
412
+
413
+
414
+
415
+ <tr class="deep-level-1">
416
+
417
+ <td class="name"><code>minCanvasSize</code></td>
418
+
419
+
420
+ <td class="type">
421
+
422
+
423
+ <span class="param-type">
424
+
425
+ Number
426
+
427
+ </span>
428
+
429
+
430
+
431
+
432
+ </td>
433
+
434
+
435
+ <td class="default">
436
+
437
+ 700
438
+
439
+ </td>
440
+
441
+
442
+ <td class="description last"><p>热力图画布最小尺寸</p></td>
443
+ </tr>
444
+
445
+
446
+
447
+
448
+ <tr class="deep-level-1">
449
+
450
+ <td class="name"><code>maxCanvasSize</code></td>
451
+
452
+
453
+ <td class="type">
454
+
455
+
456
+ <span class="param-type">
457
+
458
+ Number
459
+
460
+ </span>
461
+
462
+
463
+
464
+
465
+ </td>
466
+
467
+
468
+ <td class="default">
469
+
470
+ 2000
471
+
472
+ </td>
473
+
474
+
475
+ <td class="description last"><p>热力图画布最大尺寸</p></td>
476
+ </tr>
477
+
478
+
479
+
480
+
481
+ <tr class="deep-level-1">
482
+
483
+ <td class="name"><code>radiusFactor</code></td>
484
+
485
+
486
+ <td class="type">
487
+
488
+
489
+ <span class="param-type">
490
+
491
+ Number
492
+
493
+ </span>
494
+
495
+
496
+
497
+
498
+ </td>
499
+
500
+
501
+ <td class="default">
502
+
503
+ 60
504
+
505
+ </td>
506
+
507
+
508
+ <td class="description last"><p>如果没有给出半径,则使用数据点大小因子(高度和宽度中的较大者除以这个数字产生使用的半径)</p></td>
509
+ </tr>
510
+
511
+
512
+
513
+
514
+ <tr class="deep-level-1">
515
+
516
+ <td class="name"><code>spacingFactor</code></td>
517
+
518
+
519
+ <td class="type">
520
+
521
+
522
+ <span class="param-type">
523
+
524
+ Number
525
+
526
+ </span>
527
+
528
+
529
+
530
+
531
+ </td>
532
+
533
+
534
+ <td class="default">
535
+
536
+ 1.5
537
+
538
+ </td>
539
+
540
+
541
+ <td class="description last"><p>边界周围的额外空间(点半径乘以这个数字产生间距)</p></td>
542
+ </tr>
543
+
544
+
545
+
546
+
547
+ <tr class="deep-level-1">
548
+
549
+ <td class="name"><code>maxOpacity</code></td>
550
+
551
+
552
+ <td class="type">
553
+
554
+
555
+ <span class="param-type">
556
+
557
+ Number
558
+
559
+ </span>
560
+
561
+
562
+
563
+
564
+ </td>
565
+
566
+
567
+ <td class="default">
568
+
569
+ 0.8
570
+
571
+ </td>
572
+
573
+
574
+ <td class="description last"><p>如果未在热力图选项对象中给出,则使用的最大不透明度</p></td>
575
+ </tr>
576
+
577
+
578
+
579
+
580
+ <tr class="deep-level-1">
581
+
582
+ <td class="name"><code>minOpacity</code></td>
583
+
584
+
585
+ <td class="type">
586
+
587
+
588
+ <span class="param-type">
589
+
590
+ Number
591
+
592
+ </span>
593
+
594
+
595
+
596
+
597
+ </td>
598
+
599
+
600
+ <td class="default">
601
+
602
+ 0.1
603
+
604
+ </td>
605
+
606
+
607
+ <td class="description last"><p>如果未在热图选项对象中给出,则使用的最小不透明度</p></td>
608
+ </tr>
609
+
610
+
611
+
612
+
613
+ <tr class="deep-level-1">
614
+
615
+ <td class="name"><code>blur</code></td>
616
+
617
+
618
+ <td class="type">
619
+
620
+
621
+ <span class="param-type">
622
+
623
+ Number
624
+
625
+ </span>
626
+
627
+
628
+
629
+
630
+ </td>
631
+
632
+
633
+ <td class="default">
634
+
635
+ 0.85
636
+
637
+ </td>
638
+
639
+
640
+ <td class="description last"><p>如果未在热力图选项对象中给出,则使用的模糊值为0.85。模糊值越高,渐变越平滑。</p></td>
641
+ </tr>
642
+
643
+
644
+
645
+
646
+ <tr class="deep-level-1">
647
+
648
+ <td class="name"><code>gradient</code></td>
649
+
650
+
651
+ <td class="type">
652
+
653
+
654
+ <span class="param-type">
655
+
656
+ Object
657
+
658
+ </span>
659
+
660
+
661
+
662
+
663
+ </td>
664
+
665
+
666
+ <td class="default">
667
+
668
+ {'0.3':'rgb(0,0,255)','0.65':'yellow','0.8':'orange','0.95':'red'}
669
+
670
+ </td>
671
+
672
+
673
+ <td class="description last"><p>热力图颜色梯度</p></td>
674
+ </tr>
675
+
676
+
677
+
678
+
679
+ <tr class="deep-level-1">
680
+
681
+ <td class="name"><code>canChange</code></td>
682
+
683
+
684
+ <td class="type">
685
+
686
+
687
+ <span class="param-type">
688
+
689
+ Boolean
690
+
691
+ </span>
692
+
693
+
694
+
695
+
696
+ </td>
697
+
698
+
699
+ <td class="default">
700
+
701
+ true
702
+
703
+ </td>
704
+
705
+
706
+ <td class="description last"><p>默认自动重算热力半径</p></td>
707
+ </tr>
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+ </tbody>
716
+ </table>
717
+ </div>
718
+
719
+
720
+
721
+
722
+
723
+
724
+ <dl class="details">
725
+
726
+
727
+
728
+
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+ </dl>
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+ <div class='columns method-parameter'>
776
+ <div class="column is-2"><label>返回值</label></div>
777
+ <div class="column is-10">
778
+
779
+
780
+
781
+ <div class="columns">
782
+
783
+ <div class='param-desc column is-7'><p>热力图对象</p></div>
784
+
785
+
786
+ <div class='column is-5 has-text-left'>
787
+ <label>类型: </label>
788
+
789
+ <span class="param-type">
790
+
791
+ Object
792
+
793
+ </span>
794
+
795
+
796
+
797
+ </div>
798
+
799
+ </div>
800
+
801
+
802
+ </div>
803
+ </div>
804
+
805
+
806
+
807
+
808
+
809
+
810
+ </div>
811
+
812
+ <div class="member">
813
+
814
+
815
+
816
+ <h4 class="name" id=".mercatorToWgs84">
817
+ <a class="href-link" href="#.mercatorToWgs84">#</a>
818
+
819
+
820
+ <span class='tag'>static</span>
821
+
822
+
823
+ <span class="code-name" id="mercatorToWgs84" style="font-size:30px">
824
+
825
+ mercatorToWgs84<span class="signature">()</span>
826
+
827
+ </span>
828
+ </h4>
829
+
830
+
831
+
832
+ <div class="description">
833
+ <p>Convert a mercator location into a WGS84 location</p>
834
+ <p>p: the mercator lcation like {x, y}</p>
835
+ </div>
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+ <dl class="details">
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+ </dl>
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+ </div>
907
+
908
+ </div>
909
+ </div>
910
+
911
+
912
+
913
+
914
+
915
+ </article>
916
+
917
+ </section>
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+ <section>
926
+
927
+ <article>
928
+ <div class="container-overview">
929
+
930
+
931
+ <div class='vertical-section'>
932
+ <div class="members">
933
+ <div class="member">
934
+
935
+
936
+
937
+
938
+ <h4 class="name" id="CesiumHeatmap">
939
+ <a class="href-link" href="#CesiumHeatmap">#</a>
940
+
941
+ <span class="code-name" id="CesiumHeatmap" style="font-size:30px">
942
+
943
+ new CesiumHeatmap<span class="signature">(viewer, options<span class="signature-attributes">opt</span>)</span>
944
+
945
+ </span>
946
+ </h4>
947
+
948
+
949
+
950
+ <div class="description">
951
+ <p>填挖方分析</p>
952
+ </div>
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+ <h4>参数</h4>
964
+
965
+ <div class="table-container">
966
+ <table class="params table">
967
+ <thead>
968
+ <tr>
969
+
970
+ <th>名称</th>
971
+
972
+
973
+ <th>类型</th>
974
+
975
+
976
+ <th style="min-width: 100px;">默认值</th>
977
+
978
+
979
+ <th class="last">描述</th>
980
+ </tr>
981
+ </thead>
982
+
983
+ <tbody>
984
+
985
+
986
+
987
+ <tr class="deep-level-0">
988
+
989
+ <td class="name"><code>viewer</code></td>
990
+
991
+
992
+ <td class="type">
993
+
994
+
995
+ <span class="param-type">
996
+
997
+ <a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
998
+
999
+ </span>
1000
+
1001
+
1002
+
1003
+
1004
+ </td>
1005
+
1006
+
1007
+ <td class="default">
1008
+
1009
+ </td>
1010
+
1011
+
1012
+ <td class="description last"><p>场景视图对象</p></td>
1013
+ </tr>
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+ <tr class="deep-level-0">
1021
+
1022
+ <td class="name"><code>options</code></td>
1023
+
1024
+
1025
+ <td class="type">
1026
+
1027
+
1028
+ <span class="param-type">
1029
+
1030
+ Object
1031
+
1032
+ </span>
1033
+
1034
+
1035
+
1036
+
1037
+ </td>
1038
+
1039
+
1040
+ <td class="default">
1041
+
1042
+ {}
1043
+
1044
+ </td>
1045
+
1046
+
1047
+ <td class="description last"><p>附加参数</p></td>
1048
+ </tr>
1049
+
1050
+
1051
+
1052
+
1053
+ <tr class="deep-level-1">
1054
+
1055
+ <td class="name"><code>dataLyers</code></td>
1056
+
1057
+
1058
+ <td class="type">
1059
+
1060
+
1061
+ <span class="param-type">
1062
+
1063
+ Object
1064
+
1065
+ </span>
1066
+
1067
+
1068
+
1069
+
1070
+ </td>
1071
+
1072
+
1073
+ <td class="default">
1074
+
1075
+ viewer.terrainProvider
1076
+
1077
+ </td>
1078
+
1079
+
1080
+ <td class="description last"><p>地形图层</p></td>
1081
+ </tr>
1082
+
1083
+
1084
+
1085
+
1086
+ <tr class="deep-level-1">
1087
+
1088
+ <td class="name"><code>xPaneNum</code></td>
1089
+
1090
+
1091
+ <td class="type">
1092
+
1093
+
1094
+ <span class="param-type">
1095
+
1096
+ Number
1097
+
1098
+ </span>
1099
+
1100
+
1101
+
1102
+
1103
+ </td>
1104
+
1105
+
1106
+ <td class="default">
1107
+
1108
+ 16
1109
+
1110
+ </td>
1111
+
1112
+
1113
+ <td class="description last"><p>X坐标方向采样点的个数,数值越大采样点越多,采样耗时越久</p></td>
1114
+ </tr>
1115
+
1116
+
1117
+
1118
+
1119
+ <tr class="deep-level-1">
1120
+
1121
+ <td class="name"><code>yPaneNum</code></td>
1122
+
1123
+
1124
+ <td class="type">
1125
+
1126
+
1127
+ <span class="param-type">
1128
+
1129
+ Number
1130
+
1131
+ </span>
1132
+
1133
+
1134
+
1135
+
1136
+ </td>
1137
+
1138
+
1139
+ <td class="default">
1140
+
1141
+ 16
1142
+
1143
+ </td>
1144
+
1145
+
1146
+ <td class="description last"><p>Y坐标方向采样点的个数,数值越大采样点越多,采样耗时越久</p></td>
1147
+ </tr>
1148
+
1149
+
1150
+
1151
+
1152
+ <tr class="deep-level-1">
1153
+
1154
+ <td class="name"><code>xCellLength</code></td>
1155
+
1156
+
1157
+ <td class="type">
1158
+
1159
+
1160
+ <span class="param-type">
1161
+
1162
+ Number
1163
+
1164
+ </span>
1165
+
1166
+
1167
+
1168
+
1169
+ </td>
1170
+
1171
+
1172
+ <td class="default">
1173
+
1174
+ -1
1175
+
1176
+ </td>
1177
+
1178
+
1179
+ <td class="description last"><p>设定格子X方向距离,默认为负值的情况下,使用直接设定paneNumber的采样点个数</p></td>
1180
+ </tr>
1181
+
1182
+
1183
+
1184
+
1185
+ <tr class="deep-level-1">
1186
+
1187
+ <td class="name"><code>yCellLength</code></td>
1188
+
1189
+
1190
+ <td class="type">
1191
+
1192
+
1193
+ <span class="param-type">
1194
+
1195
+ Number
1196
+
1197
+ </span>
1198
+
1199
+
1200
+
1201
+
1202
+ </td>
1203
+
1204
+
1205
+ <td class="default">
1206
+
1207
+ -1
1208
+
1209
+ </td>
1210
+
1211
+
1212
+ <td class="description last"><p>设定格子Y方向距离</p></td>
1213
+ </tr>
1214
+
1215
+
1216
+
1217
+
1218
+ <tr class="deep-level-1">
1219
+
1220
+ <td class="name"><code>height</code></td>
1221
+
1222
+
1223
+ <td class="type">
1224
+
1225
+
1226
+ <span class="param-type">
1227
+
1228
+ Number
1229
+
1230
+ </span>
1231
+
1232
+
1233
+
1234
+
1235
+ </td>
1236
+
1237
+
1238
+ <td class="default">
1239
+
1240
+ 0
1241
+
1242
+ </td>
1243
+
1244
+
1245
+ <td class="description last"><p>填挖方平整高程,低于该高度会计算填方体积,高于该高度会计算挖方体积</p></td>
1246
+ </tr>
1247
+
1248
+
1249
+
1250
+
1251
+ <tr class="deep-level-1">
1252
+
1253
+ <td class="name"><code>dataType</code></td>
1254
+
1255
+
1256
+ <td class="type">
1257
+
1258
+
1259
+ <span class="param-type">
1260
+
1261
+ Number
1262
+
1263
+ </span>
1264
+
1265
+
1266
+
1267
+
1268
+ </td>
1269
+
1270
+
1271
+ <td class="default">
1272
+
1273
+ 0.0
1274
+
1275
+ </td>
1276
+
1277
+
1278
+ <td class="description last"><p>要采样的数据类型,0.0:地形,1.0:模型,2.0:场景(地形加模型),请注意当采样类型选择,模型或场景是,采样速度会变慢</p></td>
1279
+ </tr>
1280
+
1281
+
1282
+
1283
+
1284
+ <tr class="deep-level-1">
1285
+
1286
+ <td class="name"><code>callBack</code></td>
1287
+
1288
+
1289
+ <td class="type">
1290
+
1291
+
1292
+ <span class="param-type">
1293
+
1294
+ function
1295
+
1296
+ </span>
1297
+
1298
+
1299
+
1300
+
1301
+ </td>
1302
+
1303
+
1304
+ <td class="default">
1305
+
1306
+ null
1307
+
1308
+ </td>
1309
+
1310
+
1311
+ <td class="description last"><p>结果回调函数</p></td>
1312
+ </tr>
1313
+
1314
+
1315
+
1316
+
1317
+ <tr class="deep-level-1">
1318
+
1319
+ <td class="name"><code>terrainLevel</code></td>
1320
+
1321
+
1322
+ <td class="type">
1323
+
1324
+
1325
+ <span class="param-type">
1326
+
1327
+ Number
1328
+
1329
+ </span>
1330
+
1331
+
1332
+
1333
+
1334
+ </td>
1335
+
1336
+
1337
+ <td class="default">
1338
+
1339
+ -1
1340
+
1341
+ </td>
1342
+
1343
+
1344
+ <td class="description last"><p>地形取高程时使用的地形层级,默认使用最精细级</p></td>
1345
+ </tr>
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+ </tbody>
1354
+ </table>
1355
+ </div>
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+ <dl class="details">
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+
1383
+
1384
+
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+
1392
+
1393
+
1394
+ </dl>
1395
+
1396
+
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+ <h5>示例</h5>
1419
+
1420
+ <p class="code-caption"><h7>填挖方分析</h7></p>
1421
+
1422
+
1423
+ <pre class="prettyprint"><code>// ES5引入方式
1424
+ const { CutFillAnalysis } = zondy.cesium
1425
+ // ES6引入方式
1426
+ import { CutFillAnalysis } from "@mapgis/webclient-cesium-plugin"
1427
+
1428
+ // 1 初始化填挖方分析对象
1429
+ const cutFill = new CutFillAnalysis(viewer, {
1430
+ // 要采样的数据类型,0.0:地形,1.0:模型,2.0:场景(地形加模型)
1431
+ dataType: 0,
1432
+ // X坐标方向采样点的个数,数值越大采样点越多,采样耗时越久
1433
+ xPaneNum: 16,
1434
+ // Y坐标方向采样点的个数,数值越大采样点越多,采样耗时越久
1435
+ yPaneNum: 16,
1436
+ // 填挖方平整高程,低于该高度会计算填方体积,高于该高度会计算挖方体积
1437
+ height: 1200,
1438
+ // 采样后的回调函数
1439
+ callBack: function (result) {
1440
+ console.log("填挖方计算结果:", result)
1441
+ }
1442
+ });
1443
+ // 设置填挖方范围数组,笛卡尔3坐标数组
1444
+ cutFill.dotsPolygonList = []
1445
+ // 如果不是模型采样,则添加要采样的地形
1446
+ cutFill.terrainProvider = viewer.terrainProvider;
1447
+
1448
+ // 2 开始填挖方分析
1449
+ //获取最大最小经纬度的值
1450
+ const minMax = cutFill.getMinAndMaxCartesian()
1451
+ // 开始分析
1452
+ cutFill.start(minMax)</code></pre>
1453
+
1454
+
1455
+
1456
+
1457
+ </div>
1458
+ </div>
1459
+ </div>
1460
+
1461
+
1462
+ </div>
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+ <div class='vertical-section'>
1480
+ <h3 id='function'>方法</h3>
1481
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
1482
+ <div class="members">
1483
+ <div class="table-container">
1484
+ <table class="params table">
1485
+ <thead>
1486
+ <tr>
1487
+ <th>名称</th>
1488
+ <th>返回值类型</th>
1489
+ <th>描述</th>
1490
+ </tr>
1491
+ </thead>
1492
+ <tbody>
1493
+
1494
+ <tr class="deep-level-0">
1495
+ <td class="name"><code><a href="#create">create</a></code></td>
1496
+ <td class="name">
1497
+ <code>
1498
+
1499
+
1500
+ <span class="param-type">
1501
+
1502
+ Object
1503
+
1504
+ </span>
1505
+
1506
+
1507
+
1508
+
1509
+ </code>
1510
+ </td>
1511
+ <td class="name"><code><p>创建并返回一个热力图对象</p></code></td>
1512
+ </tr>
1513
+
1514
+ <tr class="deep-level-0">
1515
+ <td class="name"><code><a href="#mercatorToWgs84">mercatorToWgs84</a></code></td>
1516
+ <td class="name">
1517
+ <code>
1518
+
1519
+ </code>
1520
+ </td>
1521
+ <td class="name"><code><p>Convert a mercator location into a WGS84 location</p>
1522
+ <p>p: the mercator lcation like {x, y}</p></code></td>
1523
+ </tr>
1524
+
1525
+ </tbody>
1526
+ </table>
1527
+ </div>
1528
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
1529
+
1530
+ <div class="member">
1531
+
1532
+
1533
+
1534
+ <h4 class="name" id=".create">
1535
+ <a class="href-link" href="#.create">#</a>
1536
+
1537
+
1538
+ <span class='tag'>static</span>
1539
+
1540
+
1541
+ <span class="code-name" id="create" style="font-size:30px">
1542
+
1543
+ create<span class="signature">(viewer<span class="signature-attributes">opt</span>, boundingbox<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span>
1544
+
1545
+ </span>
1546
+ </h4>
1547
+
1548
+
1549
+
1550
+ <div class="description">
1551
+ <p>创建并返回一个热力图对象</p>
1552
+ </div>
1553
+
1554
+
1555
+
1556
+
1557
+
1558
+
1559
+
1560
+
1561
+
1562
+
1563
+ <h4>参数</h4>
1564
+
1565
+ <div class="table-container">
1566
+ <table class="params table">
1567
+ <thead>
1568
+ <tr>
1569
+
1570
+ <th>名称</th>
1571
+
1572
+
1573
+ <th>类型</th>
1574
+
1575
+
1576
+ <th style="min-width: 100px;">默认值</th>
1577
+
1578
+
1579
+ <th class="last">描述</th>
1580
+ </tr>
1581
+ </thead>
1582
+
1583
+ <tbody>
1584
+
1585
+
1586
+
1587
+ <tr class="deep-level-0">
1588
+
1589
+ <td class="name"><code>viewer</code></td>
1590
+
1591
+
1592
+ <td class="type">
1593
+
1594
+
1595
+ <span class="param-type">
1596
+
1597
+ <a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
1598
+
1599
+ </span>
1600
+
1601
+
1602
+
1603
+
1604
+ </td>
1605
+
1606
+
1607
+ <td class="default">
1608
+
1609
+ null
1610
+
1611
+ </td>
1612
+
1613
+
1614
+ <td class="description last"><p>场景视图</p></td>
1615
+ </tr>
1616
+
1617
+
1618
+
1619
+
1620
+
1621
+
1622
+ <tr class="deep-level-0">
1623
+
1624
+ <td class="name"><code>boundingbox</code></td>
1625
+
1626
+
1627
+ <td class="type">
1628
+
1629
+
1630
+ <span class="param-type">
1631
+
1632
+ Cesium.Rectangle
1633
+
1634
+ </span>
1635
+
1636
+
1637
+
1638
+
1639
+ </td>
1640
+
1641
+
1642
+ <td class="default">
1643
+
1644
+ null
1645
+
1646
+ </td>
1647
+
1648
+
1649
+ <td class="description last"><p>热力图范围</p></td>
1650
+ </tr>
1651
+
1652
+
1653
+
1654
+
1655
+
1656
+
1657
+ <tr class="deep-level-0">
1658
+
1659
+ <td class="name"><code>options</code></td>
1660
+
1661
+
1662
+ <td class="type">
1663
+
1664
+
1665
+ <span class="param-type">
1666
+
1667
+ Object
1668
+
1669
+ </span>
1670
+
1671
+
1672
+
1673
+
1674
+ </td>
1675
+
1676
+
1677
+ <td class="default">
1678
+
1679
+ {}
1680
+
1681
+ </td>
1682
+
1683
+
1684
+ <td class="description last"><p>可选参数</p></td>
1685
+ </tr>
1686
+
1687
+
1688
+
1689
+
1690
+ <tr class="deep-level-1">
1691
+
1692
+ <td class="name"><code>minCanvasSize</code></td>
1693
+
1694
+
1695
+ <td class="type">
1696
+
1697
+
1698
+ <span class="param-type">
1699
+
1700
+ Number
1701
+
1702
+ </span>
1703
+
1704
+
1705
+
1706
+
1707
+ </td>
1708
+
1709
+
1710
+ <td class="default">
1711
+
1712
+ 700
1713
+
1714
+ </td>
1715
+
1716
+
1717
+ <td class="description last"><p>热力图画布最小尺寸</p></td>
1718
+ </tr>
1719
+
1720
+
1721
+
1722
+
1723
+ <tr class="deep-level-1">
1724
+
1725
+ <td class="name"><code>maxCanvasSize</code></td>
1726
+
1727
+
1728
+ <td class="type">
1729
+
1730
+
1731
+ <span class="param-type">
1732
+
1733
+ Number
1734
+
1735
+ </span>
1736
+
1737
+
1738
+
1739
+
1740
+ </td>
1741
+
1742
+
1743
+ <td class="default">
1744
+
1745
+ 2000
1746
+
1747
+ </td>
1748
+
1749
+
1750
+ <td class="description last"><p>热力图画布最大尺寸</p></td>
1751
+ </tr>
1752
+
1753
+
1754
+
1755
+
1756
+ <tr class="deep-level-1">
1757
+
1758
+ <td class="name"><code>radiusFactor</code></td>
1759
+
1760
+
1761
+ <td class="type">
1762
+
1763
+
1764
+ <span class="param-type">
1765
+
1766
+ Number
1767
+
1768
+ </span>
1769
+
1770
+
1771
+
1772
+
1773
+ </td>
1774
+
1775
+
1776
+ <td class="default">
1777
+
1778
+ 60
1779
+
1780
+ </td>
1781
+
1782
+
1783
+ <td class="description last"><p>如果没有给出半径,则使用数据点大小因子(高度和宽度中的较大者除以这个数字产生使用的半径)</p></td>
1784
+ </tr>
1785
+
1786
+
1787
+
1788
+
1789
+ <tr class="deep-level-1">
1790
+
1791
+ <td class="name"><code>spacingFactor</code></td>
1792
+
1793
+
1794
+ <td class="type">
1795
+
1796
+
1797
+ <span class="param-type">
1798
+
1799
+ Number
1800
+
1801
+ </span>
1802
+
1803
+
1804
+
1805
+
1806
+ </td>
1807
+
1808
+
1809
+ <td class="default">
1810
+
1811
+ 1.5
1812
+
1813
+ </td>
1814
+
1815
+
1816
+ <td class="description last"><p>边界周围的额外空间(点半径乘以这个数字产生间距)</p></td>
1817
+ </tr>
1818
+
1819
+
1820
+
1821
+
1822
+ <tr class="deep-level-1">
1823
+
1824
+ <td class="name"><code>maxOpacity</code></td>
1825
+
1826
+
1827
+ <td class="type">
1828
+
1829
+
1830
+ <span class="param-type">
1831
+
1832
+ Number
1833
+
1834
+ </span>
1835
+
1836
+
1837
+
1838
+
1839
+ </td>
1840
+
1841
+
1842
+ <td class="default">
1843
+
1844
+ 0.8
1845
+
1846
+ </td>
1847
+
1848
+
1849
+ <td class="description last"><p>如果未在热力图选项对象中给出,则使用的最大不透明度</p></td>
1850
+ </tr>
1851
+
1852
+
1853
+
1854
+
1855
+ <tr class="deep-level-1">
1856
+
1857
+ <td class="name"><code>minOpacity</code></td>
1858
+
1859
+
1860
+ <td class="type">
1861
+
1862
+
1863
+ <span class="param-type">
1864
+
1865
+ Number
1866
+
1867
+ </span>
1868
+
1869
+
1870
+
1871
+
1872
+ </td>
1873
+
1874
+
1875
+ <td class="default">
1876
+
1877
+ 0.1
1878
+
1879
+ </td>
1880
+
1881
+
1882
+ <td class="description last"><p>如果未在热图选项对象中给出,则使用的最小不透明度</p></td>
1883
+ </tr>
1884
+
1885
+
1886
+
1887
+
1888
+ <tr class="deep-level-1">
1889
+
1890
+ <td class="name"><code>blur</code></td>
1891
+
1892
+
1893
+ <td class="type">
1894
+
1895
+
1896
+ <span class="param-type">
1897
+
1898
+ Number
1899
+
1900
+ </span>
1901
+
1902
+
1903
+
1904
+
1905
+ </td>
1906
+
1907
+
1908
+ <td class="default">
1909
+
1910
+ 0.85
1911
+
1912
+ </td>
1913
+
1914
+
1915
+ <td class="description last"><p>如果未在热力图选项对象中给出,则使用的模糊值为0.85。模糊值越高,渐变越平滑。</p></td>
1916
+ </tr>
1917
+
1918
+
1919
+
1920
+
1921
+ <tr class="deep-level-1">
1922
+
1923
+ <td class="name"><code>gradient</code></td>
1924
+
1925
+
1926
+ <td class="type">
1927
+
1928
+
1929
+ <span class="param-type">
1930
+
1931
+ Object
1932
+
1933
+ </span>
1934
+
1935
+
1936
+
1937
+
1938
+ </td>
1939
+
1940
+
1941
+ <td class="default">
1942
+
1943
+ {'0.3':'rgb(0,0,255)','0.65':'yellow','0.8':'orange','0.95':'red'}
1944
+
1945
+ </td>
1946
+
1947
+
1948
+ <td class="description last"><p>热力图颜色梯度</p></td>
1949
+ </tr>
1950
+
1951
+
1952
+
1953
+
1954
+ <tr class="deep-level-1">
1955
+
1956
+ <td class="name"><code>canChange</code></td>
1957
+
1958
+
1959
+ <td class="type">
1960
+
1961
+
1962
+ <span class="param-type">
1963
+
1964
+ Boolean
1965
+
1966
+ </span>
1967
+
1968
+
1969
+
1970
+
1971
+ </td>
1972
+
1973
+
1974
+ <td class="default">
1975
+
1976
+ true
1977
+
1978
+ </td>
1979
+
1980
+
1981
+ <td class="description last"><p>默认自动重算热力半径</p></td>
1982
+ </tr>
1983
+
1984
+
1985
+
1986
+
1987
+
1988
+
1989
+
1990
+ </tbody>
1991
+ </table>
1992
+ </div>
1993
+
1994
+
1995
+
1996
+
1997
+
1998
+
1999
+ <dl class="details">
2000
+
2001
+
2002
+
2003
+
2004
+
2005
+
2006
+
2007
+
2008
+
2009
+
2010
+
2011
+
2012
+
2013
+
2014
+
2015
+
2016
+
2017
+
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+
2028
+
2029
+
2030
+
2031
+ </dl>
2032
+
2033
+
2034
+
2035
+
2036
+
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+
2047
+
2048
+
2049
+
2050
+ <div class='columns method-parameter'>
2051
+ <div class="column is-2"><label>返回值</label></div>
2052
+ <div class="column is-10">
2053
+
2054
+
2055
+
2056
+ <div class="columns">
2057
+
2058
+ <div class='param-desc column is-7'><p>热力图对象</p></div>
2059
+
2060
+
2061
+ <div class='column is-5 has-text-left'>
2062
+ <label>类型: </label>
2063
+
2064
+ <span class="param-type">
2065
+
2066
+ Object
2067
+
2068
+ </span>
2069
+
2070
+
2071
+
2072
+ </div>
2073
+
2074
+ </div>
2075
+
2076
+
2077
+ </div>
2078
+ </div>
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+
2085
+ </div>
2086
+
2087
+ <div class="member">
2088
+
2089
+
2090
+
2091
+ <h4 class="name" id=".mercatorToWgs84">
2092
+ <a class="href-link" href="#.mercatorToWgs84">#</a>
2093
+
2094
+
2095
+ <span class='tag'>static</span>
2096
+
2097
+
2098
+ <span class="code-name" id="mercatorToWgs84" style="font-size:30px">
2099
+
2100
+ mercatorToWgs84<span class="signature">()</span>
2101
+
2102
+ </span>
2103
+ </h4>
2104
+
2105
+
2106
+
2107
+ <div class="description">
2108
+ <p>Convert a mercator location into a WGS84 location</p>
2109
+ <p>p: the mercator lcation like {x, y}</p>
2110
+ </div>
2111
+
2112
+
2113
+
2114
+
2115
+
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+
2123
+
2124
+
2125
+ <dl class="details">
2126
+
2127
+
2128
+
2129
+
2130
+
2131
+
2132
+
2133
+
2134
+
2135
+
2136
+
2137
+
2138
+
2139
+
2140
+
2141
+
2142
+
2143
+
2144
+
2145
+
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+
2156
+
2157
+ </dl>
2158
+
2159
+
2160
+
2161
+
2162
+
2163
+
2164
+
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+
2175
+
2176
+
2177
+
2178
+
2179
+
2180
+
2181
+ </div>
2182
+
2183
+ </div>
2184
+ </div>
2185
+
2186
+
2187
+
2188
+
2189
+
2190
+ </article>
2191
+
2192
+ </section>
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+ <section>
2201
+
2202
+ <article>
2203
+ <div class="container-overview">
2204
+
2205
+
2206
+ <div class='vertical-section'>
2207
+ <div class="members">
2208
+ <div class="member">
2209
+
2210
+
2211
+
2212
+
2213
+ <h4 class="name" id="CesiumHeatmap">
2214
+ <a class="href-link" href="#CesiumHeatmap">#</a>
2215
+
2216
+ <span class="code-name" id="CesiumHeatmap" style="font-size:30px">
2217
+
2218
+ new CesiumHeatmap<span class="signature">(viewer, options)</span>
2219
+
2220
+ </span>
2221
+ </h4>
2222
+
2223
+
2224
+
2225
+ <div class="description">
2226
+ <p>统计图</p>
2227
+ </div>
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+ <h4>参数</h4>
2239
+
2240
+ <div class="table-container">
2241
+ <table class="params table">
2242
+ <thead>
2243
+ <tr>
2244
+
2245
+ <th>名称</th>
2246
+
2247
+
2248
+ <th>类型</th>
2249
+
2250
+
2251
+ <th style="min-width: 100px;">默认值</th>
2252
+
2253
+
2254
+ <th class="last">描述</th>
2255
+ </tr>
2256
+ </thead>
2257
+
2258
+ <tbody>
2259
+
2260
+
2261
+
2262
+ <tr class="deep-level-0">
2263
+
2264
+ <td class="name"><code>viewer</code></td>
2265
+
2266
+
2267
+ <td class="type">
2268
+
2269
+
2270
+ <span class="param-type">
2271
+
2272
+ Object
2273
+
2274
+ </span>
2275
+
2276
+
2277
+
2278
+
2279
+ </td>
2280
+
2281
+
2282
+ <td class="default">
2283
+
2284
+ </td>
2285
+
2286
+
2287
+ <td class="description last"><p>视图对象</p></td>
2288
+ </tr>
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+ <tr class="deep-level-0">
2296
+
2297
+ <td class="name"><code>options</code></td>
2298
+
2299
+
2300
+ <td class="type">
2301
+
2302
+
2303
+ <span class="param-type">
2304
+
2305
+ Object
2306
+
2307
+ </span>
2308
+
2309
+
2310
+
2311
+
2312
+ </td>
2313
+
2314
+
2315
+ <td class="default">
2316
+
2317
+ </td>
2318
+
2319
+
2320
+ <td class="description last"><p>附加参数</p></td>
2321
+ </tr>
2322
+
2323
+
2324
+
2325
+
2326
+ <tr class="deep-level-1">
2327
+
2328
+ <td class="name"><code>queryUrl</code></td>
2329
+
2330
+
2331
+ <td class="type">
2332
+
2333
+
2334
+ <span class="param-type">
2335
+
2336
+ String
2337
+
2338
+ </span>
2339
+
2340
+
2341
+
2342
+
2343
+ </td>
2344
+
2345
+
2346
+ <td class="default">
2347
+
2348
+ null
2349
+
2350
+ </td>
2351
+
2352
+
2353
+ <td class="description last"><p>用于查询的url</p></td>
2354
+ </tr>
2355
+
2356
+
2357
+
2358
+
2359
+ <tr class="deep-level-1">
2360
+
2361
+ <td class="name"><code>successCallback</code></td>
2362
+
2363
+
2364
+ <td class="type">
2365
+
2366
+
2367
+ <span class="param-type">
2368
+
2369
+ function
2370
+
2371
+ </span>
2372
+
2373
+
2374
+
2375
+
2376
+ </td>
2377
+
2378
+
2379
+ <td class="default">
2380
+
2381
+ null
2382
+
2383
+ </td>
2384
+
2385
+
2386
+ <td class="description last"><p>成功回调函数</p></td>
2387
+ </tr>
2388
+
2389
+
2390
+
2391
+
2392
+ <tr class="deep-level-1">
2393
+
2394
+ <td class="name"><code>errorCallback</code></td>
2395
+
2396
+
2397
+ <td class="type">
2398
+
2399
+
2400
+ <span class="param-type">
2401
+
2402
+ function
2403
+
2404
+ </span>
2405
+
2406
+
2407
+
2408
+
2409
+ </td>
2410
+
2411
+
2412
+ <td class="default">
2413
+
2414
+ null
2415
+
2416
+ </td>
2417
+
2418
+
2419
+ <td class="description last"><p>错误回调函数</p></td>
2420
+ </tr>
2421
+
2422
+
2423
+
2424
+
2425
+ <tr class="deep-level-1">
2426
+
2427
+ <td class="name"><code>material</code></td>
2428
+
2429
+
2430
+ <td class="type">
2431
+
2432
+
2433
+ <span class="param-type">
2434
+
2435
+ Object
2436
+
2437
+ </span>
2438
+
2439
+
2440
+
2441
+
2442
+ </td>
2443
+
2444
+
2445
+ <td class="default">
2446
+
2447
+ null
2448
+
2449
+ </td>
2450
+
2451
+
2452
+ <td class="description last"><p>材质</p></td>
2453
+ </tr>
2454
+
2455
+
2456
+
2457
+
2458
+ <tr class="deep-level-1">
2459
+
2460
+ <td class="name"><code>width</code></td>
2461
+
2462
+
2463
+ <td class="type">
2464
+
2465
+
2466
+ <span class="param-type">
2467
+
2468
+ Number
2469
+
2470
+ </span>
2471
+
2472
+
2473
+
2474
+
2475
+ </td>
2476
+
2477
+
2478
+ <td class="default">
2479
+
2480
+ 5000
2481
+
2482
+ </td>
2483
+
2484
+
2485
+ <td class="description last"><p>显示柱状体或饼状的宽度</p></td>
2486
+ </tr>
2487
+
2488
+
2489
+
2490
+
2491
+ <tr class="deep-level-1">
2492
+
2493
+ <td class="name"><code>heightScale</code></td>
2494
+
2495
+
2496
+ <td class="type">
2497
+
2498
+
2499
+ <span class="param-type">
2500
+
2501
+ Number
2502
+
2503
+ </span>
2504
+
2505
+
2506
+
2507
+
2508
+ </td>
2509
+
2510
+
2511
+ <td class="default">
2512
+
2513
+ 1
2514
+
2515
+ </td>
2516
+
2517
+
2518
+ <td class="description last"><p>设置柱状图的高度缩放比例</p></td>
2519
+ </tr>
2520
+
2521
+
2522
+
2523
+
2524
+ <tr class="deep-level-1">
2525
+
2526
+ <td class="name"><code>addExtrudedHeight</code></td>
2527
+
2528
+
2529
+ <td class="type">
2530
+
2531
+
2532
+ <span class="param-type">
2533
+
2534
+ Boolean
2535
+
2536
+ </span>
2537
+
2538
+
2539
+
2540
+
2541
+ </td>
2542
+
2543
+
2544
+ <td class="default">
2545
+
2546
+ false
2547
+
2548
+ </td>
2549
+
2550
+
2551
+ <td class="description last"><p>是否为饼状体添加高度</p></td>
2552
+ </tr>
2553
+
2554
+
2555
+
2556
+
2557
+ <tr class="deep-level-1">
2558
+
2559
+ <td class="name"><code>addGeoGeometry</code></td>
2560
+
2561
+
2562
+ <td class="type">
2563
+
2564
+
2565
+ <span class="param-type">
2566
+
2567
+ Boolean
2568
+
2569
+ </span>
2570
+
2571
+
2572
+
2573
+
2574
+ </td>
2575
+
2576
+
2577
+ <td class="default">
2578
+
2579
+ false
2580
+
2581
+ </td>
2582
+
2583
+
2584
+ <td class="description last"><p>解析GeoJson数据时,是否绘制polygon的Geometry</p></td>
2585
+ </tr>
2586
+
2587
+
2588
+
2589
+
2590
+ <tr class="deep-level-1">
2591
+
2592
+ <td class="name"><code>attributeName</code></td>
2593
+
2594
+
2595
+ <td class="type">
2596
+
2597
+
2598
+ <span class="param-type">
2599
+
2600
+ Array
2601
+
2602
+ </span>
2603
+
2604
+
2605
+
2606
+
2607
+ </td>
2608
+
2609
+
2610
+ <td class="default">
2611
+
2612
+ []
2613
+
2614
+ </td>
2615
+
2616
+
2617
+ <td class="description last"><p>用于显示的属性名</p></td>
2618
+ </tr>
2619
+
2620
+
2621
+
2622
+
2623
+ <tr class="deep-level-1">
2624
+
2625
+ <td class="name"><code>attributeColor</code></td>
2626
+
2627
+
2628
+ <td class="type">
2629
+
2630
+
2631
+ <span class="param-type">
2632
+
2633
+ Array
2634
+
2635
+ </span>
2636
+
2637
+
2638
+
2639
+
2640
+ </td>
2641
+
2642
+
2643
+ <td class="default">
2644
+
2645
+ []
2646
+
2647
+ </td>
2648
+
2649
+
2650
+ <td class="description last"><p>各个属性对应的颜色</p></td>
2651
+ </tr>
2652
+
2653
+
2654
+
2655
+
2656
+ <tr class="deep-level-1">
2657
+
2658
+ <td class="name"><code>textFont</code></td>
2659
+
2660
+
2661
+ <td class="type">
2662
+
2663
+
2664
+ <span class="param-type">
2665
+
2666
+ String
2667
+
2668
+ </span>
2669
+
2670
+
2671
+
2672
+
2673
+ </td>
2674
+
2675
+
2676
+ <td class="default">
2677
+
2678
+ '50px Helvetica'
2679
+
2680
+ </td>
2681
+
2682
+
2683
+ <td class="description last"><p>标注字体</p></td>
2684
+ </tr>
2685
+
2686
+
2687
+
2688
+
2689
+ <tr class="deep-level-1">
2690
+
2691
+ <td class="name"><code>textColor</code></td>
2692
+
2693
+
2694
+ <td class="type">
2695
+
2696
+
2697
+ <span class="param-type">
2698
+
2699
+ Cesium.Color
2700
+
2701
+ </span>
2702
+
2703
+
2704
+
2705
+
2706
+ </td>
2707
+
2708
+
2709
+ <td class="default">
2710
+
2711
+ Cesium.Color.RED
2712
+
2713
+ </td>
2714
+
2715
+
2716
+ <td class="description last"><p>标注颜色</p></td>
2717
+ </tr>
2718
+
2719
+
2720
+
2721
+
2722
+ <tr class="deep-level-1">
2723
+
2724
+ <td class="name"><code>nearFarScalar</code></td>
2725
+
2726
+
2727
+ <td class="type">
2728
+
2729
+
2730
+ <span class="param-type">
2731
+
2732
+ Object
2733
+
2734
+ </span>
2735
+
2736
+
2737
+
2738
+
2739
+ </td>
2740
+
2741
+
2742
+ <td class="default">
2743
+
2744
+ new Cesium.NearFarScalar(0, 1, 5000000, 0)
2745
+
2746
+ </td>
2747
+
2748
+
2749
+ <td class="description last"><p>在指定距离内是否可见</p></td>
2750
+ </tr>
2751
+
2752
+
2753
+
2754
+
2755
+ <tr class="deep-level-1">
2756
+
2757
+ <td class="name"><code>textHeightOffset</code></td>
2758
+
2759
+
2760
+ <td class="type">
2761
+
2762
+
2763
+ <span class="param-type">
2764
+
2765
+ Number
2766
+
2767
+ </span>
2768
+
2769
+
2770
+
2771
+
2772
+ </td>
2773
+
2774
+
2775
+ <td class="default">
2776
+
2777
+ 0
2778
+
2779
+ </td>
2780
+
2781
+
2782
+ <td class="description last"><p>字体高度的偏移值</p></td>
2783
+ </tr>
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+
2790
+
2791
+ </tbody>
2792
+ </table>
2793
+ </div>
2794
+
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+ <dl class="details">
2801
+
2802
+
2803
+
2804
+
2805
+
2806
+
2807
+
2808
+
2809
+
2810
+
2811
+
2812
+
2813
+
2814
+
2815
+
2816
+
2817
+
2818
+
2819
+
2820
+
2821
+
2822
+
2823
+
2824
+
2825
+
2826
+
2827
+
2828
+
2829
+
2830
+
2831
+
2832
+ </dl>
2833
+
2834
+
2835
+
2836
+
2837
+
2838
+
2839
+
2840
+
2841
+
2842
+
2843
+
2844
+
2845
+
2846
+
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+
2853
+
2854
+
2855
+
2856
+ <h5>示例</h5>
2857
+
2858
+ <p class="code-caption"><h7>统计图</h7></p>
2859
+
2860
+
2861
+ <pre class="prettyprint"><code>// 参考示例:
2862
+ http://192.168.82.91:8086/#/modules/cesium/visualization/themeLayer/statistic
2863
+
2864
+ // ES5引入方式
2865
+ const { ThemeManager } = zondy.cesium
2866
+ // ES6引入方式
2867
+ import { ThemeManager } from "@mapgis/webclient-cesium-plugin"
2868
+
2869
+ // 1 初始化一个统计专题图对象
2870
+ const themeManager = new Cesium.ThemeManager(
2871
+ // Cesium场景视图对象
2872
+ viewer,
2873
+ // 额外初始化参数
2874
+ {}
2875
+ )
2876
+
2877
+ // 2 添加水平柱状专题图
2878
+ // 设置用于显示的属性名
2879
+ themeManager.attributeName = ['GDP_2007', 'GDP_2008']
2880
+ // 设置各个属性对应的颜色
2881
+ themeManager.attributeColor = [
2882
+ new Cesium.Color(234 / 255, 175 / 255, 200 / 255),
2883
+ new Cesium.Color(56 / 255, 239 / 255, 125 / 255)
2884
+ ]
2885
+ // 设置文本颜色
2886
+ themeManager.textColor = Cesium.Color.GREEN
2887
+ // 设置文本高度
2888
+ themeManager.textHeightOffset = 10000
2889
+ // 设置柱状图宽度
2890
+ themeManager.width = 50000
2891
+ // 添加专题图数据
2892
+ themeManager.addByGeoJson(
2893
+ // GeoJSON数据
2894
+ {},
2895
+ // 统计图类型
2896
+ 'HorizontalColumn'
2897
+ )
2898
+
2899
+ // 3 添加垂直柱状专题图
2900
+ // 解析GeoJson数据时,是否绘制polygon的Geometry
2901
+ themeManager.addGeoGeometry = false
2902
+ // 设置用于显示的属性名
2903
+ themeManager.attributeName = ['GDP_2007', 'GDP_2008']
2904
+ // 设置各个属性对应的颜色
2905
+ themeManager.attributeColor = [
2906
+ new Cesium.Color(234 / 255, 175 / 255, 200 / 255),
2907
+ new Cesium.Color(56 / 255, 239 / 255, 125 / 255)
2908
+ ]
2909
+ // 设置柱状图宽度
2910
+ themeManager.width = 50000
2911
+ // 添加专题图数据
2912
+ themeManager.addByGeoJson(
2913
+ // GeoJSON数据
2914
+ {},
2915
+ // 统计图类型
2916
+ 'VerticalColumn'
2917
+ )
2918
+
2919
+ // 4 添加饼状不带高程专题图
2920
+ // 解析GeoJson数据时,是否绘制polygon的Geometry
2921
+ themeManager.addGeoGeometry = false
2922
+ // 是否为饼状体添加高度
2923
+ themeManager.addExtrudedHeight = false
2924
+ // 设置用于显示的属性名
2925
+ themeManager.attributeName = ['GDP_2007', 'GDP_2008']
2926
+ // 设置各个属性对应的颜色
2927
+ themeManager.attributeColor = [
2928
+ new Cesium.Color(109 / 255, 213 / 255, 250 / 255),
2929
+ new Cesium.Color(245 / 255, 175 / 255, 25 / 255)
2930
+ ]
2931
+ // 设置柱状图宽度
2932
+ themeManager.width = 50000
2933
+ // 添加专题图数据
2934
+ themeManager.addByGeoJson(
2935
+ // GeoJSON数据
2936
+ {},
2937
+ // 统计图类型
2938
+ 'Pie'
2939
+ )
2940
+
2941
+ // 5 添加饼状不带高程专题图
2942
+ // 解析GeoJson数据时,是否绘制polygon的Geometry
2943
+ themeManager.addGeoGeometry = false
2944
+ // 是否为饼状体添加高度
2945
+ themeManager.addExtrudedHeight = true
2946
+ // 设置用于显示的属性名
2947
+ themeManager.attributeName = ['GDP_2007', 'GDP_2008']
2948
+ // 设置各个属性对应的颜色
2949
+ themeManager.attributeColor = [
2950
+ new Cesium.Color(109 / 255, 213 / 255, 250 / 255),
2951
+ new Cesium.Color(245 / 255, 175 / 255, 25 / 255)
2952
+ ]
2953
+ // 设置柱状图宽度
2954
+ themeManager.width = 50000
2955
+ // 添加专题图数据
2956
+ themeManager.addByGeoJson(
2957
+ // GeoJSON数据
2958
+ {},
2959
+ // 统计图类型
2960
+ 'Pie'
2961
+ )</code></pre>
2962
+
2963
+
2964
+
2965
+
2966
+ </div>
2967
+ </div>
2968
+ </div>
2969
+
2970
+
2971
+ </div>
2972
+
2973
+
2974
+
2975
+
2976
+
2977
+
2978
+
2979
+
2980
+
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+ <div class='vertical-section'>
2989
+ <h3 id='function'>方法</h3>
2990
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
2991
+ <div class="members">
2992
+ <div class="table-container">
2993
+ <table class="params table">
2994
+ <thead>
2995
+ <tr>
2996
+ <th>名称</th>
2997
+ <th>返回值类型</th>
2998
+ <th>描述</th>
2999
+ </tr>
3000
+ </thead>
3001
+ <tbody>
3002
+
3003
+ <tr class="deep-level-0">
3004
+ <td class="name"><code><a href="#create">create</a></code></td>
3005
+ <td class="name">
3006
+ <code>
3007
+
3008
+
3009
+ <span class="param-type">
3010
+
3011
+ Object
3012
+
3013
+ </span>
3014
+
3015
+
3016
+
3017
+
3018
+ </code>
3019
+ </td>
3020
+ <td class="name"><code><p>创建并返回一个热力图对象</p></code></td>
3021
+ </tr>
3022
+
3023
+ <tr class="deep-level-0">
3024
+ <td class="name"><code><a href="#mercatorToWgs84">mercatorToWgs84</a></code></td>
3025
+ <td class="name">
3026
+ <code>
3027
+
3028
+ </code>
3029
+ </td>
3030
+ <td class="name"><code><p>Convert a mercator location into a WGS84 location</p>
3031
+ <p>p: the mercator lcation like {x, y}</p></code></td>
3032
+ </tr>
3033
+
3034
+ </tbody>
3035
+ </table>
3036
+ </div>
3037
+ <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
3038
+
3039
+ <div class="member">
3040
+
3041
+
3042
+
3043
+ <h4 class="name" id=".create">
3044
+ <a class="href-link" href="#.create">#</a>
3045
+
3046
+
3047
+ <span class='tag'>static</span>
3048
+
3049
+
3050
+ <span class="code-name" id="create" style="font-size:30px">
3051
+
3052
+ create<span class="signature">(viewer<span class="signature-attributes">opt</span>, boundingbox<span class="signature-attributes">opt</span>, options<span class="signature-attributes">opt</span>)</span>
3053
+
3054
+ </span>
3055
+ </h4>
3056
+
3057
+
3058
+
3059
+ <div class="description">
3060
+ <p>创建并返回一个热力图对象</p>
3061
+ </div>
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+ <h4>参数</h4>
3073
+
3074
+ <div class="table-container">
3075
+ <table class="params table">
3076
+ <thead>
3077
+ <tr>
3078
+
3079
+ <th>名称</th>
3080
+
3081
+
3082
+ <th>类型</th>
3083
+
3084
+
3085
+ <th style="min-width: 100px;">默认值</th>
3086
+
3087
+
3088
+ <th class="last">描述</th>
3089
+ </tr>
3090
+ </thead>
3091
+
3092
+ <tbody>
3093
+
3094
+
3095
+
3096
+ <tr class="deep-level-0">
3097
+
3098
+ <td class="name"><code>viewer</code></td>
3099
+
3100
+
3101
+ <td class="type">
3102
+
3103
+
3104
+ <span class="param-type">
3105
+
3106
+ <a link="Cesium.Viewer.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="Cesium.Viewer" Cesium.Viewer.html>Cesium.Viewer</a>
3107
+
3108
+ </span>
3109
+
3110
+
3111
+
3112
+
3113
+ </td>
3114
+
3115
+
3116
+ <td class="default">
3117
+
3118
+ null
3119
+
3120
+ </td>
3121
+
3122
+
3123
+ <td class="description last"><p>场景视图</p></td>
3124
+ </tr>
3125
+
3126
+
3127
+
3128
+
3129
+
3130
+
3131
+ <tr class="deep-level-0">
3132
+
3133
+ <td class="name"><code>boundingbox</code></td>
3134
+
3135
+
3136
+ <td class="type">
3137
+
3138
+
3139
+ <span class="param-type">
3140
+
3141
+ Cesium.Rectangle
3142
+
3143
+ </span>
3144
+
3145
+
3146
+
3147
+
3148
+ </td>
3149
+
3150
+
3151
+ <td class="default">
3152
+
3153
+ null
3154
+
3155
+ </td>
3156
+
3157
+
3158
+ <td class="description last"><p>热力图范围</p></td>
3159
+ </tr>
3160
+
3161
+
3162
+
3163
+
3164
+
3165
+
3166
+ <tr class="deep-level-0">
3167
+
3168
+ <td class="name"><code>options</code></td>
3169
+
3170
+
3171
+ <td class="type">
3172
+
3173
+
3174
+ <span class="param-type">
3175
+
3176
+ Object
3177
+
3178
+ </span>
3179
+
3180
+
3181
+
3182
+
3183
+ </td>
3184
+
3185
+
3186
+ <td class="default">
3187
+
3188
+ {}
3189
+
3190
+ </td>
3191
+
3192
+
3193
+ <td class="description last"><p>可选参数</p></td>
3194
+ </tr>
3195
+
3196
+
3197
+
3198
+
3199
+ <tr class="deep-level-1">
3200
+
3201
+ <td class="name"><code>minCanvasSize</code></td>
3202
+
3203
+
3204
+ <td class="type">
3205
+
3206
+
3207
+ <span class="param-type">
3208
+
3209
+ Number
3210
+
3211
+ </span>
3212
+
3213
+
3214
+
3215
+
3216
+ </td>
3217
+
3218
+
3219
+ <td class="default">
3220
+
3221
+ 700
3222
+
3223
+ </td>
3224
+
3225
+
3226
+ <td class="description last"><p>热力图画布最小尺寸</p></td>
3227
+ </tr>
3228
+
3229
+
3230
+
3231
+
3232
+ <tr class="deep-level-1">
3233
+
3234
+ <td class="name"><code>maxCanvasSize</code></td>
3235
+
3236
+
3237
+ <td class="type">
3238
+
3239
+
3240
+ <span class="param-type">
3241
+
3242
+ Number
3243
+
3244
+ </span>
3245
+
3246
+
3247
+
3248
+
3249
+ </td>
3250
+
3251
+
3252
+ <td class="default">
3253
+
3254
+ 2000
3255
+
3256
+ </td>
3257
+
3258
+
3259
+ <td class="description last"><p>热力图画布最大尺寸</p></td>
3260
+ </tr>
3261
+
3262
+
3263
+
3264
+
3265
+ <tr class="deep-level-1">
3266
+
3267
+ <td class="name"><code>radiusFactor</code></td>
3268
+
3269
+
3270
+ <td class="type">
3271
+
3272
+
3273
+ <span class="param-type">
3274
+
3275
+ Number
3276
+
3277
+ </span>
3278
+
3279
+
3280
+
3281
+
3282
+ </td>
3283
+
3284
+
3285
+ <td class="default">
3286
+
3287
+ 60
3288
+
3289
+ </td>
3290
+
3291
+
3292
+ <td class="description last"><p>如果没有给出半径,则使用数据点大小因子(高度和宽度中的较大者除以这个数字产生使用的半径)</p></td>
3293
+ </tr>
3294
+
3295
+
3296
+
3297
+
3298
+ <tr class="deep-level-1">
3299
+
3300
+ <td class="name"><code>spacingFactor</code></td>
3301
+
3302
+
3303
+ <td class="type">
3304
+
3305
+
3306
+ <span class="param-type">
3307
+
3308
+ Number
3309
+
3310
+ </span>
3311
+
3312
+
3313
+
3314
+
3315
+ </td>
3316
+
3317
+
3318
+ <td class="default">
3319
+
3320
+ 1.5
3321
+
3322
+ </td>
3323
+
3324
+
3325
+ <td class="description last"><p>边界周围的额外空间(点半径乘以这个数字产生间距)</p></td>
3326
+ </tr>
3327
+
3328
+
3329
+
3330
+
3331
+ <tr class="deep-level-1">
3332
+
3333
+ <td class="name"><code>maxOpacity</code></td>
3334
+
3335
+
3336
+ <td class="type">
3337
+
3338
+
3339
+ <span class="param-type">
3340
+
3341
+ Number
3342
+
3343
+ </span>
3344
+
3345
+
3346
+
3347
+
3348
+ </td>
3349
+
3350
+
3351
+ <td class="default">
3352
+
3353
+ 0.8
3354
+
3355
+ </td>
3356
+
3357
+
3358
+ <td class="description last"><p>如果未在热力图选项对象中给出,则使用的最大不透明度</p></td>
3359
+ </tr>
3360
+
3361
+
3362
+
3363
+
3364
+ <tr class="deep-level-1">
3365
+
3366
+ <td class="name"><code>minOpacity</code></td>
3367
+
3368
+
3369
+ <td class="type">
3370
+
3371
+
3372
+ <span class="param-type">
3373
+
3374
+ Number
3375
+
3376
+ </span>
3377
+
3378
+
3379
+
3380
+
3381
+ </td>
3382
+
3383
+
3384
+ <td class="default">
3385
+
3386
+ 0.1
3387
+
3388
+ </td>
3389
+
3390
+
3391
+ <td class="description last"><p>如果未在热图选项对象中给出,则使用的最小不透明度</p></td>
3392
+ </tr>
3393
+
3394
+
3395
+
3396
+
3397
+ <tr class="deep-level-1">
3398
+
3399
+ <td class="name"><code>blur</code></td>
3400
+
3401
+
3402
+ <td class="type">
3403
+
3404
+
3405
+ <span class="param-type">
3406
+
3407
+ Number
3408
+
3409
+ </span>
3410
+
3411
+
3412
+
3413
+
3414
+ </td>
3415
+
3416
+
3417
+ <td class="default">
3418
+
3419
+ 0.85
3420
+
3421
+ </td>
3422
+
3423
+
3424
+ <td class="description last"><p>如果未在热力图选项对象中给出,则使用的模糊值为0.85。模糊值越高,渐变越平滑。</p></td>
3425
+ </tr>
3426
+
3427
+
3428
+
3429
+
3430
+ <tr class="deep-level-1">
3431
+
3432
+ <td class="name"><code>gradient</code></td>
3433
+
3434
+
3435
+ <td class="type">
3436
+
3437
+
3438
+ <span class="param-type">
3439
+
3440
+ Object
3441
+
3442
+ </span>
3443
+
3444
+
3445
+
3446
+
3447
+ </td>
3448
+
3449
+
3450
+ <td class="default">
3451
+
3452
+ {'0.3':'rgb(0,0,255)','0.65':'yellow','0.8':'orange','0.95':'red'}
3453
+
3454
+ </td>
3455
+
3456
+
3457
+ <td class="description last"><p>热力图颜色梯度</p></td>
3458
+ </tr>
3459
+
3460
+
3461
+
3462
+
3463
+ <tr class="deep-level-1">
3464
+
3465
+ <td class="name"><code>canChange</code></td>
3466
+
3467
+
3468
+ <td class="type">
3469
+
3470
+
3471
+ <span class="param-type">
3472
+
3473
+ Boolean
3474
+
3475
+ </span>
3476
+
3477
+
3478
+
3479
+
3480
+ </td>
3481
+
3482
+
3483
+ <td class="default">
3484
+
3485
+ true
3486
+
3487
+ </td>
3488
+
3489
+
3490
+ <td class="description last"><p>默认自动重算热力半径</p></td>
3491
+ </tr>
3492
+
3493
+
3494
+
3495
+
3496
+
3497
+
3498
+
3499
+ </tbody>
3500
+ </table>
3501
+ </div>
3502
+
3503
+
3504
+
3505
+
3506
+
3507
+
3508
+ <dl class="details">
3509
+
3510
+
3511
+
3512
+
3513
+
3514
+
3515
+
3516
+
3517
+
3518
+
3519
+
3520
+
3521
+
3522
+
3523
+
3524
+
3525
+
3526
+
3527
+
3528
+
3529
+
3530
+
3531
+
3532
+
3533
+
3534
+
3535
+
3536
+
3537
+
3538
+
3539
+
3540
+ </dl>
3541
+
3542
+
3543
+
3544
+
3545
+
3546
+
3547
+
3548
+
3549
+
3550
+
3551
+
3552
+
3553
+
3554
+
3555
+
3556
+
3557
+
3558
+
3559
+ <div class='columns method-parameter'>
3560
+ <div class="column is-2"><label>返回值</label></div>
3561
+ <div class="column is-10">
3562
+
3563
+
3564
+
3565
+ <div class="columns">
3566
+
3567
+ <div class='param-desc column is-7'><p>热力图对象</p></div>
3568
+
3569
+
3570
+ <div class='column is-5 has-text-left'>
3571
+ <label>类型: </label>
3572
+
3573
+ <span class="param-type">
3574
+
3575
+ Object
3576
+
3577
+ </span>
3578
+
3579
+
3580
+
3581
+ </div>
3582
+
3583
+ </div>
3584
+
3585
+
3586
+ </div>
3587
+ </div>
3588
+
3589
+
3590
+
3591
+
3592
+
3593
+
3594
+ </div>
3595
+
3596
+ <div class="member">
3597
+
3598
+
3599
+
3600
+ <h4 class="name" id=".mercatorToWgs84">
3601
+ <a class="href-link" href="#.mercatorToWgs84">#</a>
3602
+
3603
+
3604
+ <span class='tag'>static</span>
3605
+
3606
+
3607
+ <span class="code-name" id="mercatorToWgs84" style="font-size:30px">
3608
+
3609
+ mercatorToWgs84<span class="signature">()</span>
3610
+
3611
+ </span>
3612
+ </h4>
3613
+
3614
+
3615
+
3616
+ <div class="description">
3617
+ <p>Convert a mercator location into a WGS84 location</p>
3618
+ <p>p: the mercator lcation like {x, y}</p>
3619
+ </div>
3620
+
3621
+
3622
+
3623
+
3624
+
3625
+
3626
+
3627
+
3628
+
3629
+
3630
+
3631
+
3632
+
3633
+
3634
+ <dl class="details">
3635
+
3636
+
3637
+
3638
+
3639
+
3640
+
3641
+
3642
+
3643
+
3644
+
3645
+
3646
+
3647
+
3648
+
3649
+
3650
+
3651
+
3652
+
3653
+
3654
+
3655
+
3656
+
3657
+
3658
+
3659
+
3660
+
3661
+
3662
+
3663
+
3664
+
3665
+
3666
+ </dl>
3667
+
3668
+
3669
+
3670
+
3671
+
3672
+
3673
+
3674
+
3675
+
3676
+
3677
+
3678
+
3679
+
3680
+
3681
+
3682
+
3683
+
3684
+
3685
+
3686
+
3687
+
3688
+
3689
+
3690
+ </div>
3691
+
3692
+ </div>
3693
+ </div>
3694
+
3695
+
3696
+
3697
+
3698
+
3699
+ </article>
3700
+
3701
+ </section>