@mapgis/webclient-cesium-plugin 17.0.5 → 17.2.0

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.
@@ -1,4250 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
-
4
- <head>
5
-
6
- <meta charset="utf-8">
7
- <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <title> SceneView</title>
9
- <!--[if lt IE 9]>
10
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
- <![endif]-->
12
- <link type="text/css" rel="stylesheet" href="styles/app.min.css">
13
- <link type="text/css" rel="stylesheet" href="styles/iframe.css">
14
- <link type="text/css" rel="stylesheet" href="">
15
-
16
-
17
- </head>
18
-
19
-
20
-
21
- <body class="layout small-header">
22
- <div id="stickyNavbarOverlay"></div>
23
-
24
-
25
- <div class="top-nav">
26
- <div class="inner">
27
- <a id="hamburger" role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
28
- <span aria-hidden="true"></span>
29
- <span aria-hidden="true"></span>
30
- <span aria-hidden="true"></span>
31
- </a>
32
- <div class="logo">
33
-
34
- <h1> MapGIS Client for JavaScript API</h1>
35
-
36
-
37
- </div>
38
- <div class="menu">
39
-
40
- <div class="navigation">
41
-
42
-
43
- <a
44
- class="link user-link "
45
- href="/static/modules/common/api/common-mapgis/index.html"
46
- >
47
- Common
48
- </a>
49
-
50
- <a
51
- class="link user-link "
52
- href="/static/modules/cesium/api/cesium-mapgis/index.html"
53
- >
54
- Cesium
55
- </a>
56
-
57
- <a
58
- class="link user-link "
59
- href="/static/modules/mapboxgl/api/mapboxgl-mapgis/index.html"
60
- >
61
- MapboxGL
62
- </a>
63
-
64
- <a
65
- class="link user-link "
66
- href="/static/modules/leaflet/api/leaflet-mapgis/index.html"
67
- >
68
- Leaflet
69
- </a>
70
-
71
- <a
72
- class="link user-link "
73
- href="/static/modules/openlayers/api/openLayers-mapgis/index.html"
74
- >
75
- OpenLayers
76
- </a>
77
-
78
-
79
-
80
- </div>
81
- </div>
82
- </div>
83
- </div>
84
-
85
- <div id="main">
86
- <div
87
- class="sidebar "
88
- id="sidebarNav"
89
- >
90
- <div>
91
- <span class="mapgis-api-document-span"><a href="index.html">API文档</a></span>
92
- </div>
93
-
94
- <div class="search-wrapper">
95
- <input id="search" type="text" placeholder="搜索文档..." class="input">
96
- </div>
97
-
98
- <nav>
99
-
100
- <div class="category"><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">扩展模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="CustomTilingScheme.html">CustomTilingScheme</a><span style="display: none;"><p>几何图形自定义瓦片平铺方案</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISMapServerImageryProvider.html">MapGISMapServerImageryProvider</a><span style="display: none;"><p>MapGIS地图服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISTileServerImageryProvider.html">MapGISTileServerImageryProvider</a><span style="display: none;"><p>MapGIS瓦片服务</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="MapGISVectorTileImageryProvider.html">MapGISVectorTileImageryProvider</a><span style="display: none;"><p>MapGIS矢量瓦片服务</p></span></li></ul><div style="font-weight: bold;vertical-align: middle;padding: 0.4rem 0;" class="mapgis-menu-span"><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/m.png" alt="">视图模块</div><ul class="mapgis-sidebar-menus"><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Popup.html">Popup</a><span style="display: none;"><p>场景信息弹窗(cesium引擎)
101
- 参考示例:
102
- <a href='#SceneView'>[初始化三维场景视图]</a>
103
- <br>[ES5引入方式]:<br/>
104
- Zondy.SceneView() <br/>
105
- [ES6引入方式]:<br/>
106
- import { SceneView } from '@mapgis/webclient-cesium-plugin' <br/>
107
- 自定义样式说明:<br/>
108
- zondy-popup__content 弹窗容器样式<br/>
109
- zondy-popup__tip 弹窗对话框箭头样式<br/>
110
- zondy-popup__header 弹窗头部样式<br/>
111
- zondy-popup__content 弹窗主体样式<br/>
112
- zondy-popup__footer 弹窗底部样式<br/></p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="SceneView.html">SceneView</a><span style="display: none;"><p>视图类</p></span></li><li><img style="width: 20px;margin-right: 6px;vertical-align: middle;" src="./styles/c.png" alt=""><a href="Screenshot.html">Screenshot</a><span style="display: none;"><p>屏幕打印工具</p></span></li></ul></div>
113
-
114
- </nav>
115
- </div>
116
- <div class="core" id="main-content-wrapper">
117
- <div class="content">
118
- <header id="page-title" class="page-title">
119
- <span class="page-title-main">类名</span>
120
- <span class="page-title-sub">SceneView</span>
121
- </header>
122
-
123
-
124
-
125
-
126
-
127
- <section>
128
-
129
- <article>
130
- <div class="container-overview">
131
-
132
-
133
- <div class='vertical-section'>
134
- <div class="members">
135
- <div class="member">
136
-
137
-
138
-
139
-
140
- <h4 class="name" id="SceneView">
141
- <a class="href-link" href="#SceneView">#</a>
142
-
143
- <span class="code-name" style="font-size:30px">
144
-
145
- new SceneView<span class="signature">(options)</span>
146
-
147
- </span>
148
- </h4>
149
-
150
-
151
-
152
- <div class="description">
153
- <p>视图类</p>
154
- </div>
155
-
156
-
157
-
158
-
159
-
160
-
161
-
162
-
163
-
164
-
165
- <h4>参数:</h4>
166
-
167
- <div class="table-container">
168
- <table class="params table">
169
- <thead>
170
- <tr>
171
-
172
- <th>名称</th>
173
-
174
-
175
- <th>类型</th>
176
-
177
-
178
- <th style="min-width: 100px;">默认值</th>
179
-
180
-
181
- <th class="last">描述</th>
182
- </tr>
183
- </thead>
184
-
185
- <tbody>
186
-
187
-
188
-
189
- <tr class="deep-level-0">
190
-
191
- <td class="name"><code>options</code></td>
192
-
193
-
194
- <td class="type">
195
-
196
-
197
- <span class="param-type">Object</span>
198
-
199
-
200
-
201
- </td>
202
-
203
-
204
- <td class="default">
205
-
206
- </td>
207
-
208
-
209
- <td class="description last"><p>构造参数</p></td>
210
- </tr>
211
-
212
-
213
-
214
-
215
- <tr class="deep-level-1">
216
-
217
- <td class="name"><code>map</code></td>
218
-
219
-
220
- <td class="type">
221
-
222
-
223
- <span class="param-type">Map</span>
224
-
225
-
226
-
227
- </td>
228
-
229
-
230
- <td class="default">
231
-
232
- </td>
233
-
234
-
235
- <td class="description last"><p>图层管理器</p></td>
236
- </tr>
237
-
238
-
239
-
240
-
241
- <tr class="deep-level-1">
242
-
243
- <td class="name"><code>viewId</code></td>
244
-
245
-
246
- <td class="type">
247
-
248
-
249
- <span class="param-type">String</span>
250
-
251
-
252
-
253
- </td>
254
-
255
-
256
- <td class="default">
257
-
258
- </td>
259
-
260
-
261
- <td class="description last"><p>图层容器ID</p></td>
262
- </tr>
263
-
264
-
265
-
266
-
267
- <tr class="deep-level-1">
268
-
269
- <td class="name"><code>innerView</code></td>
270
-
271
-
272
- <td class="type">
273
-
274
-
275
- <span class="param-type">Object</span>
276
-
277
-
278
-
279
- </td>
280
-
281
-
282
- <td class="default">
283
-
284
- </td>
285
-
286
-
287
- <td class="description last"><p>实际三维引擎的场景 cesium对应viewer</p></td>
288
- </tr>
289
-
290
-
291
-
292
-
293
- <tr class="deep-level-1">
294
-
295
- <td class="name"><code>center</code></td>
296
-
297
-
298
- <td class="type">
299
-
300
-
301
- <span class="param-type">Point</span>
302
-
303
-
304
-
305
- </td>
306
-
307
-
308
- <td class="default">
309
-
310
- new Point({coordinates:[0,0]})
311
-
312
- </td>
313
-
314
-
315
- <td class="description last"><p>地图视图中心点</p></td>
316
- </tr>
317
-
318
-
319
-
320
-
321
- <tr class="deep-level-1">
322
-
323
- <td class="name"><code>scale</code></td>
324
-
325
-
326
- <td class="type">
327
-
328
-
329
- <span class="param-type">Number</span>
330
-
331
-
332
-
333
- </td>
334
-
335
-
336
- <td class="default">
337
-
338
- </td>
339
-
340
-
341
- <td class="description last"><p>地图视图比例尺</p></td>
342
- </tr>
343
-
344
-
345
-
346
-
347
- <tr class="deep-level-1">
348
-
349
- <td class="name"><code>zoom</code></td>
350
-
351
-
352
- <td class="type">
353
-
354
-
355
- <span class="param-type">Number</span>
356
-
357
-
358
-
359
- </td>
360
-
361
-
362
- <td class="default">
363
-
364
- </td>
365
-
366
-
367
- <td class="description last"><p>地图视图层级</p></td>
368
- </tr>
369
-
370
-
371
-
372
-
373
- <tr class="deep-level-1">
374
-
375
- <td class="name"><code>minZoom</code></td>
376
-
377
-
378
- <td class="type">
379
-
380
-
381
- <span class="param-type">Number</span>
382
-
383
-
384
-
385
- </td>
386
-
387
-
388
- <td class="default">
389
-
390
- 0
391
-
392
- </td>
393
-
394
-
395
- <td class="description last"><p>最小层级</p></td>
396
- </tr>
397
-
398
-
399
-
400
-
401
- <tr class="deep-level-1">
402
-
403
- <td class="name"><code>maxZoom</code></td>
404
-
405
-
406
- <td class="type">
407
-
408
-
409
- <span class="param-type">Number</span>
410
-
411
-
412
-
413
- </td>
414
-
415
-
416
- <td class="default">
417
-
418
- 19
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>popup</code></td>
432
-
433
-
434
- <td class="type">
435
-
436
-
437
- <span class="param-type">Object</span>
438
-
439
-
440
-
441
- </td>
442
-
443
-
444
- <td class="default">
445
-
446
- </td>
447
-
448
-
449
- <td class="description last"><p>地图弹框</p></td>
450
- </tr>
451
-
452
-
453
-
454
-
455
- <tr class="deep-level-1">
456
-
457
- <td class="name"><code>extent</code></td>
458
-
459
-
460
- <td class="type">
461
-
462
-
463
- <span class="param-type">Extent</span>
464
-
465
-
466
-
467
- </td>
468
-
469
-
470
- <td class="default">
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>extendOptions</code></td>
484
-
485
-
486
- <td class="type">
487
-
488
-
489
- <span class="param-type">Object</span>
490
-
491
-
492
-
493
- </td>
494
-
495
-
496
- <td class="default">
497
-
498
- {}
499
-
500
- </td>
501
-
502
-
503
- <td class="description last"><p>Cesium场景视图的初始化参数</p></td>
504
- </tr>
505
-
506
-
507
-
508
-
509
-
510
-
511
-
512
- </tbody>
513
- </table>
514
- </div>
515
-
516
-
517
-
518
-
519
-
520
-
521
- <dl class="details">
522
-
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
-
546
-
547
-
548
-
549
-
550
-
551
-
552
-
553
- </dl>
554
-
555
-
556
-
557
-
558
-
559
- <div class="method-parameter columns">
560
- <div class="column is-2"><label>绑定事件:</label></div>
561
- <div class="column is-10">
562
- <ul>
563
- <li>BaseView#event:鼠标点击事件</li>
564
-
565
- <li>BaseView#event:鼠标双击事件</li>
566
-
567
- <li>BaseView#event:鼠标按下事件</li>
568
-
569
- <li>BaseView#event:鼠标抬起事件</li>
570
-
571
- <li>BaseView#event:鼠标右键点击事件</li>
572
-
573
- <li>BaseView#event:鼠标移动事件</li>
574
-
575
- <li>BaseView#event:地图视图改变事件</li>
576
- </ul>
577
- </div>
578
- </div>
579
-
580
-
581
-
582
-
583
-
584
-
585
-
586
-
587
-
588
-
589
-
590
-
591
-
592
-
593
-
594
-
595
-
596
- <p class="summary"><h5>支持如下方法:</h5>
597
- <a href='#flyTo'>[1、视点跳转]</a><br/>
598
- <a href='#toJSON'>[2、导出场景视图的配置文件]</a><br/>
599
- <a href='#fromJSON'>[3、通过一个配置生成一个场景视图对象]</a><br/>
600
- <a href='#toMap'>[4、屏幕像素坐标点转地理坐标点]</a><br/>
601
- <a href='#toScreen'>[5、地理坐标点转屏幕像素坐标点]</a><br/>
602
- <a href='#getSize'>[6、获取当前视图容器的宽高]</a><br/>
603
- <a href='#getCenter'>[7、获取当前视图中心点]</a><br/>
604
- <a href='#getExtent'>[8、获取当前视图的地理范围]</a><br/>
605
- <a href='#getZoom'>[9、获取当前层级]</a><br/>
606
- <a href='#getScale'>[10、获取当前比例尺]</a><br/>
607
- <a href='#getZoomByScale'>[11、地图比例尺对应的层级]</a><br/>
608
- <a href='#getScaleByZoom'>[12、地图层级对应的比例尺]</a><br/>
609
- <code>13、注册事件</code><br/>
610
- <code>14、移除事件</code><br/>
611
- <a href='#getInnerLayer'>[15、获取实际的M3DSet对象]</a><br/>
612
- <a href='#setCenter'>[16、设置缩视野中心]</a><br/>
613
- <a href='#setExtent'>[17、设置视图的地理范围]</a><br/>
614
- <a href='#takeScreenshot'>[18、屏幕快照]</a><br/>
615
- <a href='#hitTest'>[19、图元检测]</a><br/></p>
616
-
617
-
618
-
619
- <h5>示例</h5>
620
-
621
- <p class="code-caption"><h7>初始化三维视图对象</h7></p>
622
-
623
-
624
- <pre class="prettyprint"><code>// ES5引入方式
625
  // 视图id
