@mapgis/webclient-cesium-plugin 17.4.1 → 17.6.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.
Files changed (124) hide show
  1. package/README.md +674 -601
  2. package/dist/es5/webclient-cesium-plugin.min.js +10 -10
  3. package/dist/es5/webclient-common.min.js +32 -6
  4. package/dist/webclient-cesium-plugin-es6.min.js +10 -10
  5. package/documention/AlgorithmLib.html +6 -6
  6. package/documention/AngulationTool.html +143 -86
  7. package/documention/AnimationTool.html +6 -6
  8. package/documention/ArcGISMapServerImageryProvider.html +20 -40
  9. package/documention/ArcGISMapServerSingleImageryProvider.html +1070 -0
  10. package/documention/ArcGISTileServerImageryProvider.html +18 -10
  11. package/documention/ArcGISVectorTileImageryProvider.html +14 -9
  12. package/documention/BaseImageryProvider.html +1777 -0
  13. package/documention/Cesium.Material.html +6 -6
  14. package/documention/Cesium.Viewer.html +6 -6
  15. package/documention/Cesium3DTileset.html +6 -6
  16. package/documention/CesiumHeatmap.html +6 -6
  17. package/documention/CesiumNavigation.html +511 -0
  18. package/documention/CesiumTerrainProvider.html +6 -6
  19. package/documention/CircleWaveMaterialProperty.html +6 -6
  20. package/documention/CollisionDetectionByRender.html +6 -6
  21. package/documention/CompatibleFunc.html +258 -9
  22. package/documention/CustomPrimitive.html +463 -0
  23. package/documention/CustomProjection.html +6 -6
  24. package/documention/CustomTilingScheme.html +6 -6
  25. package/documention/CutFillAnalysis.html +6 -6
  26. package/documention/CuttingTool.html +154 -21
  27. package/documention/Deferred.html +6 -6
  28. package/documention/DrawElement.html +16 -16
  29. package/documention/DrawTool.html +8 -8
  30. package/documention/DynamicEntityVisualizer.html +8 -6
  31. package/documention/DynamicLabelLayer.html +333 -451
  32. package/documention/EditTool.html +6 -6
  33. package/documention/FloodAnalysis.html +6 -6
  34. package/documention/FloodAnalysisReflection.html +6 -6
  35. package/documention/FlowParticle.html +1052 -0
  36. package/documention/Fluid.html +2712 -0
  37. package/documention/FluidFoam.html +1052 -0
  38. package/documention/FluidReflection.html +954 -0
  39. package/documention/FluidShadow.html +954 -0
  40. package/documention/FluidSourceCollection.html +1399 -0
  41. package/documention/FluidSpecular.html +954 -0
  42. package/documention/GeoJSONLayerUtil.html +6 -6
  43. package/documention/GlobeIndependentTranslucency.html +6 -6
  44. package/documention/Graphic.html +6 -6
  45. package/documention/GraphicTransformTool.html +6 -6
  46. package/documention/GraphicsLayer.html +7 -7
  47. package/documention/GraphicsLayerUtil.html +6 -6
  48. package/documention/GroundPrimitiveLayer.html +1675 -0
  49. package/documention/HashMap.html +6 -6
  50. package/documention/HeightLimited.html +6 -6
  51. package/documention/IGSFeatureLayerUtil.html +169 -6
  52. package/documention/ISSceneLayerUtil.html +6 -870
  53. package/documention/KeyboardCameraController.html +6 -6
  54. package/documention/MapGISDynamicLabelCollection.html +1696 -0
  55. package/documention/MapGISFeatureGridCollection.html +1579 -0
  56. package/documention/MapGISImageServerImageryProvider.html +1878 -0
  57. package/documention/MapGISM3DSet.html +9 -6
  58. package/documention/MapGISMapServerImageryProvider.html +171 -814
  59. package/documention/MapGISMapServerSingleImageryProvider.html +1222 -0
  60. package/documention/MapGISTerrainProvider.html +1098 -13
  61. package/documention/MapGISTerrainService.html +1740 -0
  62. package/documention/MapGISTileAvailability.html +8 -8
  63. package/documention/MapGISTileServerImageryProvider.html +98 -1343
  64. package/documention/MapGISVectorTileImageryProvider.html +126 -694
  65. package/documention/MeasureAreaTool.html +371 -6
  66. package/documention/MeasureLengthTool.html +99 -88
  67. package/documention/MeasureSlopeTool.html +216 -12
  68. package/documention/ModelEditor.html +6 -6
  69. package/documention/ModelFilterTool.html +6 -6
  70. package/documention/ModelTransformTool.html +439 -19
  71. package/documention/NavigationControl.html +512 -0
  72. package/documention/NavigationTool.html +7 -7
  73. package/documention/OpenWeatherImageryProvider.html +39 -87
  74. package/documention/PointFluidSource.html +866 -0
  75. package/documention/PolylineTrailLinkMaterialProperty.html +6 -6
  76. package/documention/Popup.html +7 -7
  77. package/documention/PostProcessStageLibrary.html +6 -6
  78. package/documention/Promise.html +6 -6
  79. package/documention/ProviderBaseUrlRegExp.html +735 -0
  80. package/documention/RadarMaterialProperty.html +6 -6
  81. package/documention/ReImg.html +6 -6
  82. package/documention/RenderUtil.html +685 -0
  83. package/documention/ResetViewNavigationControl.html +975 -0
  84. package/documention/RiverGeometry.html +6 -6
  85. package/documention/RoamParticle.html +6 -6
  86. package/documention/S3MTileset.html +9 -6
  87. package/documention/SceneView.html +319 -192
  88. package/documention/SceneViewCesium.html +1028 -447
  89. package/documention/Screenshot.html +6 -6
  90. package/documention/SelectTool.html +6 -6
  91. package/documention/ShadowRateAnalysis.html +6 -6
  92. package/documention/ShadowRateDrawCommand.html +6 -6
  93. package/documention/SingleImageryProvider.html +1544 -0
  94. package/documention/SketchEditor.html +7 -7
  95. package/documention/SketchEditorCesium.html +249 -365
  96. package/documention/StableParticle.html +6 -6
  97. package/documention/Style.html +6 -6
  98. package/documention/TerrainAnalyse.html +9 -9
  99. package/documention/TerrainProfile.html +86 -11
  100. package/documention/ThemeManager.html +7 -7
  101. package/documention/Tooltip.html +6 -6
  102. package/documention/TriangulationTool.html +115 -362
  103. package/documention/UrlTemplateImageryProvider.html +11 -10
  104. package/documention/UserInterfaceControl.html +1187 -0
  105. package/documention/VisiblityAnalysis.html +7 -7
  106. package/documention/VolumeFluidSource.html +664 -0
  107. package/documention/WFSLayerUtil.html +6 -6
  108. package/documention/WaterReflection.html +6 -6
  109. package/documention/WebMapServiceImageryProvider.html +13 -8
  110. package/documention/WebMapServiceSingleImageryProvider.html +1043 -0
  111. package/documention/WebMapTileServiceImageryProvider.html +14 -8
  112. package/documention/Wind3D.html +6 -6
  113. package/documention/ZoomNavigationControl.html +861 -0
  114. package/documention/createColorTexture.html +6 -6
  115. package/documention/global.html +957 -888
  116. package/documention/index.html +6 -6
  117. package/documention/initializeOptions.html +6 -6
  118. package/documention/isCounterClockwise.html +6 -6
  119. package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +6 -6
  120. package/documention/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +6 -6
  121. package/documention/module.exports_module.exports.html +6 -6
  122. package/package.json +2 -2
  123. package/documention/IGSSceneLayerUtil.html +0 -2313
  124. package/documention/SkyLineAnalysis.html +0 -660