626
1
  viewId: "mapgis-3d-viewer",
627
2
  // 图层管理容器
628
3
  map: map
629
-
630
-
631
- <p class="code-caption"><h7>外部初始化三维视图对象</h7></p>
632
-
633
-
634
- <pre class="prettyprint"><code>// ES5引入方式
635
4
  // 视图id
636
5
  viewId: "mapgis-3d-viewer",
637
6
  // 图层管理容器
638
7
  map: map,
639
8
  // 外部创建的三方cesium对象
640
9
  innerView: innerView
641
-
642
-
643
-
644
-
645
- </div>
646
- </div>
647
- </div>
648
-
649
-
650
- </div>
651
-
652
-
653
- <h3 class="subsection-title">继承关系</h3>
654
-
655
-
656
-
657
-
658
- <ul>
659
- <li>Evented</li>
660
- </ul>
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
-
673
-
674
-
675
-
676
- <div class='vertical-section'>
677
- <h3 id='member'>成员变量</h3>
678
- <div class="members">
679
-
680
- <div class="member">
681
-
682
- <span class="method-parameter is-pulled-right">
683
- <label>类型:</label>
684
-
685
- <span class="param-type">SpatialReference</span>
686
-
687
-
688
- </span>
689
-
690
- <h4 class="name" id="_spatialReference">
691
- <a class="href-link" href="#_spatialReference">#</a>
692
-
693
-
694
- <span class='tag'>readonly</span>
695
-
696
-
697
- <span class="code-name">
698
- _spatialReference
699
- </span>
700
-
701
- </h4>
702
-
703
-
704
-
705
-
706
- <div class="description">
707
- <p>视图空间参考系</p>
708
- </div>
709
-
710
-
711
-
712
-
713
-
714
- <dl class="details">
715
-
716
-
717
-
718
-
719
-
720
-
721
-
722
-
723
-
724
-
725
-
726
-
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
-
741
-
742
-
743
-
744
-
745
-
746
- </dl>
747
-
748
-
749
-
750
-
751
-
752
- </div>
753
-
754
- <div class="member">
755
-
756
- <span class="method-parameter is-pulled-right">
757
- <label>类型:</label>
758
-
759
- <span class="param-type">Point</span>
760
-
761
-
762
- </span>
763
-
764
- <h4 class="name" id="center">
765
- <a class="href-link" href="#center">#</a>
766
-
767
- <span class="code-name">
768
- center
769
- </span>
770
-
771
- </h4>
772
-
773
-
774
-
775
-
776
- <div class="description">
777
- <p>地图视图中心点</p>
778
- </div>
779
-
780
-
781
-
782
-
783
-
784
- <dl class="details">
785
-
786
-
787
-
788
-
789
-
790
-
791
-
792
-
793
-
794
-
795
-
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
-
811
-
812
-
813
-
814
-
815
-
816
- </dl>
817
-
818
-
819
-
820
-
821
-
822
- </div>
823
-
824
- <div class="member">
825
-
826
- <span class="method-parameter is-pulled-right">
827
- <label>类型:</label>
828
-
829
- <span class="param-type">Object</span>
830
-
831
-
832
- </span>
833
-
834
- <h4 class="name" id="extendOptions">
835
- <a class="href-link" href="#extendOptions">#</a>
836
-
837
- <span class="code-name">
838
- extendOptions
839
- </span>
840
-
841
- </h4>
842
-
843
-
844
-
845
-
846
- <div class="description">
847
- <p>Cesium场景视图的初始化参数</p>
848
- </div>
849
-
850
-
851
-
852
-
853
-
854
- <dl class="details">
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
-
883
-
884
-
885
-
886
- </dl>
887
-
888
-
889
-
890
-
891
-
892
- </div>
893
-
894
- <div class="member">
895
-
896
- <span class="method-parameter is-pulled-right">
897
- <label>类型:</label>
898
-
899
- <span class="param-type">Extent</span>
900
-
901
-
902
- </span>
903
-
904
- <h4 class="name" id="extent">
905
- <a class="href-link" href="#extent">#</a>
906
-
907
- <span class="code-name">
908
- extent
909
- </span>
910
-
911
- </h4>
912
-
913
-
914
-
915
-
916
- <div class="description">
917
- <p>地图视图范围</p>
918
- </div>
919
-
920
-
921
-
922
-
923
-
924
- <dl class="details">
925
-
926
-
927
-
928
-
929
-
930
-
931
-
932
-
933
-
934
-
935
-
936
-
937
-
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
-
947
-
948
-
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
- </dl>
957
-
958
-
959
-
960
-
961
-
962
- </div>
963
-
964
- <div class="member">
965
-
966
- <span class="method-parameter is-pulled-right">
967
- <label>类型:</label>
968
-
969
- <span class="param-type">Number</span>
970
-
971
-
972
- </span>
973
-
974
- <h4 class="name" id="height">
975
- <a class="href-link" href="#height">#</a>
976
-
977
-
978
- <span class='tag'>readonly</span>
979
-
980
-
981
- <span class="code-name">
982
- height
983
- </span>
984
-
985
- </h4>
986
-
987
-
988
-
989
-
990
- <div class="description">
991
- <p>地图视图高度</p>
992
- </div>
993
-
994
-
995
-
996
-
997
-
998
- <dl class="details">
999
-
1000
-
1001
-
1002
-
1003
-
1004
-
1005
-
1006
-
1007
-
1008
-
1009
-
1010
-
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
-
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
- </dl>
1031
-
1032
-
1033
-
1034
-
1035
-
1036
- </div>
1037
-
1038
- <div class="member">
1039
-
1040
- <span class="method-parameter is-pulled-right">
1041
- <label>类型:</label>
1042
-
1043
- <span class="param-type">Number</span>
1044
-
1045
-
1046
- </span>
1047
-
1048
- <h4 class="name" id="maxZoom">
1049
- <a class="href-link" href="#maxZoom">#</a>
1050
-
1051
- <span class="code-name">
1052
- maxZoom
1053
- </span>
1054
-
1055
- </h4>
1056
-
1057
-
1058
-
1059
-
1060
- <div class="description">
1061
- <p>地图视图最大层级</p>
1062
- </div>
1063
-
1064
-
1065
-
1066
-
1067
-
1068
- <dl class="details">
1069
-
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
-
1093
-
1094
-
1095
-
1096
-
1097
-
1098
-
1099
-
1100
- </dl>
1101
-
1102
-
1103
-
1104
-
1105
-
1106
- </div>
1107
-
1108
- <div class="member">
1109
-
1110
- <span class="method-parameter is-pulled-right">
1111
- <label>类型:</label>
1112
-
1113
- <span class="param-type">Number</span>
1114
-
1115
-
1116
- </span>
1117
-
1118
- <h4 class="name" id="minZoom">
1119
- <a class="href-link" href="#minZoom">#</a>
1120
-
1121
- <span class="code-name">
1122
- minZoom
1123
- </span>
1124
-
1125
- </h4>
1126
-
1127
-
1128
-
1129
-
1130
- <div class="description">
1131
- <p>地图视图最小层级</p>
1132
- </div>
1133
-
1134
-
1135
-
1136
-
1137
-
1138
- <dl class="details">
1139
-
1140
-
1141
-
1142
-
1143
-
1144
-
1145
-
1146
-
1147
-
1148
-
1149
-
1150
-
1151
-
1152
-
1153
-
1154
-
1155
-
1156
-
1157
-
1158
-
1159
-
1160
-
1161
-
1162
-
1163
-
1164
-
1165
-
1166
-
1167
-
1168
-
1169
-
1170
- </dl>
1171
-
1172
-
1173
-
1174
-
1175
-
1176
- </div>
1177
-
1178
- <div class="member">
1179
-
1180
- <span class="method-parameter is-pulled-right">
1181
- <label>类型:</label>
1182
-
1183
- <span class="param-type"><a href="Popup.html">Popup</a></span>
1184
-
1185
-
1186
- </span>
1187
-
1188
- <h4 class="name" id="popup">
1189
- <a class="href-link" href="#popup">#</a>
1190
-
1191
- <span class="code-name">
1192
- popup
1193
- </span>
1194
-
1195
- </h4>
1196
-
1197
-
1198
-
1199
-
1200
- <div class="description">
1201
- <p>地图弹框popup</p>
1202
- </div>
1203
-
1204
-
1205
-
1206
-
1207
-
1208
- <dl class="details">
1209
-
1210
-
1211
-
1212
-
1213
-
1214
-
1215
-
1216
-
1217
-
1218
-
1219
-
1220
-
1221
-
1222
-
1223
-
1224
-
1225
-
1226
-
1227
-
1228
-
1229
-
1230
-
1231
-
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
- </dl>
1241
-
1242
-
1243
-
1244
-
1245
-
1246
- </div>
1247
-
1248
- <div class="member">
1249
-
1250
- <span class="method-parameter is-pulled-right">
1251
- <label>类型:</label>
1252
-
1253
- <span class="param-type">Number</span>
1254
-
1255
-
1256
- </span>
1257
-
1258
- <h4 class="name" id="scale">
1259
- <a class="href-link" href="#scale">#</a>
1260
-
1261
- <span class="code-name">
1262
- scale
1263
- </span>
1264
-
1265
- </h4>
1266
-
1267
-
1268
-
1269
-
1270
- <div class="description">
1271
- <p>地图视图比例尺</p>
1272
- </div>
1273
-
1274
-
1275
-
1276
-
1277
-
1278
- <dl class="details">
1279
-
1280
-
1281
-
1282
-
1283
-
1284
-
1285
-
1286
-
1287
-
1288
-
1289
-
1290
-
1291
-
1292
-
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
-
1306
-
1307
-
1308
-
1309
-
1310
- </dl>
1311
-
1312
-
1313
-
1314
-
1315
-
1316
- </div>
1317
-
1318
- <div class="member">
1319
-
1320
- <span class="method-parameter is-pulled-right">
1321
- <label>类型:</label>
1322
-
1323
- <span class="param-type">Boolean</span>
1324
-
1325
-
1326
- </span>
1327
-
1328
- <h4 class="name" id="stationary">
1329
- <a class="href-link" href="#stationary">#</a>
1330
-
1331
-
1332
- <span class='tag'>readonly</span>
1333
-
1334
-
1335
- <span class="code-name">
1336
- stationary
1337
- </span>
1338
-
1339
- </h4>
1340
-
1341
-
1342
-
1343
-
1344
- <div class="description">
1345
- <p>试图是否静止</p>
1346
- </div>
1347
-
1348
-
1349
-
1350
-
1351
-
1352
- <dl class="details">
1353
-
1354
-
1355
-
1356
-
1357
-
1358
-
1359
-
1360
-
1361
-
1362
-
1363
-
1364
-
1365
-
1366
-
1367
-
1368
-
1369
-
1370
-
1371
-
1372
-
1373
-
1374
-
1375
-
1376
-
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
- </dl>
1385
-
1386
-
1387
-
1388
-
1389
-
1390
- </div>
1391
-
1392
- <div class="member">
1393
-
1394
- <span class="method-parameter is-pulled-right">
1395
- <label>类型:</label>
1396
-
1397
- <span class="param-type">Number</span>
1398
-
1399
-
1400
- </span>
1401
-
1402
- <h4 class="name" id="width">
1403
- <a class="href-link" href="#width">#</a>
1404
-
1405
-
1406
- <span class='tag'>readonly</span>
1407
-
1408
-
1409
- <span class="code-name">
1410
- width
1411
- </span>
1412
-
1413
- </h4>
1414
-
1415
-
1416
-
1417
-
1418
- <div class="description">
1419
- <p>地图视图宽度</p>
1420
- </div>
1421
-
1422
-
1423
-
1424
-
1425
-
1426
- <dl class="details">
1427
-
1428
-
1429
-
1430
-
1431
-
1432
-
1433
-
1434
-
1435
-
1436
-
1437
-
1438
-
1439
-
1440
-
1441
-
1442
-
1443
-
1444
-
1445
-
1446
-
1447
-
1448
-
1449
-
1450
-
1451
-
1452
-
1453
-
1454
-
1455
-
1456
-
1457
-
1458
- </dl>
1459
-
1460
-
1461
-
1462
-
1463
-
1464
- </div>
1465
-
1466
- <div class="member">
1467
-
1468
- <span class="method-parameter is-pulled-right">
1469
- <label>类型:</label>
1470
-
1471
- <span class="param-type">Number</span>
1472
-
1473
-
1474
- </span>
1475
-
1476
- <h4 class="name" id="zoom">
1477
- <a class="href-link" href="#zoom">#</a>
1478
-
1479
- <span class="code-name">
1480
- zoom
1481
- </span>
1482
-
1483
- </h4>
1484
-
1485
-
1486
-
1487
-
1488
- <div class="description">
1489
- <p>地图视图层级</p>
1490
- </div>
1491
-
1492
-
1493
-
1494
-
1495
-
1496
- <dl class="details">
1497
-
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
-
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
-
1515
-
1516
-
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
-
1524
-
1525
-
1526
-
1527
-
1528
- </dl>
1529
-
1530
-
1531
-
1532
-
1533
-
1534
- </div>
1535
-
1536
- </div>
1537
- </div>
1538
-
1539
-
1540
-
1541
- <div class='vertical-section'>
1542
- <h3 id='function'>方法</h3>
1543
- <div class="members">
1544
-
1545
- <div class="member">
1546
-
1547
-
1548
-
1549
- <h4 class="name" id=".fromJSON">
1550
- <a class="href-link" href="#.fromJSON">#</a>
1551
-
1552
-
1553
- <span class='tag'>static</span>
1554
-
1555
-
1556
- <span class="code-name" style="font-size:30px">
1557
-
1558
- fromJSON<span class="signature">(json)</span>
1559
-
1560
- </span>
1561
- </h4>
1562
-
1563
-
1564
-
1565
- <div class="description">
1566
- <p><a id='fromJSON'></a>
1567
- 通过一个配置生成一个场景视图对象</p>
1568
- </div>
1569
-
1570
-
1571
-
1572
-
1573
-
1574
-
1575
-
1576
-
1577
-
1578
-
1579
- <h4>参数:</h4>
1580
-
1581
- <div class="table-container">
1582
- <table class="params table">
1583
- <thead>
1584
- <tr>
1585
-
1586
- <th>名称</th>
1587
-
1588
-
1589
- <th>类型</th>
1590
-
1591
-
1592
-
1593
- <th class="last">描述</th>
1594
- </tr>
1595
- </thead>
1596
-
1597
- <tbody>
1598
-
1599
-
1600
-
1601
- <tr class="deep-level-0">
1602
-
1603
- <td class="name"><code>json</code></td>
1604
-
1605
-
1606
- <td class="type">
1607
-
1608
-
1609
- <span class="param-type">Object</span>
1610
-
1611
-
1612
-
1613
- </td>
1614
-
1615
-
1616
-
1617
- <td class="description last"><p>场景视图配置</p></td>
1618
- </tr>
1619
-
1620
-
1621
-
1622
-
1623
- </tbody>
1624
- </table>
1625
- </div>
1626
-
1627
-
1628
-
1629
-
1630
-
1631
-
1632
- <dl class="details">
1633
-
1634
-
1635
-
1636
-
1637
-
1638
-
1639
-
1640
-
1641
-
1642
-
1643
-
1644
-
1645
-
1646
-
1647
-
1648
-
1649
-
1650
-
1651
-
1652
-
1653
-
1654
-
1655
-
1656
-
1657
-
1658
-
1659
-
1660
-
1661
-
1662
-
1663
-
1664
- </dl>
1665
-
1666
-
1667
-
1668
-
1669
-
1670
-
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
-
1678
-
1679
-
1680
-
1681
-
1682
-
1683
- <div class='columns method-parameter'>
1684
- <div class="column is-2"><label>返回值:</label></div>
1685
- <div class="column is-10">
1686
-
1687
-
1688
-
1689
- <div class="columns">
1690
-
1691
-
1692
- <div class='column is-5 has-text-left'>
1693
- <label>类型: </label>
1694
-
1695
- <span class="param-type"><a href="SceneView.html">SceneView</a></span>
1696
-
1697
-
1698
- </div>
1699
-
1700
- </div>
1701
-
1702
-
1703
- </div>
1704
- </div>
1705
-
1706
-
1707
-
1708
-
1709
-
1710
-
1711
- </div>
1712
-
1713
- <div class="member">
1714
-
1715
-
1716
-
1717
- <h4 class="name" id="flyTo">
1718
- <a class="href-link" href="#flyTo">#</a>
1719
-
1720
- <span class="code-name" style="font-size:30px">
1721
-
1722
- flyTo<span class="signature">(options)</span>
1723
-
1724
- </span>
1725
- </h4>
1726
-
1727
-
1728
-
1729
- <div class="description">
1730
- <p>视点跳转</p>
1731
- </div>
1732
-
1733
-
1734
-
1735
-
1736
-
1737
-
1738
-
1739
-
1740
-
1741
-
1742
- <h4>参数:</h4>
1743
-
1744
- <div class="table-container">
1745
- <table class="params table">
1746
- <thead>
1747
- <tr>
1748
-
1749
- <th>名称</th>
1750
-
1751
-
1752
- <th>类型</th>
1753
-
1754
-
1755
- <th style="min-width: 100px;">默认值</th>
1756
-
1757
-
1758
- <th class="last">描述</th>
1759
- </tr>
1760
- </thead>
1761
-
1762
- <tbody>
1763
-
1764
-
1765
-
1766
- <tr class="deep-level-0">
1767
-
1768
- <td class="name"><code>options</code></td>
1769
-
1770
-
1771
- <td class="type">
1772
-
1773
- </td>
1774
-
1775
-
1776
- <td class="default">
1777
-
1778
- </td>
1779
-
1780
-
1781
- <td class="description last"><p>跳转参数</p></td>
1782
- </tr>
1783
-
1784
-
1785
-
1786
-
1787
- <tr class="deep-level-1">
1788
-
1789
- <td class="name"><code>center</code></td>
1790
-
1791
-
1792
- <td class="type">
1793
-
1794
-
1795
- <span class="param-type">Array</span>
1796
-
1797
-
1798
-
1799
- </td>
1800
-
1801
-
1802
- <td class="default">
1803
-
1804
- </td>
1805
-
1806
-
1807
- <td class="description last"><p>相机要跳转的中心点,单位度,[精度,纬度,高程]</p></td>
1808
- </tr>
1809
-
1810
-
1811
-
1812
-
1813
- <tr class="deep-level-1">
1814
-
1815
- <td class="name"><code>duration</code></td>
1816
-
1817
-
1818
- <td class="type">
1819
-
1820
-
1821
- <span class="param-type">Number</span>
1822
-
1823
-
1824
-
1825
- </td>
1826
-
1827
-
1828
- <td class="default">
1829
-
1830
- 2
1831
-
1832
- </td>
1833
-
1834
-
1835
- <td class="description last"><p>相机飞行到终点时的持续时间,单位秒</p></td>
1836
- </tr>
1837
-
1838
-
1839
-
1840
-
1841
- <tr class="deep-level-1">
1842
-
1843
- <td class="name"><code>extent</code></td>
1844
-
1845
-
1846
- <td class="type">
1847
-
1848
-
1849
- <span class="param-type">Extent</span>
1850
-
1851
-
1852
-
1853
- </td>
1854
-
1855
-
1856
- <td class="default">
1857
-
1858
- </td>
1859
-
1860
-
1861
- <td class="description last"><p>相机要飞行的某个范围</p></td>
1862
- </tr>
1863
-
1864
-
1865
-
1866
-
1867
- <tr class="deep-level-1">
1868
-
1869
- <td class="name"><code>orientation</code></td>
1870
-
1871
-
1872
- <td class="type">
1873
-
1874
-
1875
- <span class="param-type">Object</span>
1876
-
1877
-
1878
-
1879
- </td>
1880
-
1881
-
1882
- <td class="default">
1883
-
1884
- </td>
1885
-
1886
-
1887
- <td class="description last"><p>相机飞行到终点时的视角朝向,包含偏航角、俯仰角和翻滚角</p></td>
1888
- </tr>
1889
-
1890
-
1891
-
1892
-
1893
- <tr class="deep-level-1">
1894
-
1895
- <td class="name"><code>complete</code></td>
1896
-
1897
-
1898
- <td class="type">
1899
-
1900
-
1901
- <span class="param-type">function</span>
1902
-
1903
-
1904
-
1905
- </td>
1906
-
1907
-
1908
- <td class="default">
1909
-
1910
- </td>
1911
-
1912
-
1913
- <td class="description last"><p>相机飞行到终点时触发的函数</p></td>
1914
- </tr>
1915
-
1916
-
1917
-
1918
-
1919
- <tr class="deep-level-1">
1920
-
1921
- <td class="name"><code>cancel</code></td>
1922
-
1923
-
1924
- <td class="type">
1925
-
1926
-
1927
- <span class="param-type">function</span>
1928
-
1929
-
1930
-
1931
- </td>
1932
-
1933
-
1934
- <td class="default">
1935
-
1936
- </td>
1937
-
1938
-
1939
- <td class="description last"><p>相机取消飞行时触发的函数</p></td>
1940
- </tr>
1941
-
1942
-
1943
-
1944
-
1945
- <tr class="deep-level-1">
1946
-
1947
- <td class="name"><code>endTransform</code></td>
1948
-
1949
-
1950
- <td class="type">
1951
-
1952
-
1953
- <span class="param-type">Object</span>
1954
-
1955
-
1956
-
1957
- </td>
1958
-
1959
-
1960
- <td class="default">
1961
-
1962
- </td>
1963
-
1964
-
1965
- <td class="description last"><p>相机飞行到终点时的矩阵</p></td>
1966
- </tr>
1967
-
1968
-
1969
-
1970
-
1971
- <tr class="deep-level-1">
1972
-
1973
- <td class="name"><code>maximumHeight</code></td>
1974
-
1975
-
1976
- <td class="type">
1977
-
1978
-
1979
- <span class="param-type">Number</span>
1980
-
1981
-
1982
-
1983
- </td>
1984
-
1985
-
1986
- <td class="default">
1987
-
1988
- </td>
1989
-
1990
-
1991
- <td class="description last"><p>相机飞行的最大高度</p></td>
1992
- </tr>
1993
-
1994
-
1995
-
1996
-
1997
- <tr class="deep-level-1">
1998
-
1999
- <td class="name"><code>pitchAdjustHeight</code></td>
2000
-
2001
-
2002
- <td class="type">
2003
-
2004
-
2005
- <span class="param-type">Number</span>
2006
-
2007
-
2008
-
2009
- </td>
2010
-
2011
-
2012
- <td class="default">
2013
-
2014
- </td>
2015
-
2016
-
2017
- <td class="description last"><p>如果相机的飞行高度高于该值,则调整飞行过程中的俯仰角使相机视角向下看,并将地球保持在相机视窗中</p></td>
2018
- </tr>
2019
-
2020
-
2021
-
2022
-
2023
- <tr class="deep-level-1">
2024
-
2025
- <td class="name"><code>flyOverLongitude</code></td>
2026
-
2027
-
2028
- <td class="type">
2029
-
2030
-
2031
- <span class="param-type">Number</span>
2032
-
2033
-
2034
-
2035
- </td>
2036
-
2037
-
2038
- <td class="default">
2039
-
2040
- </td>
2041
-
2042
-
2043
- <td class="description last"><p>强制让相机绕着地球飞行指定经度,直到到达终点位置</p></td>
2044
- </tr>
2045
-
2046
-
2047
-
2048
-
2049
- <tr class="deep-level-1">
2050
-
2051
- <td class="name"><code>flyOverLongitudeWeight</code></td>
2052
-
2053
-
2054
- <td class="type">
2055
-
2056
-
2057
- <span class="param-type">Number</span>
2058
-
2059
-
2060
-
2061
- </td>
2062
-
2063
-
2064
- <td class="default">
2065
-
2066
- </td>
2067
-
2068
-
2069
- <td class="description last"></td>
2070
- </tr>
2071
-
2072
-
2073
-
2074
-
2075
-
2076
-
2077
-
2078
- </tbody>
2079
- </table>
2080
- </div>
2081
-
2082
-
2083
-
2084
-
2085
-
2086
-
2087
- <dl class="details">
2088
-
2089
-
2090
-
2091
-
2092
-
2093
-
2094
-
2095
-
2096
-
2097
-
2098
-
2099
-
2100
-
2101
-
2102
-
2103
-
2104
-
2105
-
2106
-
2107
-
2108
-
2109
-
2110
-
2111
-
2112
-
2113
-
2114
-
2115
-
2116
-
2117
-
2118
-
2119
- </dl>
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
-
2129
-
2130
-
2131
-
2132
-
2133
-
2134
-
2135
-
2136
-
2137
-
2138
-
2139
-
2140
-
2141
-
2142
-
2143
- <h5>示例</h5>
2144
-
2145
- <p class="code-caption"><h7>按范围跳转</h7></p>
2146
-
2147
-
2148
- <pre class="prettyprint"><code>// ES5引入方式
2149
10
  // 视图id
2150
11
  viewId: "mapgis-3d-viewer",
2151
12
  // 图层管理容器
2152
13
  map: map
2153
14
  url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
2154
15
  console.log("加载完毕:", result.layer)
2155
16
  // 视点跳转
2156
17
  sceneView.flyTo({
2157
18
  extent: new Extent({
2158
19
  xmin: 108.34341,
2159
20
  ymin: 29.01258222765238,
2160
21
  xmax: 116.15093956121316,
2161
22
  ymax: 33.29320177370206
2162
23
  })
2163
24
  })
2164
-
2165
-
2166
- <p class="code-caption"><h7>跳转中心点</h7></p>
2167
-
2168
-
2169
- <pre class="prettyprint"><code>// ES5引入方式
2170
25
  // 视图id
2171
26
  viewId: "mapgis-3d-viewer",
2172
27
  // 图层管理容器
2173
28
  map: map
2174
29
  url: 'http://192.168.82.89:8089/igs/rest/services/Map/Hubei4326/MapServer'
2175
30
  console.log("加载完毕:", result.layer)
2176
31
  // 视点跳转
2177
32
  sceneView.flyTo({
2178
33
  center: [113, 30, 1000000]
2179
34
  })
2180
-
2181
-
2182
-
2183
- </div>
2184
-
2185
- <div class="member">
2186
-
2187
-
2188
-
2189
- <h4 class="name" id="getCenter">
2190
- <a class="href-link" href="#getCenter">#</a>
2191
-
2192
- <span class="code-name" style="font-size:30px">
2193
-
2194
- getCenter<span class="signature">()</span>
2195
-
2196
- </span>
2197
- </h4>
2198
-
2199
-
2200
-
2201
- <div class="description">
2202
- <p><a id='getCenter'></a>
2203
- 获取当前视图中心点</p>
2204
- </div>
2205
-
2206
-
2207
-
2208
-
2209
-
2210
-
2211
-
2212
-
2213
-
2214
-
2215
-
2216
-
2217
-
2218
-
2219
- <dl class="details">
2220
-
2221
-
2222
-
2223
-
2224
-
2225
-
2226
-
2227
-
2228
-
2229
-
2230
-
2231
-
2232
-
2233
-
2234
-
2235
-
2236
-
2237
-
2238
-
2239
-
2240
-
2241
-
2242
-
2243
-
2244
-
2245
-
2246
-
2247
-
2248
-
2249
-
2250
-
2251
- </dl>
2252
-
2253
-
2254
-
2255
-
2256
-
2257
-
2258
-
2259
-
2260
-
2261
-
2262
-
2263
-
2264
-
2265
-
2266
-
2267
-
2268
-
2269
-
2270
- <div class='columns method-parameter'>
2271
- <div class="column is-2"><label>返回值:</label></div>
2272
- <div class="column is-10">
2273
-
2274
-
2275
-
2276
- <div class="columns">
2277
-
2278
- <div class='param-desc column is-7'><p>当前视图容器的宽高对象</p></div>
2279
-
2280
-
2281
- <div class='column is-5 has-text-left'>
2282
- <label>类型: </label>
2283
-
2284
- <span class="param-type">Object</span>
2285
-
2286
-
2287
- </div>
2288
-
2289
- </div>
2290
-
2291
-
2292
- </div>
2293
- </div>
2294
-
2295
-
2296
-
2297
-
2298
-
2299
-
2300
- </div>
2301
-
2302
- <div class="member">
2303
-
2304
-
2305
-
2306
- <h4 class="name" id="getExtent">
2307
- <a class="href-link" href="#getExtent">#</a>
2308
-
2309
- <span class="code-name" style="font-size:30px">
2310
-
2311
- getExtent<span class="signature">()</span>
2312
-
2313
- </span>
2314
- </h4>
2315
-
2316
-
2317
-
2318
- <div class="description">
2319
- <p><a id='getExtent'></a>
2320
- 获取当前视图的地理范围<a id='getExtent'></a></p>
2321
- </div>
2322
-
2323
-
2324
-
2325
-
2326
-
2327
-
2328
-
2329
-
2330
-
2331
-
2332
-
2333
-
2334
-
2335
-
2336
- <dl class="details">
2337
-
2338
-
2339
-
2340
-
2341
-
2342
-
2343
-
2344
-
2345
-
2346
-
2347
-
2348
-
2349
-
2350
-
2351
-
2352
-
2353
-
2354
-
2355
-
2356
-
2357
-
2358
-
2359
-
2360
-
2361
-
2362
-
2363
-
2364
-
2365
-
2366
-
2367
-
2368
- </dl>
2369
-
2370
-
2371
-
2372
-
2373
-
2374
-
2375
-
2376
-
2377
-
2378
-
2379
-
2380
-
2381
-
2382
-
2383
-
2384
-
2385
-
2386
-
2387
- <div class='columns method-parameter'>
2388
- <div class="column is-2"><label>返回值:</label></div>
2389
- <div class="column is-10">
2390
-
2391
-
2392
-
2393
- <div class="columns">
2394
-
2395
- <div class='param-desc column is-7'><p>获取当前视图的地理范围</p></div>
2396
-
2397
-
2398
- <div class='column is-5 has-text-left'>
2399
- <label>类型: </label>
2400
-
2401
- <span class="param-type">Extent</span>
2402
-
2403
-
2404
- </div>
2405
-
2406
- </div>
2407
-
2408
-
2409
- </div>
2410
- </div>
2411
-
2412
-
2413
-
2414
-
2415
-
2416
-
2417
- </div>
2418
-
2419
- <div class="member">
2420
-
2421
-
2422
-
2423
- <h4 class="name" id="getInnerLayer">
2424
- <a class="href-link" href="#getInnerLayer">#</a>
2425
-
2426
- <span class="code-name" style="font-size:30px">
2427
-
2428
- getInnerLayer<span class="signature">(layer)</span>
2429
-
2430
- </span>
2431
- </h4>
2432
-
2433
-
2434
-
2435
- <div class="description">
2436
- <p><a id='getInnerLayer'></a></p>
2437
- </div>
2438
-
2439
-
2440
-
2441
-
2442
-
2443
-
2444
-
2445
-
2446
-
2447
-
2448
- <h4>参数:</h4>
2449
-
2450
- <div class="table-container">
2451
- <table class="params table">
2452
- <thead>
2453
- <tr>
2454
-
2455
- <th>名称</th>
2456
-
2457
-
2458
- <th>类型</th>
2459
-
2460
-
2461
-
2462
- <th class="last">描述</th>
2463
- </tr>
2464
- </thead>
2465
-
2466
- <tbody>
2467
-
2468
-
2469
-
2470
- <tr class="deep-level-0">
2471
-
2472
- <td class="name"><code>layer</code></td>
2473
-
2474
-
2475
- <td class="type">
2476
-
2477
-
2478
- <span class="param-type">IGSSceneLayer</span>
2479
- |
2480
-
2481
- <span class="param-type">IGSSceneSubLayer</span>
2482
-
2483
-
2484
-
2485
- </td>
2486
-
2487
-
2488
-
2489
- <td class="description last"><p>场景图层或场景图的子图层</p></td>
2490
- </tr>
2491
-
2492
-
2493
-
2494
-
2495
- </tbody>
2496
- </table>
2497
- </div>
2498
-
2499
-
2500
-
2501
-
2502
-
2503
-
2504
- <dl class="details">
2505
-
2506
-
2507
-
2508
-
2509
-
2510
-
2511
-
2512
-
2513
-
2514
-
2515
-
2516
-
2517
-
2518
-
2519
-
2520
-
2521
-
2522
-
2523
-
2524
-
2525
-
2526
-
2527
-
2528
-
2529
-
2530
-
2531
-
2532
-
2533
-
2534
-
2535
-
2536
- </dl>
2537
-
2538
-
2539
-
2540
-
2541
-
2542
-
2543
-
2544
-
2545
-
2546
-
2547
-
2548
-
2549
-
2550
-
2551
-
2552
-
2553
-
2554
-
2555
- <div class='columns method-parameter'>
2556
- <div class="column is-2"><label>返回值:</label></div>
2557
- <div class="column is-10">
2558
-
2559
-
2560
-
2561
- <div class="columns">
2562
-
2563
- <div class='param-desc column is-7'><p>MapGISM3DSet数组或MapGISM3DSet对象或空对象</p></div>
2564
-
2565
-
2566
- <div class='column is-5 has-text-left'>
2567
- <label>类型: </label>
2568
-
2569
- <span class="param-type">Array.&lt;<a href="MapGISM3DSet.html">MapGISM3DSet</a>></span>
2570
- |
2571
-
2572
- <span class="param-type"><a href="MapGISM3DSet.html">MapGISM3DSet</a></span>
2573
- |
2574
-
2575
- <span class="param-type">undefined</span>
2576
-
2577
-
2578
- </div>
2579
-
2580
- </div>
2581
-
2582
-
2583
- </div>
2584
- </div>
2585
-
2586
-
2587
-
2588
-
2589
-
2590
-
2591
- </div>
2592
-
2593
- <div class="member">
2594
-
2595
-
2596
-
2597
- <h4 class="name" id="getScale">
2598
- <a class="href-link" href="#getScale">#</a>
2599
-
2600
- <span class="code-name" style="font-size:30px">
2601
-
2602
- getScale<span class="signature">()</span>
2603
-
2604
- </span>
2605
- </h4>
2606
-
2607
-
2608
-
2609
- <div class="description">
2610
- <p>获取当前比例尺</p>
2611
- </div>
2612
-
2613
-
2614
-
2615
-
2616
-
2617
-
2618
-
2619
-
2620
-
2621
-
2622
-
2623
-
2624
-
2625
-
2626
- <dl class="details">
2627
-
2628
-
2629
-
2630
-
2631
-
2632
-
2633
-
2634
-
2635
-
2636
-
2637
-
2638
-
2639
-
2640
-
2641
-
2642
-
2643
-
2644
-
2645
-
2646
-
2647
-
2648
-
2649
-
2650
-
2651
-
2652
-
2653
-
2654
-
2655
-
2656
-
2657
-
2658
- </dl>
2659
-
2660
-
2661
-
2662
-
2663
-
2664
-
2665
-
2666
-
2667
-
2668
-
2669
-
2670
-
2671
-
2672
-
2673
-
2674
-
2675
-
2676
-
2677
- <div class='columns method-parameter'>
2678
- <div class="column is-2"><label>返回值:</label></div>
2679
- <div class="column is-10">
2680
-
2681
-
2682
-
2683
- <div class="columns">
2684
-
2685
- <div class='param-desc column is-7'><p>比例尺 实际10000米:地图1米</p></div>
2686
-
2687
-
2688
- <div class='column is-5 has-text-left'>
2689
- <label>类型: </label>
2690
-
2691
- <span class="param-type">Number</span>
2692
-
2693
-
2694
- </div>
2695
-
2696
- </div>
2697
-
2698
-
2699
- </div>
2700
- </div>
2701
-
2702
-
2703
-
2704
-
2705
-
2706
-
2707
- </div>
2708
-
2709
- <div class="member">
2710
-
2711
-
2712
-
2713
- <h4 class="name" id="getSize">
2714
- <a class="href-link" href="#getSize">#</a>
2715
-
2716
- <span class="code-name" style="font-size:30px">
2717
-
2718
- getSize<span class="signature">()</span>
2719
-
2720
- </span>
2721
- </h4>
2722
-
2723
-
2724
-
2725
- <div class="description">
2726
- <p><a id='getSize'></a>
2727
- 获取当前视图容器的宽高,单位像素<a id='getSize'></a></p>
2728
- </div>
2729
-
2730
-
2731
-
2732
-
2733
-
2734
-
2735
-
2736
-
2737
-
2738
-
2739
-
2740
-
2741
-
2742
-
2743
- <dl class="details">
2744
-
2745
-
2746
-
2747
-
2748
-
2749
-
2750
-
2751
-
2752
-
2753
-
2754
-
2755
-
2756
-
2757
-
2758
-
2759
-
2760
-
2761
-
2762
-
2763
-
2764
-
2765
-
2766
-
2767
-
2768
-
2769
-
2770
-
2771
-
2772
-
2773
-
2774
-
2775
- </dl>
2776
-
2777
-
2778
-
2779
-
2780
-
2781
-
2782
-
2783
-
2784
-
2785
-
2786
-
2787
-
2788
-
2789
-
2790
-
2791
-
2792
-
2793
-
2794
- <div class='columns method-parameter'>
2795
- <div class="column is-2"><label>返回值:</label></div>
2796
- <div class="column is-10">
2797
-
2798
-
2799
-
2800
- <div class="columns">
2801
-
2802
- <div class='param-desc column is-7'><p>当前视图容器的宽高对象</p></div>
2803
-
2804
-
2805
- <div class='column is-5 has-text-left'>
2806
- <label>类型: </label>
2807
-
2808
- <span class="param-type">Object</span>
2809
-
2810
-
2811
- </div>
2812
-
2813
- </div>
2814
-
2815
-
2816
- </div>
2817
- </div>
2818
-
2819
-
2820
-
2821
-
2822
-
2823
-
2824
- </div>
2825
-
2826
- <div class="member">
2827
-
2828
-
2829
-
2830
- <h4 class="name" id="getZoom">
2831
- <a class="href-link" href="#getZoom">#</a>
2832
-
2833
- <span class="code-name" style="font-size:30px">
2834
-
2835
- getZoom<span class="signature">()</span>
2836
-
2837
- </span>
2838
- </h4>
2839
-
2840
-
2841
-
2842
- <div class="description">
2843
- <p>获取当前层级</p>
2844
- </div>
2845
-
2846
-
2847
-
2848
-
2849
-
2850
-
2851
-
2852
-
2853
-
2854
-
2855
-
2856
-
2857
-
2858
-
2859
- <dl class="details">
2860
-
2861
-
2862
-
2863
-
2864
-
2865
-
2866
-
2867
-
2868
-
2869
-
2870
-
2871
-
2872
-
2873
-
2874
-
2875
-
2876
-
2877
-
2878
-
2879
-
2880
-
2881
-
2882
-
2883
-
2884
-
2885
-
2886
-
2887
-
2888
-
2889
-
2890
-
2891
- </dl>
2892
-
2893
-
2894
-
2895
-
2896
-
2897
-
2898
-
2899
-
2900
-
2901
-
2902
-
2903
-
2904
-
2905
-
2906
-
2907
-
2908
-
2909
-
2910
- <div class='columns method-parameter'>
2911
- <div class="column is-2"><label>返回值:</label></div>
2912
- <div class="column is-10">
2913
-
2914
-
2915
-
2916
- <div class="columns">
2917
-
2918
- <div class='param-desc column is-7'><p>层级</p></div>
2919
-
2920
-
2921
- <div class='column is-5 has-text-left'>
2922
- <label>类型: </label>
2923
-
2924
- <span class="param-type">Number</span>
2925
-
2926
-
2927
- </div>
2928
-
2929
- </div>
2930
-
2931
-
2932
- </div>
2933
- </div>
2934
-
2935
-
2936
-
2937
-
2938
-
2939
-
2940
- </div>
2941
-
2942
- <div class="member">
2943
-
2944
-
2945
-
2946
- <h4 class="name" id="hitTest">
2947
- <a class="href-link" href="#hitTest">#</a>
2948
-
2949
- <span class="code-name" style="font-size:30px">
2950
-
2951
- hitTest<span class="signature">(screenPoint)</span>
2952
-
2953
- </span>
2954
- </h4>
2955
-
2956
-
2957
-
2958
- <div class="description">
2959
- <p>穿透检测,图元拾取。目前支持graphic类型拾取结果,支持图层类型GraphicLayer,FeatureLayer。</p>
2960
- </div>
2961
-
2962
-
2963
-
2964
-
2965
-
2966
-
2967
-
2968
-
2969
-
2970
-
2971
- <h4>参数:</h4>
2972
-
2973
- <div class="table-container">
2974
- <table class="params table">
2975
- <thead>
2976
- <tr>
2977
-
2978
- <th>名称</th>
2979
-
2980
-
2981
- <th>类型</th>
2982
-
2983
-
2984
-
2985
- <th class="last">描述</th>
2986
- </tr>
2987
- </thead>
2988
-
2989
- <tbody>
2990
-
2991
-
2992
-
2993
- <tr class="deep-level-0">
2994
-
2995
- <td class="name"><code>screenPoint</code></td>
2996
-
2997
-
2998
- <td class="type">
2999
-
3000
-
3001
- <span class="param-type">Object</span>
3002
-
3003
-
3004
-
3005
- </td>
3006
-
3007
-
3008
-
3009
- <td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
3010
- </tr>
3011
-
3012
-
3013
-
3014
-
3015
- </tbody>
3016
- </table>
3017
- </div>
3018
-
3019
-
3020
-
3021
-
3022
-
3023
-
3024
- <dl class="details">
3025
-
3026
-
3027
-
3028
-
3029
-
3030
-
3031
-
3032
-
3033
-
3034
-
3035
-
3036
-
3037
-
3038
-
3039
-
3040
-
3041
-
3042
-
3043
-
3044
-
3045
-
3046
-
3047
-
3048
-
3049
-
3050
-
3051
-
3052
-
3053
-
3054
-
3055
-
3056
- </dl>
3057
-
3058
-
3059
-
3060
-
3061
-
3062
-
3063
-
3064
-
3065
-
3066
-
3067
-
3068
-
3069
-
3070
-
3071
-
3072
-
3073
-
3074
-
3075
- <div class='columns method-parameter'>
3076
- <div class="column is-2"><label>返回值:</label></div>
3077
- <div class="column is-10">
3078
-
3079
-
3080
-
3081
- <div class="columns">
3082
-
3083
- <div class='param-desc column is-7'><p>图元检测结果</p></div>
3084
-
3085
-
3086
- <div class='column is-5 has-text-left'>
3087
- <label>类型: </label>
3088
-
3089
- <span class="param-type">Array</span>
3090
-
3091
-
3092
- </div>
3093
-
3094
- </div>
3095
-
3096
-
3097
- </div>
3098
- </div>
3099
-
3100
-
3101
-
3102
-
3103
-
3104
-
3105
- <h5>示例</h5>
3106
-
3107
- <p class="code-caption"><h7>根据基础图层对象或者图层id查询并返回实际图层</h7></p>
3108
-
3109
-
3110
- <pre class="prettyprint"><code>// ES6引入方式
3111
35
  // 视图id