@@ -1,2313 +0,0 @@
1
- <header id="page-title" class="page-title">
2
-
3
- <span class="page-title-main">类名</span>
4
- <span class="page-title-sub">IGSSceneLayerUtil</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="IGSSceneLayerUtil">
26
- <a class="href-link" href="#IGSSceneLayerUtil">#</a>
27
-
28
- <span class="code-name" id="IGSSceneLayerUtil" style="font-size:30px">
29
-
30
- new IGSSceneLayerUtil<span class="signature">()</span>
31
-
32
- </span>
33
- </h4>
34
-
35
-
36
-
37
- <div class="description">
38
- <p>IGS场景图层的工具类</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
- <p class="summary"><h5>支持如下方法:</h5>
109
- <a href='#toTerrainProvider'>[1、将地形图层对象转换为MapGISTerrainProvider]</a><br/>
110
- <a href='#toPrimitive'>[2、将模型和注记图层对象转换为Primitive]</a><br/></p>
111
-
112
-
113
-
114
-
115
- </div>
116
- </div>
117
- </div>
118
-
119
-
120
- </div>
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- <div class='vertical-section'>
138
- <h3 id='function'>方法</h3>
139
- <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
140
- <div class="members">
141
- <div class="table-container">
142
- <table class="params table">
143
- <thead>
144
- <tr>
145
- <th>名称</th>
146
- <th>返回值类型</th>
147
- <th>描述</th>
148
- </tr>
149
- </thead>
150
- <tbody>
151
-
152
- <tr class="deep-level-0">
153
- <td class="name"><code><a href="#addSceneLayer">addSceneLayer</a></code></td>
154
- <td class="name">
155
- <code>
156
-
157
- </code>
158
- </td>
159
- <td class="name"><code><p>添加场景图层</p></code></td>
160
- </tr>
161
-
162
- <tr class="deep-level-0">
163
- <td class="name"><code><a href="#initializeOptions">initializeOptions</a></code></td>
164
- <td class="name">
165
- <code>
166
-
167
-
168
- <span class="param-type">
169
-
170
- Object
171
-
172
- </span>
173
-
174
-
175
-
176
-
177
- </code>
178
- </td>
179
- <td class="name"><code><p>根据场景图层的子图层对象获取构造参数options</p></code></td>
180
- </tr>
181
-
182
- <tr class="deep-level-0">
183
- <td class="name"><code><a href="#removeLayer">removeLayer</a></code></td>
184
- <td class="name">
185
- <code>
186
-
187
- </code>
188
- </td>
189
- <td class="name"><code><p>移除图层</p></code></td>
190
- </tr>
191
-
192
- <tr class="deep-level-0">
193
- <td class="name"><code><a href="#reset">reset</a></code></td>
194
- <td class="name">
195
- <code>
196
-
197
- </code>
198
- </td>
199
- <td class="name"><code><p>重置视角到子图层外包盒处</p></code></td>
200
- </tr>
201
-
202
- <tr class="deep-level-0">
203
- <td class="name"><code><a href="#setOpacity">setOpacity</a></code></td>
204
- <td class="name">
205
- <code>
206
-
207
- </code>
208
- </td>
209
- <td class="name"><code><p>设置图层透明度</p></code></td>
210
- </tr>
211
-
212
- <tr class="deep-level-0">
213
- <td class="name"><code><a href="#setSubLayerOpacity">setSubLayerOpacity</a></code></td>
214
- <td class="name">
215
- <code>
216
-
217
- </code>
218
- </td>
219
- <td class="name"><code><p>设置子图层透明度</p></code></td>
220
- </tr>
221
-
222
- <tr class="deep-level-0">
223
- <td class="name"><code><a href="#setSubLayerVisible">setSubLayerVisible</a></code></td>
224
- <td class="name">
225
- <code>
226
-
227
- </code>
228
- </td>
229
- <td class="name"><code><p>设置子图层显隐,受最大最小比例尺影响,会在内部进行判断</p></code></td>
230
- </tr>
231
-
232
- <tr class="deep-level-0">
233
- <td class="name"><code><a href="#setVisible">setVisible</a></code></td>
234
- <td class="name">
235
- <code>
236
-
237
- </code>
238
- </td>
239
- <td class="name"><code><p>设置图层显隐,受最大最小比例尺影响,会在内部进行判断</p></code></td>
240
- </tr>
241
-
242
- <tr class="deep-level-0">
243
- <td class="name"><code><a href="#toPrimitive">toPrimitive</a></code></td>
244
- <td class="name">
245
- <code>
246
-
247
-
248
- <span class="param-type">
249
-
250
- Primitive
251
-
252
- </span>
253
-
254
-
255
-
256
-
257
- </code>
258
- </td>
259
- <td class="name"><code><p>将模型和注记图层对象转换为Primitive</p></code></td>
260
- </tr>
261
-
262
- <tr class="deep-level-0">
263
- <td class="name"><code><a href="#toTerrainProvider">toTerrainProvider</a></code></td>
264
- <td class="name">
265
- <code>
266
-
267
-
268
- <span class="param-type">
269
-
270
- <a link="MapGISTerrainProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISTerrainProvider" MapGISTerrainProvider.html>MapGISTerrainProvider</a>
271
-
272
- </span>
273
- |
274
-
275
- <span class="param-type">
276
-
277
- undefined
278
-
279
- </span>
280
-
281
-
282
-
283
-
284
- </code>
285
- </td>
286
- <td class="name"><code><p>将地形图层对象转换为MapGISTerrainProvider</p></code></td>
287
- </tr>
288
-
289
- </tbody>
290
- </table>
291
- </div>
292
- <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
293
-
294
- <div class="member">
295
-
296
-
297
-
298
- <h4 class="name" id=".addSceneLayer">
299
- <a class="href-link" href="#.addSceneLayer">#</a>
300
-
301
-
302
- <span class='tag'>static</span>
303
-
304
-
305
- <span class="code-name" id="addSceneLayer" style="font-size:30px">
306
-
307
- addSceneLayer<span class="signature">(layerView, callback, errorCallback)</span>
308
-
309
- </span>
310
- </h4>
311
-
312
-
313
-
314
- <div class="description">
315
- <p>添加场景图层</p>
316
- </div>
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
-
327
- <h4>参数</h4>
328
-
329
- <div class="table-container">
330
- <table class="params table">
331
- <thead>
332
- <tr>
333
-
334
- <th>名称</th>
335
-
336
-
337
- <th>类型</th>
338
-
339
-
340
-
341
- <th class="last">描述</th>
342
- </tr>
343
- </thead>
344
-
345
- <tbody>
346
-
347
-
348
-
349
- <tr class="deep-level-0">
350
-
351
- <td class="name"><code>layerView</code></td>
352
-
353
-
354
- <td class="type">
355
-
356
-
357
- <span class="param-type">
358
-
359
- LayerView
360
-
361
- </span>
362
-
363
-
364
-
365
-
366
- </td>
367
-
368
-
369
-
370
- <td class="description last"><p>图层视图对象</p></td>
371
- </tr>
372
-
373
-
374
-
375
-
376
-
377
-
378
- <tr class="deep-level-0">
379
-
380
- <td class="name"><code>callback</code></td>
381
-
382
-
383
- <td class="type">
384
-
385
-
386
- <span class="param-type">
387
-
388
- function
389
-
390
- </span>
391
-
392
-
393
-
394
-
395
- </td>
396
-
397
-
398
-
399
- <td class="description last"><p>所有子图层加载完毕后的回调函数</p></td>
400
- </tr>
401
-
402
-
403
-
404
-
405
-
406
-
407
- <tr class="deep-level-0">
408
-
409
- <td class="name"><code>errorCallback</code></td>
410
-
411
-
412
- <td class="type">
413
-
414
-
415
- <span class="param-type">
416
-
417
- function
418
-
419
- </span>
420
-
421
-
422
-
423
-
424
- </td>
425
-
426
-
427
-
428
- <td class="description last"><p>加载失败的回调函数</p></td>
429
- </tr>
430
-
431
-
432
-
433
-
434
- </tbody>
435
- </table>
436
- </div>
437
-
438
-
439
-
440
-
441
-
442
-
443
- <dl class="details">
444
-
445
-
446
-
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
-
456
-
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
-
467
-
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
- </dl>
476
-
477
-
478
-
479
-
480
-
481
-
482
-
483
-
484
-
485
-
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
-
498
-
499
- </div>
500
-
501
- <div class="member">
502
-
503
-
504
-
505
- <h4 class="name" id=".initializeOptions">
506
- <a class="href-link" href="#.initializeOptions">#</a>
507
-
508
-
509
- <span class='tag'>static</span>
510
-
511
-
512
- <span class="code-name" id="initializeOptions" style="font-size:30px">
513
-
514
- initializeOptions<span class="signature">(subLayer, innerView)</span>
515
-
516
- </span>
517
- </h4>
518
-
519
-
520
-
521
- <div class="description">
522
- <p>根据场景图层的子图层对象获取构造参数options</p>
523
- </div>
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
-
534
- <h4>参数</h4>
535
-
536
- <div class="table-container">
537
- <table class="params table">
538
- <thead>
539
- <tr>
540
-
541
- <th>名称</th>
542
-
543
-
544
- <th>类型</th>
545
-
546
-
547
-
548
- <th class="last">描述</th>
549
- </tr>
550
- </thead>
551
-
552
- <tbody>
553
-
554
-
555
-
556
- <tr class="deep-level-0">
557
-
558
- <td class="name"><code>subLayer</code></td>
559
-
560
-
561
- <td class="type">
562
-
563
-
564
- <span class="param-type">
565
-
566
- Object
567
-
568
- </span>
569
-
570
-
571
-
572
-
573
- </td>
574
-
575
-
576
-
577
- <td class="description last"><p>地形图层对象</p></td>
578
- </tr>
579
-
580
-
581
-
582
-
583
-
584
-
585
- <tr class="deep-level-0">
586
-
587
- <td class="name"><code>innerView</code></td>
588
-
589
-
590
- <td class="type">
591
-
592
-
593
- <span class="param-type">
594
-
595
- View
596
-
597
- </span>
598
-
599
-
600
-
601
-
602
- </td>
603
-
604
-
605
-
606
- <td class="description last"><p>cesium的view对象</p></td>
607
- </tr>
608
-
609
-
610
-
611
-
612
- </tbody>
613
- </table>
614
- </div>
615
-
616
-
617
-
618
-
619
-
620
-
621
- <dl class="details">
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
-
653
- </dl>
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
-
672
- <div class='columns method-parameter'>
673
- <div class="column is-2"><label>返回值</label></div>
674
- <div class="column is-10">
675
-
676
-
677
-
678
- <div class="columns">
679
-
680
-
681
- <div class='column is-5 has-text-left'>
682
- <label>类型: </label>
683
-
684
- <span class="param-type">
685
-
686
- Object
687
-
688
- </span>
689
-
690
-
691
-
692
- </div>
693
-
694
- </div>
695
-
696
-
697
- </div>
698
- </div>
699
-
700
-
701
-
702
-
703
-
704
-
705
- </div>
706
-
707
- <div class="member">
708
-
709
-
710
-
711
- <h4 class="name" id=".removeLayer">
712
- <a class="href-link" href="#.removeLayer">#</a>
713
-
714
-
715
- <span class='tag'>static</span>
716
-
717
-
718
- <span class="code-name" id="removeLayer" style="font-size:30px">
719
-
720
- removeLayer<span class="signature">(tileSets, sceneView, innerView)</span>
721
-
722
- </span>
723
- </h4>
724
-
725
-
726
-
727
- <div class="description">
728
- <p>移除图层</p>
729
- </div>
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
-
738
-
739
-
740
- <h4>参数</h4>
741
-
742
- <div class="table-container">
743
- <table class="params table">
744
- <thead>
745
- <tr>
746
-
747
- <th>名称</th>
748
-
749
-
750
- <th>类型</th>
751
-
752
-
753
-
754
- <th class="last">描述</th>
755
- </tr>
756
- </thead>
757
-
758
- <tbody>
759
-
760
-
761
-
762
- <tr class="deep-level-0">
763
-
764
- <td class="name"><code>tileSets</code></td>
765
-
766
-
767
- <td class="type">
768
-
769
-
770
- <span class="param-type">
771
-
772
- Array
773
-
774
- </span>
775
-
776
-
777
-
778
-
779
- </td>
780
-
781
-
782
-
783
- <td class="description last"><p>tileSet数组</p></td>
784
- </tr>
785
-
786
-
787
-
788
-
789
-
790
-
791
- <tr class="deep-level-0">
792
-
793
- <td class="name"><code>sceneView</code></td>
794
-
795
-
796
- <td class="type">
797
-
798
-
799
- <span class="param-type">
800
-
801
- SceneView
802
-
803
- </span>
804
-
805
-
806
-
807
-
808
- </td>
809
-
810
-
811
-
812
- <td class="description last"><p>场景视图对象</p></td>
813
- </tr>
814
-
815
-
816
-
817
-
818
-
819
-
820
- <tr class="deep-level-0">
821
-
822
- <td class="name"><code>innerView</code></td>
823
-
824
-
825
- <td class="type">
826
-
827
-
828
- <span class="param-type">
829
-
830
- Viewer
831
-
832
- </span>
833
-
834
-
835
-
836
-
837
- </td>
838
-
839
-
840
-
841
- <td class="description last"><p>Cesium的视图对象</p></td>
842
- </tr>
843
-
844
-
845
-
846
-
847
- </tbody>
848
- </table>
849
- </div>
850
-
851
-
852
-
853
-
854
-
855
-
856
- <dl class="details">
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
-
887
-
888
- </dl>
889
-
890
-
891
-
892
-
893
-
894
-
895
-
896
-
897
-
898
-
899
-
900
-
901
-
902
-
903
-
904
-
905
-
906
-
907
-
908
-
909
-
910
-
911
-
912
- </div>
913
-
914
- <div class="member">
915
-
916
-
917
-
918
- <h4 class="name" id=".reset">
919
- <a class="href-link" href="#.reset">#</a>
920
-
921
-
922
- <span class='tag'>static</span>
923
-
924
-
925
- <span class="code-name" id="reset" style="font-size:30px">
926
-
927
- reset<span class="signature">(id, layerView)</span>
928
-
929
- </span>
930
- </h4>
931
-
932
-
933
-
934
- <div class="description">
935
- <p>重置视角到子图层外包盒处</p>
936
- </div>
937
-
938
-
939
-
940
-
941
-
942
-
943
-
944
-
945
-
946
-
947
- <h4>参数</h4>
948
-
949
- <div class="table-container">
950
- <table class="params table">
951
- <thead>
952
- <tr>
953
-
954
- <th>名称</th>
955
-
956
-
957
- <th>类型</th>
958
-
959
-
960
-
961
- <th class="last">描述</th>
962
- </tr>
963
- </thead>
964
-
965
- <tbody>
966
-
967
-
968
-
969
- <tr class="deep-level-0">
970
-
971
- <td class="name"><code>id</code></td>
972
-
973
-
974
- <td class="type">
975
-
976
-
977
- <span class="param-type">
978
-
979
- String
980
-
981
- </span>
982
-
983
-
984
-
985
-
986
- </td>
987
-
988
-
989
-
990
- <td class="description last"><p>子图层ID</p></td>
991
- </tr>
992
-
993
-
994
-
995
-
996
-
997
-
998
- <tr class="deep-level-0">
999
-
1000
- <td class="name"><code>layerView</code></td>
1001
-
1002
-
1003
- <td class="type">
1004
-
1005
-
1006
- <span class="param-type">
1007
-
1008
- LayerView
1009
-
1010
- </span>
1011
-
1012
-
1013
-
1014
-
1015
- </td>
1016
-
1017
-
1018
-
1019
- <td class="description last"><p>图层视图对象</p></td>
1020
- </tr>
1021
-
1022
-
1023
-
1024
-
1025
- </tbody>
1026
- </table>
1027
- </div>
1028
-
1029
-
1030
-
1031
-
1032
-
1033
-
1034
- <dl class="details">
1035
-
1036
-
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
-
1050
-
1051
-
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
- </dl>
1067
-
1068
-
1069
-
1070
-
1071
-
1072
-
1073
-
1074
-
1075
-
1076
-
1077
-
1078
-
1079
-
1080
-
1081
-
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
- </div>
1091
-
1092
- <div class="member">
1093
-
1094
-
1095
-
1096
- <h4 class="name" id=".setOpacity">
1097
- <a class="href-link" href="#.setOpacity">#</a>
1098
-
1099
-
1100
- <span class='tag'>static</span>
1101
-
1102
-
1103
- <span class="code-name" id="setOpacity" style="font-size:30px">
1104
-
1105
- setOpacity<span class="signature">(opacity, layerView)</span>
1106
-
1107
- </span>
1108
- </h4>
1109
-
1110
-
1111
-
1112
- <div class="description">
1113
- <p>设置图层透明度</p>
1114
- </div>
1115
-
1116
-
1117
-
1118
-
1119
-
1120
-
1121
-
1122
-
1123
-
1124
-
1125
- <h4>参数</h4>
1126
-
1127
- <div class="table-container">
1128
- <table class="params table">
1129
- <thead>
1130
- <tr>
1131
-
1132
- <th>名称</th>
1133
-
1134
-
1135
- <th>类型</th>
1136
-
1137
-
1138
-
1139
- <th class="last">描述</th>
1140
- </tr>
1141
- </thead>
1142
-
1143
- <tbody>
1144
-
1145
-
1146
-
1147
- <tr class="deep-level-0">
1148
-
1149
- <td class="name"><code>opacity</code></td>
1150
-
1151
-
1152
- <td class="type">
1153
-
1154
-
1155
- <span class="param-type">
1156
-
1157
- Number
1158
-
1159
- </span>
1160
-
1161
-
1162
-
1163
-
1164
- </td>
1165
-
1166
-
1167
-
1168
- <td class="description last"><p>图层透明度</p></td>
1169
- </tr>
1170
-
1171
-
1172
-
1173
-
1174
-
1175
-
1176
- <tr class="deep-level-0">
1177
-
1178
- <td class="name"><code>layerView</code></td>
1179
-
1180
-
1181
- <td class="type">
1182
-
1183
-
1184
- <span class="param-type">
1185
-
1186
- LayerView
1187
-
1188
- </span>
1189
-
1190
-
1191
-
1192
-
1193
- </td>
1194
-
1195
-
1196
-
1197
- <td class="description last"><p>图层视图对象</p></td>
1198
- </tr>
1199
-
1200
-
1201
-
1202
-
1203
- </tbody>
1204
- </table>
1205
- </div>
1206
-
1207
-
1208
-
1209
-
1210
-
1211
-
1212
- <dl class="details">
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
-
1241
-
1242
-
1243
-
1244
- </dl>
1245
-
1246
-
1247
-
1248
-
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
-
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
- </div>
1269
-
1270
- <div class="member">
1271
-
1272
-
1273
-
1274
- <h4 class="name" id=".setSubLayerOpacity">
1275
- <a class="href-link" href="#.setSubLayerOpacity">#</a>
1276
-
1277
-
1278
- <span class='tag'>static</span>
1279
-
1280
-
1281
- <span class="code-name" id="setSubLayerOpacity" style="font-size:30px">
1282
-
1283
- setSubLayerOpacity<span class="signature">(opacity, id, layerView)</span>
1284
-
1285
- </span>
1286
- </h4>
1287
-
1288
-
1289
-
1290
- <div class="description">
1291
- <p>设置子图层透明度</p>
1292
- </div>
1293
-
1294
-
1295
-
1296
-
1297
-
1298
-
1299
-
1300
-
1301
-
1302
-
1303
- <h4>参数</h4>
1304
-
1305
- <div class="table-container">
1306
- <table class="params table">
1307
- <thead>
1308
- <tr>
1309
-
1310
- <th>名称</th>
1311
-
1312
-
1313
- <th>类型</th>
1314
-
1315
-
1316
-
1317
- <th class="last">描述</th>
1318
- </tr>
1319
- </thead>
1320
-
1321
- <tbody>
1322
-
1323
-
1324
-
1325
- <tr class="deep-level-0">
1326
-
1327
- <td class="name"><code>opacity</code></td>
1328
-
1329
-
1330
- <td class="type">
1331
-
1332
-
1333
- <span class="param-type">
1334
-
1335
- Number
1336
-
1337
- </span>
1338
-
1339
-
1340
-
1341
-
1342
- </td>
1343
-
1344
-
1345
-
1346
- <td class="description last"><p>子图层透明度</p></td>
1347
- </tr>
1348
-
1349
-
1350
-
1351
-
1352
-
1353
-
1354
- <tr class="deep-level-0">
1355
-
1356
- <td class="name"><code>id</code></td>
1357
-
1358
-
1359
- <td class="type">
1360
-
1361
-
1362
- <span class="param-type">
1363
-
1364
- String
1365
-
1366
- </span>
1367
-
1368
-
1369
-
1370
-
1371
- </td>
1372
-
1373
-
1374
-
1375
- <td class="description last"><p>子图层ID</p></td>
1376
- </tr>
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
- <tr class="deep-level-0">
1384
-
1385
- <td class="name"><code>layerView</code></td>
1386
-
1387
-
1388
- <td class="type">
1389
-
1390
-
1391
- <span class="param-type">
1392
-
1393
- LayerView
1394
-
1395
- </span>
1396
-
1397
-
1398
-
1399
-
1400
- </td>
1401
-
1402
-
1403
-
1404
- <td class="description last"><p>图层视图对象</p></td>
1405
- </tr>
1406
-
1407
-
1408
-
1409
-
1410
- </tbody>
1411
- </table>
1412
- </div>
1413
-
1414
-
1415
-
1416
-
1417
-
1418
-
1419
- <dl class="details">
1420
-
1421
-
1422
-
1423
-
1424
-
1425
-
1426
-
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
- </dl>
1452
-
1453
-
1454
-
1455
-
1456
-
1457
-
1458
-
1459
-
1460
-
1461
-
1462
-
1463
-
1464
-
1465
-
1466
-
1467
-
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
-
1475
- </div>
1476
-
1477
- <div class="member">
1478
-
1479
-
1480
-
1481
- <h4 class="name" id=".setSubLayerVisible">
1482
- <a class="href-link" href="#.setSubLayerVisible">#</a>
1483
-
1484
-
1485
- <span class='tag'>static</span>
1486
-
1487
-
1488
- <span class="code-name" id="setSubLayerVisible" style="font-size:30px">
1489
-
1490
- setSubLayerVisible<span class="signature">(visible, id, layerView)</span>
1491
-
1492
- </span>
1493
- </h4>
1494
-
1495
-
1496
-
1497
- <div class="description">
1498
- <p>设置子图层显隐,受最大最小比例尺影响,会在内部进行判断</p>
1499
- </div>
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
-
1507
-
1508
-
1509
-
1510
- <h4>参数</h4>
1511
-
1512
- <div class="table-container">
1513
- <table class="params table">
1514
- <thead>
1515
- <tr>
1516
-
1517
- <th>名称</th>
1518
-
1519
-
1520
- <th>类型</th>
1521
-
1522
-
1523
-
1524
- <th class="last">描述</th>
1525
- </tr>
1526
- </thead>
1527
-
1528
- <tbody>
1529
-
1530
-
1531
-
1532
- <tr class="deep-level-0">
1533
-
1534
- <td class="name"><code>visible</code></td>
1535
-
1536
-
1537
- <td class="type">
1538
-
1539
-
1540
- <span class="param-type">
1541
-
1542
- Boolean
1543
-
1544
- </span>
1545
-
1546
-
1547
-
1548
-
1549
- </td>
1550
-
1551
-
1552
-
1553
- <td class="description last"><p>是否显隐图层</p></td>
1554
- </tr>
1555
-
1556
-
1557
-
1558
-
1559
-
1560
-
1561
- <tr class="deep-level-0">
1562
-
1563
- <td class="name"><code>id</code></td>
1564
-
1565
-
1566
- <td class="type">
1567
-
1568
-
1569
- <span class="param-type">
1570
-
1571
- String
1572
-
1573
- </span>
1574
-
1575
-
1576
-
1577
-
1578
- </td>
1579
-
1580
-
1581
-
1582
- <td class="description last"><p>子图层ID</p></td>
1583
- </tr>
1584
-
1585
-
1586
-
1587
-
1588
-
1589
-
1590
- <tr class="deep-level-0">
1591
-
1592
- <td class="name"><code>layerView</code></td>
1593
-
1594
-
1595
- <td class="type">
1596
-
1597
-
1598
- <span class="param-type">
1599
-
1600
- LayerView
1601
-
1602
- </span>
1603
-
1604
-
1605
-
1606
-
1607
- </td>
1608
-
1609
-
1610
-
1611
- <td class="description last"><p>图层视图对象</p></td>
1612
- </tr>
1613
-
1614
-
1615
-
1616
-
1617
- </tbody>
1618
- </table>
1619
- </div>
1620
-
1621
-
1622
-
1623
-
1624
-
1625
-
1626
- <dl class="details">
1627
-
1628
-
1629
-
1630
-
1631
-
1632
-
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
- </dl>
1659
-
1660
-
1661
-
1662
-
1663
-
1664
-
1665
-
1666
-
1667
-
1668
-
1669
-
1670
-
1671
-
1672
-
1673
-
1674
-
1675
-
1676
-
1677
-
1678
-
1679
-
1680
-
1681
-
1682
- </div>
1683
-
1684
- <div class="member">
1685
-
1686
-
1687
-
1688
- <h4 class="name" id=".setVisible">
1689
- <a class="href-link" href="#.setVisible">#</a>
1690
-
1691
-
1692
- <span class='tag'>static</span>
1693
-
1694
-
1695
- <span class="code-name" id="setVisible" style="font-size:30px">
1696
-
1697
- setVisible<span class="signature">(visible, layerView)</span>
1698
-
1699
- </span>
1700
- </h4>
1701
-
1702
-
1703
-
1704
- <div class="description">
1705
- <p>设置图层显隐,受最大最小比例尺影响,会在内部进行判断</p>
1706
- </div>
1707
-
1708
-
1709
-
1710
-
1711
-
1712
-
1713
-
1714
-
1715
-
1716
-
1717
- <h4>参数</h4>
1718
-
1719
- <div class="table-container">
1720
- <table class="params table">
1721
- <thead>
1722
- <tr>
1723
-
1724
- <th>名称</th>
1725
-
1726
-
1727
- <th>类型</th>
1728
-
1729
-
1730
-
1731
- <th class="last">描述</th>
1732
- </tr>
1733
- </thead>
1734
-
1735
- <tbody>
1736
-
1737
-
1738
-
1739
- <tr class="deep-level-0">
1740
-
1741
- <td class="name"><code>visible</code></td>
1742
-
1743
-
1744
- <td class="type">
1745
-
1746
-
1747
- <span class="param-type">
1748
-
1749
- Boolean
1750
-
1751
- </span>
1752
-
1753
-
1754
-
1755
-
1756
- </td>
1757
-
1758
-
1759
-
1760
- <td class="description last"><p>是否显隐图层</p></td>
1761
- </tr>
1762
-
1763
-
1764
-
1765
-
1766
-
1767
-
1768
- <tr class="deep-level-0">
1769
-
1770
- <td class="name"><code>layerView</code></td>
1771
-
1772
-
1773
- <td class="type">
1774
-
1775
-
1776
- <span class="param-type">
1777
-
1778
- LayerView
1779
-
1780
- </span>
1781
-
1782
-
1783
-
1784
-
1785
- </td>
1786
-
1787
-
1788
-
1789
- <td class="description last"><p>图层视图对象</p></td>
1790
- </tr>
1791
-
1792
-
1793
-
1794
-
1795
- </tbody>
1796
- </table>
1797
- </div>
1798
-
1799
-
1800
-
1801
-
1802
-
1803
-
1804
- <dl class="details">
1805
-
1806
-
1807
-
1808
-
1809
-
1810
-
1811
-
1812
-
1813
-
1814
-
1815
-
1816
-
1817
-
1818
-
1819
-
1820
-
1821
-
1822
-
1823
-
1824
-
1825
-
1826
-
1827
-
1828
-
1829
-
1830
-
1831
-
1832
-
1833
-
1834
-
1835
-
1836
- </dl>
1837
-
1838
-
1839
-
1840
-
1841
-
1842
-
1843
-
1844
-
1845
-
1846
-
1847
-
1848
-
1849
-
1850
-
1851
-
1852
-
1853
-
1854
-
1855
-
1856
-
1857
-
1858
-
1859
-
1860
- </div>
1861
-
1862
- <div class="member">
1863
-
1864
-
1865
-
1866
- <h4 class="name" id=".toPrimitive">
1867
- <a class="href-link" href="#.toPrimitive">#</a>
1868
-
1869
-
1870
- <span class='tag'>static</span>
1871
-
1872
-
1873
- <span class="code-name" id="toPrimitive" style="font-size:30px">
1874
-
1875
- toPrimitive<span class="signature">(subLayer, innerView)</span>
1876
-
1877
- </span>
1878
- </h4>
1879
-
1880
-
1881
-
1882
- <div class="description">
1883
- <p>将模型和注记图层对象转换为Primitive</p>
1884
- </div>
1885
-
1886
-
1887
-
1888
-
1889
-
1890
-
1891
-
1892
-
1893
-
1894
-
1895
- <h4>参数</h4>
1896
-
1897
- <div class="table-container">
1898
- <table class="params table">
1899
- <thead>
1900
- <tr>
1901
-
1902
- <th>名称</th>
1903
-
1904
-
1905
- <th>类型</th>
1906
-
1907
-
1908
-
1909
- <th class="last">描述</th>
1910
- </tr>
1911
- </thead>
1912
-
1913
- <tbody>
1914
-
1915
-
1916
-
1917
- <tr class="deep-level-0">
1918
-
1919
- <td class="name"><code>subLayer</code></td>
1920
-
1921
-
1922
- <td class="type">
1923
-
1924
-
1925
- <span class="param-type">
1926
-
1927
- Object
1928
-
1929
- </span>
1930
-
1931
-
1932
-
1933
-
1934
- </td>
1935
-
1936
-
1937
-
1938
- <td class="description last"><p>地形图层对象</p></td>
1939
- </tr>
1940
-
1941
-
1942
-
1943
-
1944
-
1945
-
1946
- <tr class="deep-level-0">
1947
-
1948
- <td class="name"><code>innerView</code></td>
1949
-
1950
-
1951
- <td class="type">
1952
-
1953
-
1954
- <span class="param-type">
1955
-
1956
- View
1957
-
1958
- </span>
1959
-
1960
-
1961
-
1962
-
1963
- </td>
1964
-
1965
-
1966
-
1967
- <td class="description last"><p>cesium的view对象</p></td>
1968
- </tr>
1969
-
1970
-
1971
-
1972
-
1973
- </tbody>
1974
- </table>
1975
- </div>
1976
-
1977
-
1978
-
1979
-
1980
-
1981
-
1982
- <dl class="details">
1983
-
1984
-
1985
-
1986
-
1987
-
1988
-
1989
-
1990
-
1991
-
1992
-
1993
-
1994
-
1995
-
1996
-
1997
-
1998
-
1999
-
2000
-
2001
-
2002
-
2003
-
2004
-
2005
-
2006
-
2007
-
2008
-
2009
-
2010
-
2011
-
2012
-
2013
-
2014
- </dl>
2015
-
2016
-
2017
-
2018
-
2019
-
2020
-
2021
-
2022
-
2023
-
2024
-
2025
-
2026
-
2027
-
2028
-
2029
-
2030
-
2031
-
2032
-
2033
- <div class='columns method-parameter'>
2034
- <div class="column is-2"><label>返回值</label></div>
2035
- <div class="column is-10">
2036
-
2037
-
2038
-
2039
- <div class="columns">
2040
-
2041
-
2042
- <div class='column is-5 has-text-left'>
2043
- <label>类型: </label>
2044
-
2045
- <span class="param-type">
2046
-
2047
- Primitive
2048
-
2049
- </span>
2050
-
2051
-
2052
-
2053
- </div>
2054
-
2055
- </div>
2056
-
2057
-
2058
- </div>
2059
- </div>
2060
-
2061
-
2062
-
2063
-
2064
-
2065
-
2066
- <h5>示例</h5>
2067
-
2068
-
2069
- <pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Scene/DaYanTa-M3D/SceneServer'
2070
- const addSceneLayer = async (url) => {
2071
- const layer = new IGSSceneLayer({
2072
- url,
2073
- })
2074
- const loadedLayer = await layer.load()
2075
- const subLayers = loadedLayer.activeScene.sublayers
2076
- for (let i = 0; i &lt; subLayers.length; i++) {
2077
- switch (_subLayer.type) {
2078
- case SceneSubLayerType.g3d:
2079
- case SceneSubLayerType.label:
2080
- case SceneSubLayerType.sceneServer:
2081
- // 若是注记类型则要传入viewer对象实现注记避让效果
2082
- const primitive = IGSSceneLayerUtil.toPrimitive(_subLayer, viewer)
2083
- viewer.scene.primitives.add(primitive)
2084
- viewer.zoomTo(primitive)
2085
- break
2086
- }
2087
- }
2088
- }
2089
- addSceneLayer(url)</code></pre>
2090
-
2091
-
2092
-
2093
- </div>
2094
-
2095
- <div class="member">
2096
-
2097
-
2098
-
2099
- <h4 class="name" id=".toTerrainProvider">
2100
- <a class="href-link" href="#.toTerrainProvider">#</a>
2101
-
2102
-
2103
- <span class='tag'>static</span>
2104
-
2105
-
2106
- <span class="code-name" id="toTerrainProvider" style="font-size:30px">
2107
-
2108
- toTerrainProvider<span class="signature">(subLayer)</span>
2109
-
2110
- </span>
2111
- </h4>
2112
-
2113
-
2114
-
2115
- <div class="description">
2116
- <p>将地形图层对象转换为MapGISTerrainProvider</p>
2117
- </div>
2118
-
2119
-
2120
-
2121
-
2122
-
2123
-
2124
-
2125
-
2126
-
2127
-
2128
- <h4>参数</h4>
2129
-
2130
- <div class="table-container">
2131
- <table class="params table">
2132
- <thead>
2133
- <tr>
2134
-
2135
- <th>名称</th>
2136
-
2137
-
2138
- <th>类型</th>
2139
-
2140
-
2141
-
2142
- <th class="last">描述</th>
2143
- </tr>
2144
- </thead>
2145
-
2146
- <tbody>
2147
-
2148
-
2149
-
2150
- <tr class="deep-level-0">
2151
-
2152
- <td class="name"><code>subLayer</code></td>
2153
-
2154
-
2155
- <td class="type">
2156
-
2157
-
2158
- <span class="param-type">
2159
-
2160
- Object
2161
-
2162
- </span>
2163
-
2164
-
2165
-
2166
-
2167
- </td>
2168
-
2169
-
2170
-
2171
- <td class="description last"><p>地形图层对象</p></td>
2172
- </tr>
2173
-
2174
-
2175
-
2176
-
2177
- </tbody>
2178
- </table>
2179
- </div>
2180
-
2181
-
2182
-
2183
-
2184
-
2185
-
2186
- <dl class="details">
2187
-
2188
-
2189
-
2190
-
2191
-
2192
-
2193
-
2194
-
2195
-
2196
-
2197
-
2198
-
2199
-
2200
-
2201
-
2202
-
2203
-
2204
-
2205
-
2206
-
2207
-
2208
-
2209
-
2210
-
2211
-
2212
-
2213
-
2214
-
2215
-
2216
-
2217
-
2218
- </dl>
2219
-
2220
-
2221
-
2222
-
2223
-
2224
-
2225
-
2226
-
2227
-
2228
-
2229
-
2230
-
2231
-
2232
-
2233
-
2234
-
2235
-
2236
-
2237
- <div class='columns method-parameter'>
2238
- <div class="column is-2"><label>返回值</label></div>
2239
- <div class="column is-10">
2240
-
2241
-
2242
-
2243
- <div class="columns">
2244
-
2245
-
2246
- <div class='column is-5 has-text-left'>
2247
- <label>类型: </label>
2248
-
2249
- <span class="param-type">
2250
-
2251
- <a link="MapGISTerrainProvider.html" onclick="getTypeHTML(event)" class="mapgis-link-name" title="MapGISTerrainProvider" MapGISTerrainProvider.html>MapGISTerrainProvider</a>
2252
-
2253
- </span>
2254
- |
2255
-
2256
- <span class="param-type">
2257
-
2258
- undefined
2259
-
2260
- </span>
2261
-
2262
-
2263
-
2264
- </div>
2265
-
2266
- </div>
2267
-
2268
-
2269
- </div>
2270
- </div>
2271
-
2272
-
2273
-
2274
-
2275
-
2276
-
2277
- <h5>示例</h5>
2278
-
2279
-
2280
- <pre class="prettyprint"><code>const url = 'http://webclient.smaryun.com:8089/igs/rest/services/Scene/TwTerrain/SceneServer'
2281
- const addSceneLayer = async (url) => {
2282
- const layer = new IGSSceneLayer({
2283
- url,
2284
- })
2285
- const loadedLayer = await layer.load()
2286
- const subLayers = loadedLayer.activeScene.sublayers
2287
- for (let i = 0; i &lt; subLayers.length; i++) {
2288
- switch (_subLayer.type) {
2289
- case SceneSubLayerType.terrain:
2290
- const provider = IGSSceneLayerUtil.toTerrainProvider(_subLayer)
2291
- if (provider) {
2292
- viewer.terrainProvider = provider
2293
- }
2294
- break
2295
- }
2296
- }
2297
- }
2298
- addSceneLayer(url)</code></pre>
2299
-
2300
-
2301
-
2302
- </div>
2303
-
2304
- </div>
2305
- </div>
2306
-
2307
-
2308
-
2309
-
2310
-
2311
- </article>
2312
-
2313
- </section>