3112
36
  viewId: "mapgis-3d-viewer",
3113
37
  // 图层管理容器
3114
38
  map: map,
3115
39
  new Feature({
3116
40
  id: '11111',
3117
41
  geometry: new Point({ coordinates: [113, 30] }),
3118
42
  }),
3119
43
  new Feature({
3120
44
  id: '11112',
3121
45
  geometry: new Point({ coordinates: [113, 30.15] }),
3122
46
  }),
3123
47
  new Feature({
3124
48
  id: '11112',
3125
49
  geometry: new Point({ coordinates: [113, 35] }),
3126
50
  }),
3127
51
  graphics:feature
3128
-
3129
-
3130
-
3131
- </div>
3132
-
3133
- <div class="member">
3134
-
3135
-
3136
-
3137
- <h4 class="name" id="setCenter">
3138
- <a class="href-link" href="#setCenter">#</a>
3139
-
3140
- <span class="code-name" style="font-size:30px">
3141
-
3142
- setCenter<span class="signature">(value)</span>
3143
-
3144
- </span>
3145
- </h4>
3146
-
3147
-
3148
-
3149
- <div class="description">
3150
- <p><a id='setCenter'></a>
3151
- 设置缩视野中心<a id='setCenter'></a></p>
3152
- </div>
3153
-
3154
-
3155
-
3156
-
3157
-
3158
-
3159
-
3160
-
3161
-
3162
-
3163
- <h4>参数:</h4>
3164
-
3165
- <div class="table-container">
3166
- <table class="params table">
3167
- <thead>
3168
- <tr>
3169
-
3170
- <th>名称</th>
3171
-
3172
-
3173
- <th>类型</th>
3174
-
3175
-
3176
-
3177
- <th class="last">描述</th>
3178
- </tr>
3179
- </thead>
3180
-
3181
- <tbody>
3182
-
3183
-
3184
-
3185
- <tr class="deep-level-0">
3186
-
3187
- <td class="name"><code>value</code></td>
3188
-
3189
-
3190
- <td class="type">
3191
-
3192
-
3193
- <span class="param-type">Point</span>
3194
-
3195
-
3196
-
3197
- </td>
3198
-
3199
-
3200
-
3201
- <td class="description last"><p>视图中心</p></td>
3202
- </tr>
3203
-
3204
-
3205
-
3206
-
3207
- </tbody>
3208
- </table>
3209
- </div>
3210
-
3211
-
3212
-
3213
-
3214
-
3215
-
3216
- <dl class="details">
3217
-
3218
-
3219
-
3220
-
3221
-
3222
-
3223
-
3224
-
3225
-
3226
-
3227
-
3228
-
3229
-
3230
-
3231
-
3232
-
3233
-
3234
-
3235
-
3236
-
3237
-
3238
-
3239
-
3240
-
3241
-
3242
-
3243
-
3244
-
3245
-
3246
-
3247
-
3248
- </dl>
3249
-
3250
-
3251
-
3252
-
3253
-
3254
-
3255
-
3256
-
3257
-
3258
-
3259
-
3260
-
3261
-
3262
-
3263
-
3264
-
3265
-
3266
-
3267
-
3268
-
3269
-
3270
-
3271
-
3272
- </div>
3273
-
3274
- <div class="member">
3275
-
3276
-
3277
-
3278
- <h4 class="name" id="setExtent">
3279
- <a class="href-link" href="#setExtent">#</a>
3280
-
3281
- <span class="code-name" style="font-size:30px">
3282
-
3283
- setExtent<span class="signature">(value)</span>
3284
-
3285
- </span>
3286
- </h4>
3287
-
3288
-
3289
-
3290
- <div class="description">
3291
- <p><a id='setExtent'></a>
3292
- 设置视图的地理范围,设置后会跳转到该范围</p>
3293
- </div>
3294
-
3295
-
3296
-
3297
-
3298
-
3299
-
3300
-
3301
-
3302
-
3303
-
3304
- <h4>参数:</h4>
3305
-
3306
- <div class="table-container">
3307
- <table class="params table">
3308
- <thead>
3309
- <tr>
3310
-
3311
- <th>名称</th>
3312
-
3313
-
3314
- <th>类型</th>
3315
-
3316
-
3317
-
3318
- <th class="last">描述</th>
3319
- </tr>
3320
- </thead>
3321
-
3322
- <tbody>
3323
-
3324
-
3325
-
3326
- <tr class="deep-level-0">
3327
-
3328
- <td class="name"><code>value</code></td>
3329
-
3330
-
3331
- <td class="type">
3332
-
3333
-
3334
- <span class="param-type">Extent</span>
3335
-
3336
-
3337
-
3338
- </td>
3339
-
3340
-
3341
-
3342
- <td class="description last"><p>视图的地理范围</p></td>
3343
- </tr>
3344
-
3345
-
3346
-
3347
-
3348
- </tbody>
3349
- </table>
3350
- </div>
3351
-
3352
-
3353
-
3354
-
3355
-
3356
-
3357
- <dl class="details">
3358
-
3359
-
3360
-
3361
-
3362
-
3363
-
3364
-
3365
-
3366
-
3367
-
3368
-
3369
-
3370
-
3371
-
3372
-
3373
-
3374
-
3375
-
3376
-
3377
-
3378
-
3379
-
3380
-
3381
-
3382
-
3383
-
3384
-
3385
-
3386
-
3387
-
3388
-
3389
- </dl>
3390
-
3391
-
3392
-
3393
-
3394
-
3395
-
3396
-
3397
-
3398
-
3399
-
3400
-
3401
-
3402
-
3403
-
3404
-
3405
-
3406
-
3407
-
3408
-
3409
-
3410
-
3411
-
3412
-
3413
- </div>
3414
-
3415
- <div class="member">
3416
-
3417
-
3418
-
3419
- <h4 class="name" id="takeScreenshot">
3420
- <a class="href-link" href="#takeScreenshot">#</a>
3421
-
3422
- <span class="code-name" style="font-size:30px">
3423
-
3424
- takeScreenshot<span class="signature">(options<span class="signature-attributes">opt</span>)</span>
3425
-
3426
- </span>
3427
- </h4>
3428
-
3429
-
3430
-
3431
- <div class="description">
3432
- <p>屏幕快照</p>
3433
- </div>
3434
-
3435
-
3436
-
3437
-
3438
-
3439
-
3440
-
3441
-
3442
-
3443
-
3444
- <h4>参数:</h4>
3445
-
3446
- <div class="table-container">
3447
- <table class="params table">
3448
- <thead>
3449
- <tr>
3450
-
3451
- <th>名称</th>
3452
-
3453
-
3454
- <th>类型</th>
3455
-
3456
-
3457
- <th style="min-width: 100px;">默认值</th>
3458
-
3459
-
3460
- <th class="last">描述</th>
3461
- </tr>
3462
- </thead>
3463
-
3464
- <tbody>
3465
-
3466
-
3467
-
3468
- <tr class="deep-level-0">
3469
-
3470
- <td class="name"><code>options</code></td>
3471
-
3472
-
3473
- <td class="type">
3474
-
3475
-
3476
- <span class="param-type">Object</span>
3477
-
3478
-
3479
-
3480
- </td>
3481
-
3482
-
3483
- <td class="default">
3484
-
3485
- {}
3486
-
3487
- </td>
3488
-
3489
-
3490
- <td class="description last"><p>屏幕快照配置配置</p></td>
3491
- </tr>
3492
-
3493
-
3494
-
3495
-
3496
- <tr class="deep-level-1">
3497
-
3498
- <td class="name"><code>format</code></td>
3499
-
3500
-
3501
- <td class="type">
3502
-
3503
-
3504
- <span class="param-type">PictureFormat</span>
3505
-
3506
-
3507
-
3508
- </td>
3509
-
3510
-
3511
- <td class="default">
3512
-
3513
- PictureFormat.png
3514
-
3515
- </td>
3516
-
3517
-
3518
- <td class="description last"><p>图片格式,支持png,jpeg格式</p></td>
3519
- </tr>
3520
-
3521
-
3522
-
3523
-
3524
- <tr class="deep-level-1">
3525
-
3526
- <td class="name"><code>filename</code></td>
3527
-
3528
-
3529
- <td class="type">
3530
-
3531
-
3532
- <span class="param-type">String</span>
3533
-
3534
-
3535
-
3536
- </td>
3537
-
3538
-
3539
- <td class="default">
3540
-
3541
- 'screenshotFile'
3542
-
3543
- </td>
3544
-
3545
-
3546
- <td class="description last"><p>下载文件名</p></td>
3547
- </tr>
3548
-
3549
-
3550
-
3551
-
3552
- <tr class="deep-level-1">
3553
-
3554
- <td class="name"><code>width</code></td>
3555
-
3556
-
3557
- <td class="type">
3558
-
3559
-
3560
- <span class="param-type">Number</span>
3561
-
3562
-
3563
-
3564
- </td>
3565
-
3566
-
3567
- <td class="default">
3568
-
3569
- </td>
3570
-
3571
-
3572
- <td class="description last"><p>图片宽度</p></td>
3573
- </tr>
3574
-
3575
-
3576
-
3577
-
3578
- <tr class="deep-level-1">
3579
-
3580
- <td class="name"><code>height</code></td>
3581
-
3582
-
3583
- <td class="type">
3584
-
3585
-
3586
- <span class="param-type">Number</span>
3587
-
3588
-
3589
-
3590
- </td>
3591
-
3592
-
3593
- <td class="default">
3594
-
3595
- </td>
3596
-
3597
-
3598
- <td class="description last"><p>图片高度</p></td>
3599
- </tr>
3600
-
3601
-
3602
-
3603
-
3604
- <tr class="deep-level-1">
3605
-
3606
- <td class="name"><code>x</code></td>
3607
-
3608
-
3609
- <td class="type">
3610
-
3611
-
3612
- <span class="param-type">Number</span>
3613
-
3614
-
3615
-
3616
- </td>
3617
-
3618
-
3619
- <td class="default">
3620
-
3621
- </td>
3622
-
3623
-
3624
- <td class="description last"><p>图片原点x</p></td>
3625
- </tr>
3626
-
3627
-
3628
-
3629
-
3630
- <tr class="deep-level-1">
3631
-
3632
- <td class="name"><code>y</code></td>
3633
-
3634
-
3635
- <td class="type">
3636
-
3637
-
3638
- <span class="param-type">Number</span>
3639
-
3640
-
3641
-
3642
- </td>
3643
-
3644
-
3645
- <td class="default">
3646
-
3647
- </td>
3648
-
3649
-
3650
- <td class="description last"><p>图片原点y</p></td>
3651
- </tr>
3652
-
3653
-
3654
-
3655
-
3656
- <tr class="deep-level-1">
3657
-
3658
- <td class="name"><code>isDownload</code></td>
3659
-
3660
-
3661
- <td class="type">
3662
-
3663
-
3664
- <span class="param-type">Boolean</span>
3665
-
3666
-
3667
-
3668
- </td>
3669
-
3670
-
3671
- <td class="default">
3672
-
3673
- true
3674
-
3675
- </td>
3676
-
3677
-
3678
- <td class="description last"><p>是否下载图片</p></td>
3679
- </tr>
3680
-
3681
-
3682
-
3683
-
3684
-
3685
-
3686
-
3687
- </tbody>
3688
- </table>
3689
- </div>
3690
-
3691
-
3692
-
3693
-
3694
-
3695
-
3696
- <dl class="details">
3697
-
3698
-
3699
-
3700
-
3701
-
3702
-
3703
-
3704
-
3705
-
3706
-
3707
-
3708
-
3709
-
3710
-
3711
-
3712
-
3713
-
3714
-
3715
-
3716
-
3717
-
3718
-
3719
-
3720
-
3721
-
3722
-
3723
-
3724
-
3725
-
3726
-
3727
-
3728
- </dl>
3729
-
3730
-
3731
-
3732
-
3733
-
3734
-
3735
-
3736
-
3737
-
3738
-
3739
-
3740
-
3741
-
3742
-
3743
-
3744
-
3745
-
3746
-
3747
- <div class='columns method-parameter'>
3748
- <div class="column is-2"><label>返回值:</label></div>
3749
- <div class="column is-10">
3750
-
3751
-
3752
-
3753
- <div class="columns">
3754
-
3755
- <div class='param-desc column is-7'><p>屏幕快照 {dataUrl String },且浏览器会下载图片</p></div>
3756
-
3757
-
3758
- <div class='column is-5 has-text-left'>
3759
- <label>类型: </label>
3760
-
3761
- <span class="param-type">Promise</span>
3762
-
3763
-
3764
- </div>
3765
-
3766
- </div>
3767
-
3768
-
3769
- </div>
3770
- </div>
3771
-
3772
-
3773
-
3774
-
3775
-
3776
-
3777
- <h5>示例</h5>
3778
-
3779
- <p class="code-caption"><h7>屏幕快照</h7></p>
3780
-
3781
-
3782
- <pre class="prettyprint"><code>// ES5引入方式
3783
52
  // 二维场景视图的容器(html的div标签)ID
3784
53
  viewId: "二维场景视图的容器的id",
3785
54
  // 图层管理容器
3786
55
  map: map
3787
56
  format: PictureFormat.png
3788
57
  // 获取base64格式的url字符串
3789
58
  console.log("dataUrl:", result.dataUrl)
3790
-
3791
-
3792
-
3793
- </div>
3794
-
3795
- <div class="member">
3796
-
3797
-
3798
-
3799
- <h4 class="name" id="toJSON">
3800
- <a class="href-link" href="#toJSON">#</a>
3801
-
3802
- <span class="code-name" style="font-size:30px">
3803
-
3804
- toJSON<span class="signature">()</span>
3805
-
3806
- </span>
3807
- </h4>
3808
-
3809
-
3810
-
3811
- <div class="description">
3812
- <p><a id='toJSON'></a>
3813
- 导出场景视图的配置文件</p>
3814
- </div>
3815
-
3816
-
3817
-
3818
-
3819
-
3820
-
3821
-
3822
-
3823
-
3824
-
3825
-
3826
-
3827
-
3828
-
3829
- <dl class="details">
3830
-
3831
-
3832
-
3833
-
3834
-
3835
-
3836
-
3837
-
3838
-
3839
-
3840
-
3841
-
3842
-
3843
-
3844
-
3845
-
3846
-
3847
-
3848
-
3849
-
3850
-
3851
-
3852
-
3853
-
3854
-
3855
-
3856
-
3857
-
3858
-
3859
-
3860
-
3861
- </dl>
3862
-
3863
-
3864
-
3865
-
3866
-
3867
-
3868
-
3869
-
3870
-
3871
-
3872
-
3873
-
3874
-
3875
-
3876
-
3877
-
3878
-
3879
-
3880
- <div class='columns method-parameter'>
3881
- <div class="column is-2"><label>返回值:</label></div>
3882
- <div class="column is-10">
3883
-
3884
-
3885
-
3886
- <div class="columns">
3887
-
3888
- <div class='param-desc column is-7'><p>导出的配置文件</p></div>
3889
-
3890
-
3891
- <div class='column is-5 has-text-left'>
3892
- <label>类型: </label>
3893
-
3894
- <span class="param-type">Object</span>
3895
-
3896
-
3897
- </div>
3898
-
3899
- </div>
3900
-
3901
-
3902
- </div>
3903
- </div>
3904
-
3905
-
3906
-
3907
-
3908
-
3909
-
3910
- </div>
3911
-
3912
- <div class="member">
3913
-
3914
-
3915
-
3916
- <h4 class="name" id="toMap">
3917
- <a class="href-link" href="#toMap">#</a>
3918
-
3919
- <span class="code-name" style="font-size:30px">
3920
-
3921
- toMap<span class="signature">(screenPoint)</span>
3922
-
3923
- </span>
3924
- </h4>
3925
-
3926
-
3927
-
3928
- <div class="description">
3929
- <p><a id='toMap'></a>
3930
- 屏幕像素坐标点转地理坐标点</p>
3931
- </div>
3932
-
3933
-
3934
-
3935
-
3936
-
3937
-
3938
-
3939
-
3940
-
3941
-
3942
- <h4>参数:</h4>
3943
-
3944
- <div class="table-container">
3945
- <table class="params table">
3946
- <thead>
3947
- <tr>
3948
-
3949
- <th>名称</th>
3950
-
3951
-
3952
- <th>类型</th>
3953
-
3954
-
3955
-
3956
- <th class="last">描述</th>
3957
- </tr>
3958
- </thead>
3959
-
3960
- <tbody>
3961
-
3962
-
3963
-
3964
- <tr class="deep-level-0">
3965
-
3966
- <td class="name"><code>screenPoint</code></td>
3967
-
3968
-
3969
- <td class="type">
3970
-
3971
-
3972
- <span class="param-type">Object</span>
3973
-
3974
-
3975
-
3976
- </td>
3977
-
3978
-
3979
-
3980
- <td class="description last"><p>屏幕像素坐标点,例如{ x: 900, y: 500 }</p></td>
3981
- </tr>
3982
-
3983
-
3984
-
3985
-
3986
- </tbody>
3987
- </table>
3988
- </div>
3989
-
3990
-
3991
-
3992
-
3993
-
3994
-
3995
- <dl class="details">
3996
-
3997
-
3998
-
3999
-
4000
-
4001
-
4002
-
4003
-
4004
-
4005
-
4006
-
4007
-
4008
-
4009
-
4010
-
4011
-
4012
-
4013
-
4014
-
4015
-
4016
-
4017
-
4018
-
4019
-
4020
-
4021
-
4022
-
4023
-
4024
-
4025
-
4026
-
4027
- </dl>
4028
-
4029
-
4030
-
4031
-
4032
-
4033
-
4034
-
4035
-
4036
-
4037
-
4038
-
4039
-
4040
-
4041
-
4042
-
4043
-
4044
-
4045
-
4046
- <div class='columns method-parameter'>
4047
- <div class="column is-2"><label>返回值:</label></div>
4048
- <div class="column is-10">
4049
-
4050
-
4051
-
4052
- <div class="columns">
4053
-
4054
- <div class='param-desc column is-7'><p>地理坐标点</p></div>
4055
-
4056
-
4057
- <div class='column is-5 has-text-left'>
4058
- <label>类型: </label>
4059
-
4060
- <span class="param-type">Point</span>
4061
-
4062
-
4063
- </div>
4064
-
4065
- </div>
4066
-
4067
-
4068
- </div>
4069
- </div>
4070
-
4071
-
4072
-
4073
-
4074
-
4075
-
4076
- <h5>示例</h5>
4077
-
4078
- <p class="code-caption"><h5>屏幕像素坐标点转地理坐标示例</h5></p>
4079
-
4080
-
4081
- <pre class="prettyprint"><code>// ES6引入方式
4082
59
  // 视图id
4083
60
  viewId: "mapgis-3d-viewer",
4084
61
  // 图层管理容器
4085
62
  map: map,
4086
-
4087
-
4088
-
4089
- </div>
4090
-
4091
- <div class="member">
4092
-
4093
-
4094
-
4095
- <h4 class="name" id="toScreen">
4096
- <a class="href-link" href="#toScreen">#</a>
4097
-
4098
- <span class="code-name" style="font-size:30px">
4099
-
4100
- toScreen<span class="signature">(point)</span>
4101
-
4102
- </span>
4103
- </h4>
4104
-
4105
-
4106
-
4107
- <div class="description">
4108
- <p><a id='toScreen'></a>
4109
- 地理坐标点转屏幕像素坐标点</p>
4110
- </div>
4111
-
4112
-
4113
-
4114
-
4115
-
4116
-
4117
-
4118
-
4119
-
4120
-
4121
- <h4>参数:</h4>
4122
-
4123
- <div class="table-container">
4124
- <table class="params table">
4125
- <thead>
4126
- <tr>
4127
-
4128
- <th>名称</th>
4129
-
4130
-
4131
- <th>类型</th>
4132
-
4133
-
4134
-
4135
- <th class="last">描述</th>
4136
- </tr>
4137
- </thead>
4138
-
4139
- <tbody>
4140
-
4141
-
4142
-
4143
- <tr class="deep-level-0">
4144
-
4145
- <td class="name"><code>point</code></td>
4146
-
4147
-
4148
- <td class="type">
4149
-
4150
-
4151
- <span class="param-type">Point</span>
4152
-
4153
-
4154
-
4155
- </td>
4156
-
4157
-
4158
-
4159
- <td class="description last"><p>地理坐标点</p></td>
4160
- </tr>
4161
-
4162
-
4163
-
4164
-
4165
- </tbody>
4166
- </table>
4167
- </div>
4168
-
4169
-
4170
-
4171
-
4172
-
4173
-
4174
- <dl class="details">
4175
-
4176
-
4177
-
4178
-
4179
-
4180
-
4181
-
4182
-
4183
-
4184
-
4185
-
4186
-
4187
-
4188
-
4189
-
4190
-
4191
-
4192
-
4193
-
4194
-
4195
-
4196
-
4197
-
4198
-
4199
-
4200
-
4201
-
4202
-
4203
-
4204
-
4205
-
4206
- </dl>
4207
-
4208
-
4209
-
4210
-
4211
-
4212
-
4213
-
4214
-
4215
-
4216
-
4217
-
4218
-
4219
-
4220
-
4221
-
4222
-
4223
-
4224
-
4225
- <div class='columns method-parameter'>
4226
- <div class="column is-2"><label>返回值:</label></div>
4227
- <div class="column is-10">
4228
-
4229
-
4230
-
4231
- <div class="columns">
4232
-
4233
- <div class='param-desc column is-7'><p>屏幕像素坐标点</p></div>
4234
-
4235
-
4236
- <div class='column is-5 has-text-left'>
4237
- <label>类型: </label>
4238
-
4239
- <span class="param-type">Object</span>
4240
-
4241
-
4242
- </div>
4243
-
4244
- </div>
4245
-
4246
-
4247
- </div>
4248
- </div>
4249
-
4250
-
4251
-
4252
-
4253
-
4254
-
4255
- <h5>示例</h5>
4256
-
4257
- <p class="code-caption"><h5>地理坐标点转屏幕像素坐标示例</h5></p>
4258
-
4259
-
4260
- <pre class="prettyprint"><code>// ES6引入方式
4261
63
  // 视图id
4262
64
  viewId: "mapgis-2d-viewer",
4263
65
  // 图层管理容器
4264
66
  map: map
4265
-
4266
-
4267
-
4268
- </div>
4269
-
4270
- </div>
4271
- </div>
4272
-
4273
-
4274
-
4275
-
4276
-
4277
- </article>
4278
-
4279
- </section>
4280
-
4281
-
4282
-
4283
-
4284
- </div>
4285
-
4286
- <footer class="footer">
4287
- <div class="content has-text-centered">
4288
- <p>文档生成<a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.11</a></p>
4289
- <p class="sidebar-created-by">
4290
- <a href="http://www.smaryun.com" target="_blank">司马云</a> <span>© 2023 云生态圈</span>
4291
- <a href="http://192.168.82.89:8086/#/index" target="_blank">MapGIS Client for JavaScript</a>
4292
- </p>
4293
- </div>
4294
- </footer>
4295
-
4296
- </div>
4297
- <div id="side-nav" class="side-nav">
4298
- <div style="margin-bottom: 10px;">
4299
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#page-title">构造函数</a>
4300
- </div>
4301
- <div style="margin-bottom: 10px;">
4302
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#member">成员变量</a>
4303
- </div>
4304
- <div style="margin-bottom: 10px;">
4305
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#function">方法</a>
4306
- </div>
4307
- <div>
4308
- <img style="vertical-align: middle;margin-right: 10px;width: 30px;" src="./styles/anchor.png"/><a href="#event">事件</a>
4309
- </div>
4310
- </div>
4311
- </div>
4312
- <script src="scripts/linenumber.js"> </script>
4313
-
4314
- <script src="scripts/search.js"> </script>
4315
-
4316
- </body>
4317
- </html>