@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.9

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 (227) hide show
  1. package/README.md +280 -482
  2. package/dist/esm/commonjsHelpers.js +1 -0
  3. package/dist/esm/s3m.js +1 -0
  4. package/dist/esm/webclient-cesium-plugin.js +1 -0
  5. package/dist/umd/webclient-cesium-plugin.min.js +1 -0
  6. package/{documention → documentation}/AlgorithmLib.html +169 -149
  7. package/{documention → documentation}/AngulationTool.html +85 -51
  8. package/{documention → documentation}/AnimationTool.html +30 -30
  9. package/{documention → documentation}/ArcGISMapServerImageryProvider.html +9 -13
  10. package/{documention → documentation}/ArcGISMapServerSingleImageryProvider.html +90 -30
  11. package/{documention → documentation}/ArcGISTileServerImageryProvider.html +17 -17
  12. package/{documention → documentation}/ArcGISVectorTileImageryProvider.html +21 -8
  13. package/{documention → documentation}/BaseImageryProvider.html +2 -2
  14. package/{documention → documentation}/Cesium.Material.html +2 -2
  15. package/{documention → documentation}/Cesium.Viewer.html +5 -5
  16. package/{documention → documentation}/Cesium3DTileset.html +43 -25
  17. package/{documention → documentation}/CesiumHeatmap.html +22 -19
  18. package/{documention/S3MTileset.html → documentation/CesiumNavigation.html} +52 -85
  19. package/{documention → documentation}/CesiumTerrainProvider.html +55 -15
  20. package/{documention/OpenWeatherImageryProvider.html → documentation/CircleWaveMaterialProperty.html} +75 -95
  21. package/{documention → documentation}/CollisionDetectionByRender.html +245 -88
  22. package/{documention → documentation}/CompatibleFunc.html +24 -33
  23. package/{documention → documentation}/CustomPrimitive.html +3 -5
  24. package/{documention → documentation}/CustomProjection.html +3 -3
  25. package/{documention → documentation}/CustomTilingScheme.html +35 -36
  26. package/{documention → documentation}/CutFillAnalysis.html +59 -27
  27. package/{documention → documentation}/CuttingTool.html +198 -103
  28. package/{documention → documentation}/Deferred.html +2 -2
  29. package/{documention → documentation}/DrawElement.html +418 -34
  30. package/{documention → documentation}/DrawTool.html +81 -29
  31. package/documentation/EditTool.html +2819 -0
  32. package/{documention → documentation}/FirstPersonPerspective.html +18 -10
  33. package/{documention → documentation}/FloodAnalysis.html +93 -23
  34. package/{documention → documentation}/FloodAnalysisReflection.html +18 -44
  35. package/documentation/FlowParticle.html +863 -0
  36. package/{documention → documentation}/Fluid.html +473 -74
  37. package/{documention → documentation}/FluidFoam.html +36 -16
  38. package/{documention → documentation}/FluidReflection.html +68 -15
  39. package/{documention → documentation}/FluidShadow.html +67 -14
  40. package/{documention → documentation}/FluidSourceCollection.html +14 -7
  41. package/{documention → documentation}/FluidSpecular.html +33 -14
  42. package/documentation/FluidSurfaceDistortion.html +682 -0
  43. package/documentation/FluidSurfaceFoam.html +1006 -0
  44. package/{documention → documentation}/FollowPerspective.html +15 -7
  45. package/{documention → documentation}/GeoJSONLayerUtil.html +38 -10
  46. package/documentation/GeoJSONLayerView.html +1353 -0
  47. package/{documention → documentation}/GlobeIndependentTranslucency.html +89 -6
  48. package/{documention → documentation}/GodPerspective.html +14 -6
  49. package/{documention → documentation}/Graphic.html +1053 -1042
  50. package/{documention → documentation}/GraphicTransformTool.html +65 -23
  51. package/{documention → documentation}/GraphicsLayer.html +359 -156
  52. package/{documention → documentation}/GraphicsLayerUtil.html +28 -10
  53. package/documentation/GraphicsLayerView.html +759 -0
  54. package/{documention/EditTool.html → documentation/HashMap.html} +253 -418
  55. package/{documention → documentation}/HeightLimited.html +54 -21
  56. package/documentation/IGSFeatureLayerUtil.html +840 -0
  57. package/documentation/IGSFeatureLayerView.html +1348 -0
  58. package/documentation/IGSMapImageLayerUtil.html +855 -0
  59. package/{documention/IGSFeatureLayerUtil.html → documentation/IGSMapImageLayerView.html} +68 -46
  60. package/documentation/IGSTileLayerView.html +658 -0
  61. package/{documention → documentation}/ISSceneLayerUtil.html +3 -3
  62. package/{documention → documentation}/KeyboardCameraController.html +54 -6
  63. package/documentation/LightningStorm.html +2073 -0
  64. package/documentation/MapGISClusterPrimitiveCollection.html +1050 -0
  65. package/{documention → documentation}/MapGISDynamicLabelCollection.html +370 -178
  66. package/{documention → documentation}/MapGISFeatureGridCollection.html +123 -89
  67. package/{documention → documentation}/MapGISImageServerImageryProvider.html +93 -71
  68. package/{documention → documentation}/MapGISImageServerSingleImageryProvider.html +140 -92
  69. package/{documention → documentation}/MapGISM3DSet.html +49 -33
  70. package/{documention → documentation}/MapGISMapServerImageryProvider.html +78 -87
  71. package/{documention → documentation}/MapGISMapServerSingleImageryProvider.html +111 -43
  72. package/{documention → documentation}/MapGISTerrainProvider.html +268 -208
  73. package/{documention → documentation}/MapGISTerrainService.html +124 -82
  74. package/{documention → documentation}/MapGISTileAvailability.html +104 -47
  75. package/{documention → documentation}/MapGISTileServerImageryProvider.html +76 -83
  76. package/{documention → documentation}/MapGISVectorTileImageryProvider.html +135 -115
  77. package/{documention → documentation}/MeasureAreaTool.html +53 -14
  78. package/{documention → documentation}/MeasureLengthTool.html +17 -14
  79. package/{documention → documentation}/MeasureSlopeTool.html +73 -34
  80. package/{documention/FlowParticle.html → documentation/ModelEditor.html} +132 -116
  81. package/{documention → documentation}/ModelFilterTool.html +27 -32
  82. package/{documention → documentation}/ModelTransformTool.html +195 -110
  83. package/{documention → documentation}/NavigationControl.html +25 -5
  84. package/{documention → documentation}/NavigationTool.html +36 -14
  85. package/{documention → documentation}/NormalPerspective.html +33 -7
  86. package/documentation/OpenWeatherImageryProvider.html +1133 -0
  87. package/{documention → documentation}/PointFluidSource.html +22 -13
  88. package/{documention → documentation}/PolylineTrailLinkMaterialProperty.html +104 -20
  89. package/{documention → documentation}/Popup.html +246 -63
  90. package/{documention/CesiumNavigation.html → documentation/PostProcessShaderBuilder.html} +10 -54
  91. package/{documention → documentation}/PostProcessStageLibrary.html +3127 -121
  92. package/{documention → documentation}/Promise.html +6 -6
  93. package/{documention → documentation}/ProviderBaseUrlRegExp.html +20 -4
  94. package/{documention → documentation}/Puddle.html +30 -9
  95. package/{documention → documentation}/RadarMaterialProperty.html +73 -18
  96. package/{documention → documentation}/ReImg.html +164 -15
  97. package/{documention → documentation}/RenderUtil.html +158 -6
  98. package/{documention → documentation}/ResetViewNavigationControl.html +28 -8
  99. package/{documention → documentation}/RiverGeometry.html +7 -7
  100. package/{documention → documentation}/RoamParticle.html +86 -79
  101. package/{documention → documentation}/RouteAnimationControl.html +37 -15
  102. package/{documention → documentation}/RouteAnimationLabel.html +39 -12
  103. package/{documention → documentation}/RouteAnimationModel.html +43 -16
  104. package/{documention → documentation}/RouteAnimationPath.html +156 -18
  105. package/{documention → documentation}/RouteAnimationPerspective.html +12 -3
  106. package/{documention → documentation}/RouteAnimationTool.html +244 -24
  107. package/documentation/S3MTileset.html +570 -0
  108. package/{documention → documentation}/SSR.html +20 -39
  109. package/{documention → documentation}/SceneView.html +615 -419
  110. package/documentation/SceneViewUtil.html +1253 -0
  111. package/documentation/Screenshot.html +964 -0
  112. package/{documention → documentation}/SelectTool.html +31 -77
  113. package/{documention → documentation}/ShadowRateAnalysis.html +236 -54
  114. package/{documention → documentation}/ShadowRateDrawCommand.html +18 -6
  115. package/{documention → documentation}/SingleImageryProvider.html +32 -10
  116. package/{documention → documentation}/SketchEditor.html +280 -127
  117. package/documentation/SkyLineAnalysis.html +576 -0
  118. package/{documention → documentation}/StableParticle.html +165 -46
  119. package/{documention → documentation}/Style.html +249 -249
  120. package/{documention → documentation}/TerrainAnalyse.html +391 -105
  121. package/{documention → documentation}/TerrainExcavateTool.html +99 -3
  122. package/{documention → documentation}/TerrainProfile.html +198 -56
  123. package/{documention → documentation}/ThemeManager.html +93 -42
  124. package/{documention → documentation}/Tooltip.html +35 -18
  125. package/documentation/TransformTool.html +1010 -0
  126. package/{documention → documentation}/TriangulationTool.html +122 -83
  127. package/documentation/UnderfluidCaustic.html +843 -0
  128. package/documentation/UnderfluidDistortion.html +600 -0
  129. package/documentation/UnderfluidFog.html +843 -0
  130. package/documentation/UnderfluidGodRay.html +843 -0
  131. package/documentation/UnderwaterCaustic.html +867 -0
  132. package/documentation/UnderwaterDistortion.html +578 -0
  133. package/documentation/UnderwaterFog.html +867 -0
  134. package/documentation/UnderwaterGodRay.html +821 -0
  135. package/{documention → documentation}/UrlTemplateImageryProvider.html +21 -9
  136. package/{documention → documentation}/UserInterfaceControl.html +28 -9
  137. package/documentation/VectorTileLayerUtil.html +1364 -0
  138. package/{documention → documentation}/VisiblityAnalysis.html +15 -12
  139. package/{documention → documentation}/VolumeCloud.html +113 -21
  140. package/{documention → documentation}/VolumeFluidSource.html +24 -8
  141. package/{documention → documentation}/WFSLayerUtil.html +39 -10
  142. package/documentation/WFSLayerView.html +1353 -0
  143. package/documentation/WMSLayerUtil.html +879 -0
  144. package/documentation/WMTSLayerUtil.html +877 -0
  145. package/documentation/WaterDepth.html +583 -0
  146. package/{documention → documentation}/WaterReflection.html +29 -26
  147. package/documentation/WaterSurface.html +2555 -0
  148. package/{documention/Underwater.html → documentation/WaterSurfaceDistortion.html} +79 -81
  149. package/documentation/WaterSurfaceFoam.html +1029 -0
  150. package/documentation/WaterSurfaceSSR.html +867 -0
  151. package/{documention → documentation}/WebMapServiceImageryProvider.html +8 -12
  152. package/{documention → documentation}/WebMapServiceSingleImageryProvider.html +94 -32
  153. package/{documention → documentation}/WebMapTileServiceImageryProvider.html +10 -15
  154. package/documentation/WebTileLayerUtil.html +877 -0
  155. package/{documention → documentation}/Wind3D.html +133 -54
  156. package/{documention → documentation}/ZoomNavigationControl.html +145 -9
  157. package/documentation/fonts/glyphicons-halflings-regular.svg +543 -0
  158. package/{documention → documentation}/global.html +14130 -2719
  159. package/{documention → documentation}/index.html +1 -1
  160. package/{documention → documentation}/initializeOptions.html +2 -2
  161. package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.EchartsLayer.html +96 -95
  162. package/{documention → documentation}/module-%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%8F%AF%E8%A7%86%E5%8C%96.MapVLayer.html +47 -46
  163. package/{documention → documentation}/module.exports_module.exports.html +2 -2
  164. package/{documention → documentation}/nav.html +3267 -1392
  165. package/documentation/nav.json +320 -0
  166. package/documentation/styles/adminlte/AdminLTE.min.css +4966 -0
  167. package/documentation/styles/adminlte/skin-blue.min.css +135 -0
  168. package/documentation/styles/bootstrap.min.css +7005 -0
  169. package/documentation/styles/common.css +173 -0
  170. package/documentation/styles/examples.css +119 -0
  171. package/{documention → documentation}/styles/font-awesome.css +692 -687
  172. package/documentation/styles/header.css +558 -0
  173. package/documentation/styles/jaguar.css +551 -0
  174. package/{documention → documentation}/styles/prettify-tomorrow.css +59 -28
  175. package/{documention → documentation}/styles/style.customize.css +83 -99
  176. package/package.json +42 -22
  177. package/dist/es5/webclient-cesium-plugin.min.js +0 -77
  178. package/dist/es5/webclient-common.min.js +0 -159
  179. package/dist/webclient-cesium-plugin-es6.min.js +0 -77
  180. package/documention/CircleWaveMaterialProperty.html +0 -382
  181. package/documention/DynamicEntityVisualizer.html +0 -348
  182. package/documention/DynamicLabelLayer.html +0 -1841
  183. package/documention/GroundPrimitiveLayer.html +0 -1675
  184. package/documention/HashMap.html +0 -4197
  185. package/documention/ModelEditor.html +0 -374
  186. package/documention/SceneViewCesium.html +0 -5544
  187. package/documention/Screenshot.html +0 -773
  188. package/documention/SketchEditorCesium.html +0 -1571
  189. package/documention/createColorTexture.html +0 -369
  190. package/documention/fonts/glyphicons-halflings-regular.svg +0 -288
  191. package/documention/isCounterClockwise.html +0 -760
  192. package/documention/scripts/app.min.js +0 -1
  193. package/documention/scripts/jquery.min.map +0 -1
  194. package/documention/scripts/search.js +0 -20
  195. package/documention/scripts/sideBar.js +0 -228
  196. package/documention/scripts/underscore-min.map +0 -1
  197. package/documention/styles/adminlte/AdminLTE.min.css +0 -7
  198. package/documention/styles/adminlte/skin-blue.min.css +0 -1
  199. package/documention/styles/anchor.png +0 -0
  200. package/documention/styles/app.min.css +0 -1
  201. package/documention/styles/bootstrap.min.css +0 -6
  202. package/documention/styles/c.png +0 -0
  203. package/documention/styles/common.css +0 -175
  204. package/documention/styles/examples.css +0 -116
  205. package/documention/styles/header.css +0 -556
  206. package/documention/styles/iframe.css +0 -29
  207. package/documention/styles/jaguar.css +0 -553
  208. package/documention/styles/m.png +0 -0
  209. package/documention/styles/reset.css +0 -44
  210. package/documention/styles/up-arrow.png +0 -0
  211. package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +0 -162
  212. /package/{documention → documentation}/fonts/fontawesome-webfont.woff2 +0 -0
  213. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.eot +0 -0
  214. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.ttf +0 -0
  215. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff +0 -0
  216. /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff2 +0 -0
  217. /package/{documention → documentation}/scripts/adminlte/app.min.js +0 -0
  218. /package/{documention → documentation}/scripts/bootstrap.min.js +0 -0
  219. /package/{documention → documentation}/scripts/jquery.min.js +0 -0
  220. /package/{documention → documentation}/scripts/linenumber.js +0 -0
  221. /package/{documention → documentation}/scripts/main.js +0 -0
  222. /package/{documention → documentation}/scripts/prettify/Apache-License-2.0.txt +0 -0
  223. /package/{documention → documentation}/scripts/prettify/lang-css.js +0 -0
  224. /package/{documention → documentation}/scripts/prettify/prettify.js +0 -0
  225. /package/{documention → documentation}/scripts/underscore-min.js +0 -0
  226. /package/{documention → documentation}/styles/adminlte/font-awesome.min.css +0 -0
  227. /package/{documention → documentation}/styles/prettify-jsdoc.css +0 -0
@@ -83,7 +83,7 @@
83
83
  <div class="nameContainer">
84
84
  <h4 class="name" id="MapGISTerrainProvider">
85
85
 
86
- new MapGISTerrainProvider<span class="signature">(options)</span>
86
+ new MapGISTerrainProvider<span class="signature">(<span class="optional">options</span>)</span>
87
87
  </h4>
88
88
 
89
89
 
@@ -94,15 +94,17 @@
94
94
  </div>
95
95
 
96
96
 
97
- <p class="summary"><h5>支持如下方法:</h5>
98
- <a href='#fromUrl'>[1、通过场景服务的url获取MapGISTerrainProvider对象]</a><br/></p>
99
-
100
97
  </dt>
101
98
  <dd>
102
99
 
103
100
 
104
101
  <div class="description">
105
- <p>MapGIS地形服务接入类</p>
102
+ <p>MapGIS 地形服务接入类。</p>
103
+ <p>该类用于将 MapGIS 地形服务封装为 Cesium <code>TerrainProvider</code>,支持单服务加载和多服务
104
+ 混合加载两种模式。在多地形场景下会依据瓦片可用范围自动选择当前可见的地形子服务,
105
+ 并统一管理法向量请求、高程赋色和请求头等运行参数。</p>
106
+ <p>推荐通过 <code>fromUrl</code> 从场景服务自动识别地形子图层并创建 provider;当业务需要手动
107
+ 拼装多个 DEM 服务时,可直接传入 <code>serviceList</code>。</p>
106
108
  </div>
107
109
 
108
110
 
@@ -123,6 +125,8 @@
123
125
  <th>Type</th>
124
126
 
125
127
 
128
+ <th>Default</th>
129
+
126
130
 
127
131
  <th class="last">Description</th>
128
132
  </tr>
@@ -146,10 +150,23 @@
146
150
  </td>
147
151
 
148
152
 
153
+ <td class="default">
154
+
155
+ {}
156
+
157
+ </td>
158
+
149
159
 
150
160
  <td class="description last">
151
161
 
162
+
163
+ <span class="optional"> 可选</span>
164
+
165
+
166
+
167
+
152
168
 
169
+ <p>构造参数。</p>
153
170
 
154
171
 
155
172
  <table class="params">
@@ -206,11 +223,7 @@
206
223
 
207
224
 
208
225
 
209
- <p>服务基地址,
210
- 当仅加载一个DEM地形服务时,使用该初始化参数,当加载多个DEM地形服务时,请使用serviceList初始化参数,<br>
211
- 基地址格式为:<br>
212
- IGS1.0: http://{ip}:{port}/igs/rest/g3d/{folder}:{serviceName}/GetTerrain<br>
213
- IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/layers/{layerId}/terrains</p></td>
226
+ <p>单个地形服务地址。单服务模式下直接使用该地址,多服务模式下通常改为传入 <code>serviceList</code>。</p></td>
214
227
  </tr>
215
228
 
216
229
 
@@ -246,7 +259,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
246
259
 
247
260
 
248
261
 
249
- <p>地形的平铺方案,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html?classFilter=TilingScheme' target='_blank'>详见Cesium.TilingScheme</a></p></td>
262
+ <p>地形瓦片平铺方案。</p></td>
250
263
  </tr>
251
264
 
252
265
 
@@ -282,7 +295,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
282
295
 
283
296
 
284
297
 
285
- <p>地形二维范围</p></td>
298
+ <p>单服务模式下的二维范围。</p></td>
286
299
  </tr>
287
300
 
288
301
 
@@ -318,7 +331,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
318
331
 
319
332
 
320
333
 
321
- <p>地形三维范围</p></td>
334
+ <p>单服务模式下的三维范围。</p></td>
322
335
  </tr>
323
336
 
324
337
 
@@ -354,7 +367,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
354
367
 
355
368
 
356
369
 
357
- <p>是否请求法向量</p></td>
370
+ <p>是否为当前地形请求法向量数据。</p></td>
358
371
  </tr>
359
372
 
360
373
 
@@ -390,7 +403,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
390
403
 
391
404
 
392
405
 
393
- <p>地形最大显示级数</p></td>
406
+ <p>单个地形服务允许响应的最大级别。</p></td>
394
407
  </tr>
395
408
 
396
409
 
@@ -426,7 +439,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
426
439
 
427
440
 
428
441
 
429
- <p>地形分析-高程赋色功能的色表,格式为['#000000', '#2747E0', '#D33B7D', '#D33038', '#FF9742', '#ffd700', '#FFFFFF']</p></td>
442
+ <p>地形高程赋色使用的色表数组。</p></td>
430
443
  </tr>
431
444
 
432
445
 
@@ -462,7 +475,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
462
475
 
463
476
 
464
477
 
465
- <p>地形分析-高程赋色功能的最小高度</p></td>
478
+ <p>高程赋色的最小高度。</p></td>
466
479
  </tr>
467
480
 
468
481
 
@@ -498,7 +511,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
498
511
 
499
512
 
500
513
 
501
- <p>地形分析-高程赋色功能的最大高度</p></td>
514
+ <p>高程赋色的最大高度。</p></td>
502
515
  </tr>
503
516
 
504
517
 
@@ -534,7 +547,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
534
547
 
535
548
 
536
549
 
537
- <p>坡度箭头重复次数,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html?classFilter=Cartesian2' target='_blank'>详见Cesium.Cartesian2</a></p></td>
550
+ <p>坡度箭头重复次数。</p></td>
538
551
  </tr>
539
552
 
540
553
 
@@ -570,7 +583,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
570
583
 
571
584
 
572
585
 
573
- <p>请求拦截器,可对最后发出的请求链接进行编辑,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html?classFilter=Proxy' target='_blank'>详见Cesium.Proxy</a></p></td>
586
+ <p>请求代理对象,可在请求发出前改写目标地址。</p></td>
574
587
  </tr>
575
588
 
576
589
 
@@ -606,8 +619,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
606
619
 
607
620
 
608
621
 
609
- <p>当加载多个DEM地形服务时,请使用serviceList初始化参数。
610
- 此时传入的格式变为了[{url:'',range:{},range3D:{},requestVertexNormals:true,maxLevel:20}]</p></td>
622
+ <p>多地形模式下的服务清单。每项通常包含 <code>url</code>、范围、法向量开关和最大级别等信息。</p></td>
611
623
  </tr>
612
624
 
613
625
 
@@ -643,7 +655,7 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
643
655
 
644
656
 
645
657
 
646
- <p>A credit for the data source, which is displayed on the canvas,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html?classFilter=Credit' target='_blank'>详见Cesium.Credit</a></p></td>
658
+ <p>Cesium 视图中展示的数据源版权信息。</p></td>
647
659
  </tr>
648
660
 
649
661
 
@@ -694,6 +706,21 @@ IGS2.0: http://{ip}:{port}/igs/rest/services/{folder}/{serviceName}/SceneServer/
694
706
 
695
707
 
696
708
 
709
+ <h5>Example</h5>
710
+
711
+
712
+
713
+ <pre class="prettyprint"><code>// ES5引入方式
714
+ const { MapGISTerrainProvider } = zondy.cesium
715
+
716
+ // ES6引入方式
717
+ import { MapGISTerrainProvider } from '@mapgis/webclient-cesium-plugin'
718
+
719
+ const provider = await MapGISTerrainProvider.fromUrl(sceneUrl)
720
+ viewer.terrainProvider = provider</code></pre>
721
+
722
+
723
+
697
724
  </dd>
698
725
 
699
726
 
@@ -919,8 +946,7 @@ This function should not be called before Cesium.CesiumTerrainProvider.ready ret
919
946
  <dd>
920
947
 
921
948
  <div class="description">
922
- <p>是否应用地形法向量,当所有地形子图层的hasVertexNormals和requestVertexNormals参数都为true时,
923
- MapGISTerrainProvider的hasVertexNormals属性为true,否则为false</p>
949
+ <p>是否含有地形法向量数据,IGS地形默认都含有法向量数据,因此固定返回true</p>
924
950
  </div>
925
951
 
926
952
 
@@ -1599,14 +1625,14 @@ not be called before Cesium.CesiumTerrainProvider.ready returns true.</p>
1599
1625
 
1600
1626
  <dt>
1601
1627
  <div class="nameContainer">
1602
- <h4 class="name" id=".fromUrl">
1628
+ <h4 class="name" id="addService">
1603
1629
 
1604
- MapGISTerrainProvider.fromUrl<span class="signature">(url, options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a>|undefined}</span>
1630
+ addService<span class="signature">(terrainService)</span>
1605
1631
  </h4>
1606
1632
 
1607
1633
 
1608
1634
  <div class="tag-source">
1609
- engineExtensions/core/MapGISTerrainProvider.js, line 198
1635
+ engineExtensions/core/MapGISTerrainProvider.js, line 526
1610
1636
  </div>
1611
1637
 
1612
1638
  </div>
@@ -1617,7 +1643,9 @@ not be called before Cesium.CesiumTerrainProvider.ready returns true.</p>
1617
1643
 
1618
1644
 
1619
1645
  <div class="description">
1620
- <p>通过场景服务的url获取MapGISTerrainProvider对象,若场景服务中不包含地形图层则返回undefined<a id='fromUrl'/></p>
1646
+ <p>向 provider 追加一个地形服务。</p>
1647
+ <p>该方法会把传入配置转换为 <code>MapGISTerrainService</code> 实例,创建对应的地形子图层,
1648
+ 并同步刷新整体范围与法向量可用状态。</p>
1621
1649
  </div>
1622
1650
 
1623
1651
 
@@ -1648,36 +1676,13 @@ not be called before Cesium.CesiumTerrainProvider.ready returns true.</p>
1648
1676
 
1649
1677
  <tr>
1650
1678
 
1651
- <td class="name"><code>url</code></td>
1652
-
1653
-
1654
- <td class="type">
1655
-
1656
-
1657
- <span class="param-type">String</span>
1658
-
1659
-
1660
-
1661
- </td>
1662
-
1663
-
1664
-
1665
- <td class="description last">
1666
-
1667
- <p>服务的基地址</p></td>
1668
- </tr>
1669
-
1670
-
1671
-
1672
- <tr>
1673
-
1674
- <td class="name"><code>options</code></td>
1679
+ <td class="name"><code>terrainService</code></td>
1675
1680
 
1676
1681
 
1677
1682
  <td class="type">
1678
1683
 
1679
1684
 
1680
- <span class="param-type">Object</span>
1685
+ <span class="param-type"><a href="MapGISTerrainService.html">MapGISTerrainService</a></span>
1681
1686
 
1682
1687
 
1683
1688
 
@@ -1687,7 +1692,7 @@ not be called before Cesium.CesiumTerrainProvider.ready returns true.</p>
1687
1692
 
1688
1693
  <td class="description last">
1689
1694
 
1690
- <p>实例化对象时提供的额外配置参数,若该对象中包含构造参数则会覆盖对应的构造参数</p></td>
1695
+ <p>待追加的地形服务配置。</p></td>
1691
1696
  </tr>
1692
1697
 
1693
1698
 
@@ -1730,54 +1735,7 @@ not be called before Cesium.CesiumTerrainProvider.ready returns true.</p>
1730
1735
 
1731
1736
 
1732
1737
 
1733
- <h5>Returns:</h5>
1734
-
1735
-
1736
-
1737
- <table class="params">
1738
- <thead>
1739
- <tr>
1740
-
1741
- <th>Type</th>
1742
- <th class="last">Description</th>
1743
- </tr>
1744
- </thead>
1745
- <tbody>
1746
-
1747
- <tr>
1748
-
1749
- <td class="type">
1750
-
1751
- <a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a>
1752
- |
1753
-
1754
- undefined
1755
-
1756
-
1757
- </td>
1758
- <td class="description last"></td>
1759
- </tr>
1760
-
1761
- </tbody>
1762
- </table>
1763
-
1764
-
1765
-
1766
-
1767
- <h5>Example</h5>
1768
-
1769
-
1770
-
1771
- <pre class="prettyprint"><code>const url = 'http://10.10.130.72:8089/igs/rest/services/Scene/TwTerrain/SceneServer'
1772
- const addTerrainProvider = async (url) => {
1773
- const imageryProvider = await MapGISTerrainProvider.fromUrl(url)
1774
- if (terrainProvider) {
1775
- viewer.terrainProvider = terrainProvider
1776
- }
1777
- }
1778
- addTerrainProvider(url)</code></pre>
1779
1738
 
1780
-
1781
1739
 
1782
1740
  </dd>
1783
1741
 
@@ -1785,14 +1743,14 @@ addTerrainProvider(url)</code></pre>
1785
1743
 
1786
1744
  <dt>
1787
1745
  <div class="nameContainer">
1788
- <h4 class="name" id="addService">
1746
+ <h4 class="name" id="getLayersByRange">
1789
1747
 
1790
- addService<span class="signature">(terrainService)</span>
1748
+ getLayersByRange<span class="signature">(range)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;Object>}</span>
1791
1749
  </h4>
1792
1750
 
1793
1751
 
1794
1752
  <div class="tag-source">
1795
- engineExtensions/core/MapGISTerrainProvider.js, line 521
1753
+ engineExtensions/core/MapGISTerrainProvider.js, line 733
1796
1754
  </div>
1797
1755
 
1798
1756
  </div>
@@ -1803,7 +1761,8 @@ addTerrainProvider(url)</code></pre>
1803
1761
 
1804
1762
 
1805
1763
  <div class="description">
1806
- <p>添加一个地形服务</p>
1764
+ <p>查询与指定范围相交的地形子图层。</p>
1765
+ <p>可用于在多地形场景下定位当前业务范围实际命中的地形服务集合。</p>
1807
1766
  </div>
1808
1767
 
1809
1768
 
@@ -1834,13 +1793,13 @@ addTerrainProvider(url)</code></pre>
1834
1793
 
1835
1794
  <tr>
1836
1795
 
1837
- <td class="name"><code>terrainService</code></td>
1796
+ <td class="name"><code>range</code></td>
1838
1797
 
1839
1798
 
1840
1799
  <td class="type">
1841
1800
 
1842
1801
 
1843
- <span class="param-type"><a href="MapGISTerrainService.html">MapGISTerrainService</a></span>
1802
+ <span class="param-type">Geometry</span>
1844
1803
 
1845
1804
 
1846
1805
 
@@ -1850,7 +1809,7 @@ addTerrainProvider(url)</code></pre>
1850
1809
 
1851
1810
  <td class="description last">
1852
1811
 
1853
- <p>地形服务数据对象</p></td>
1812
+ <p>用于求交的范围几何对象。</p></td>
1854
1813
  </tr>
1855
1814
 
1856
1815
 
@@ -1893,6 +1852,35 @@ addTerrainProvider(url)</code></pre>
1893
1852
 
1894
1853
 
1895
1854
 
1855
+ <h5>Returns:</h5>
1856
+
1857
+
1858
+
1859
+ <table class="params">
1860
+ <thead>
1861
+ <tr>
1862
+
1863
+ <th>Type</th>
1864
+ <th class="last">Description</th>
1865
+ </tr>
1866
+ </thead>
1867
+ <tbody>
1868
+
1869
+ <tr>
1870
+
1871
+ <td class="type">
1872
+
1873
+ Array.&lt;Object>
1874
+
1875
+
1876
+ </td>
1877
+ <td class="description last">与输入范围相交的地形子图层数组。</td>
1878
+ </tr>
1879
+
1880
+ </tbody>
1881
+ </table>
1882
+
1883
+
1896
1884
 
1897
1885
 
1898
1886
  </dd>
@@ -1901,14 +1889,14 @@ addTerrainProvider(url)</code></pre>
1901
1889
 
1902
1890
  <dt>
1903
1891
  <div class="nameContainer">
1904
- <h4 class="name" id="getLayersByRange">
1892
+ <h4 class="name" id="getServiceById">
1905
1893
 
1906
- getLayersByRange<span class="signature">(range)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;Object>}</span>
1894
+ getServiceById<span class="signature">(id)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="MapGISTerrainService.html">MapGISTerrainService</a>|null}</span>
1907
1895
  </h4>
1908
1896
 
1909
1897
 
1910
1898
  <div class="tag-source">
1911
- engineExtensions/core/MapGISTerrainProvider.js, line 697
1899
+ engineExtensions/core/MapGISTerrainProvider.js, line 624
1912
1900
  </div>
1913
1901
 
1914
1902
  </div>
@@ -1919,7 +1907,7 @@ addTerrainProvider(url)</code></pre>
1919
1907
 
1920
1908
 
1921
1909
  <div class="description">
1922
- <p>返回和range相交的地形子图层对象数组</p>
1910
+ <p>根据服务 ID 查询已注册的地形服务配置。</p>
1923
1911
  </div>
1924
1912
 
1925
1913
 
@@ -1950,13 +1938,13 @@ addTerrainProvider(url)</code></pre>
1950
1938
 
1951
1939
  <tr>
1952
1940
 
1953
- <td class="name"><code>range</code></td>
1941
+ <td class="name"><code>id</code></td>
1954
1942
 
1955
1943
 
1956
1944
  <td class="type">
1957
1945
 
1958
1946
 
1959
- <span class="param-type">Geometry</span>
1947
+ <span class="param-type">String</span>
1960
1948
 
1961
1949
 
1962
1950
 
@@ -1966,7 +1954,7 @@ addTerrainProvider(url)</code></pre>
1966
1954
 
1967
1955
  <td class="description last">
1968
1956
 
1969
- <p>范围几何对象</p></td>
1957
+ <p>地形服务 ID。</p></td>
1970
1958
  </tr>
1971
1959
 
1972
1960
 
@@ -2027,11 +2015,14 @@ addTerrainProvider(url)</code></pre>
2027
2015
 
2028
2016
  <td class="type">
2029
2017
 
2030
- Array.&lt;Object>
2018
+ <a href="MapGISTerrainService.html">MapGISTerrainService</a>
2019
+ |
2020
+
2021
+ null
2031
2022
 
2032
2023
 
2033
2024
  </td>
2034
- <td class="description last">相交的地形子图层对象数组</td>
2025
+ <td class="description last">命中的地形服务;未找到时返回 <code>null</code>。</td>
2035
2026
  </tr>
2036
2027
 
2037
2028
  </tbody>
@@ -2046,14 +2037,14 @@ addTerrainProvider(url)</code></pre>
2046
2037
 
2047
2038
  <dt>
2048
2039
  <div class="nameContainer">
2049
- <h4 class="name" id="getServiceById">
2040
+ <h4 class="name" id="removeService">
2050
2041
 
2051
- getServiceById<span class="signature">(id)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="MapGISTerrainService.html">MapGISTerrainService</a>|null}</span>
2042
+ removeService<span class="signature">(terrainService)</span>
2052
2043
  </h4>
2053
2044
 
2054
2045
 
2055
2046
  <div class="tag-source">
2056
- engineExtensions/core/MapGISTerrainProvider.js, line 600
2047
+ engineExtensions/core/MapGISTerrainProvider.js, line 614
2057
2048
  </div>
2058
2049
 
2059
2050
  </div>
@@ -2064,7 +2055,8 @@ addTerrainProvider(url)</code></pre>
2064
2055
 
2065
2056
 
2066
2057
  <div class="description">
2067
- <p>通过service的id获取service对象,没有则返null</p>
2058
+ <p>移除单个地形服务。</p>
2059
+ <p>该方法是 <code>removeServices</code> 的单项包装,适用于按服务对象逐个下线地形数据源。</p>
2068
2060
  </div>
2069
2061
 
2070
2062
 
@@ -2095,13 +2087,13 @@ addTerrainProvider(url)</code></pre>
2095
2087
 
2096
2088
  <tr>
2097
2089
 
2098
- <td class="name"><code>id</code></td>
2090
+ <td class="name"><code>terrainService</code></td>
2099
2091
 
2100
2092
 
2101
2093
  <td class="type">
2102
2094
 
2103
2095
 
2104
- <span class="param-type">String</span>
2096
+ <span class="param-type"><a href="MapGISTerrainService.html">MapGISTerrainService</a></span>
2105
2097
 
2106
2098
 
2107
2099
 
@@ -2111,7 +2103,7 @@ addTerrainProvider(url)</code></pre>
2111
2103
 
2112
2104
  <td class="description last">
2113
2105
 
2114
- <p>service对象的id</p></td>
2106
+ <p>待移除的地形服务。</p></td>
2115
2107
  </tr>
2116
2108
 
2117
2109
 
@@ -2154,38 +2146,6 @@ addTerrainProvider(url)</code></pre>
2154
2146
 
2155
2147
 
2156
2148
 
2157
- <h5>Returns:</h5>
2158
-
2159
-
2160
-
2161
- <table class="params">
2162
- <thead>
2163
- <tr>
2164
-
2165
- <th>Type</th>
2166
- <th class="last">Description</th>
2167
- </tr>
2168
- </thead>
2169
- <tbody>
2170
-
2171
- <tr>
2172
-
2173
- <td class="type">
2174
-
2175
- <a href="MapGISTerrainService.html">MapGISTerrainService</a>
2176
- |
2177
-
2178
- null
2179
-
2180
-
2181
- </td>
2182
- <td class="description last">service对象</td>
2183
- </tr>
2184
-
2185
- </tbody>
2186
- </table>
2187
-
2188
-
2189
2149
 
2190
2150
 
2191
2151
  </dd>
@@ -2194,14 +2154,14 @@ addTerrainProvider(url)</code></pre>
2194
2154
 
2195
2155
  <dt>
2196
2156
  <div class="nameContainer">
2197
- <h4 class="name" id="removeService">
2157
+ <h4 class="name" id="removeServices">
2198
2158
 
2199
- removeService<span class="signature">(terrainService)</span>
2159
+ removeServices<span class="signature">(terrainServices)</span>
2200
2160
  </h4>
2201
2161
 
2202
2162
 
2203
2163
  <div class="tag-source">
2204
- engineExtensions/core/MapGISTerrainProvider.js, line 591
2164
+ engineExtensions/core/MapGISTerrainProvider.js, line 601
2205
2165
  </div>
2206
2166
 
2207
2167
  </div>
@@ -2212,7 +2172,9 @@ addTerrainProvider(url)</code></pre>
2212
2172
 
2213
2173
 
2214
2174
  <div class="description">
2215
- <p>删除一个地形服务</p>
2175
+ <p>批量移除一组地形服务。</p>
2176
+ <p>传入的每个服务都会从服务清单和对应子图层中删除,并在完成后统一刷新
2177
+ provider 的法向量能力状态。</p>
2216
2178
  </div>
2217
2179
 
2218
2180
 
@@ -2243,13 +2205,13 @@ addTerrainProvider(url)</code></pre>
2243
2205
 
2244
2206
  <tr>
2245
2207
 
2246
- <td class="name"><code>terrainService</code></td>
2208
+ <td class="name"><code>terrainServices</code></td>
2247
2209
 
2248
2210
 
2249
2211
  <td class="type">
2250
2212
 
2251
2213
 
2252
- <span class="param-type"><a href="MapGISTerrainService.html">MapGISTerrainService</a></span>
2214
+ <span class="param-type">Array.&lt;<a href="MapGISTerrainService.html">MapGISTerrainService</a>></span>
2253
2215
 
2254
2216
 
2255
2217
 
@@ -2259,7 +2221,7 @@ addTerrainProvider(url)</code></pre>
2259
2221
 
2260
2222
  <td class="description last">
2261
2223
 
2262
- <p>地形服务数据对象</p></td>
2224
+ <p>待移除的地形服务列表。</p></td>
2263
2225
  </tr>
2264
2226
 
2265
2227
 
@@ -2310,14 +2272,14 @@ addTerrainProvider(url)</code></pre>
2310
2272
 
2311
2273
  <dt>
2312
2274
  <div class="nameContainer">
2313
- <h4 class="name" id="removeServices">
2275
+ <h4 class="name" id="updateService">
2314
2276
 
2315
- removeServices<span class="signature">(terrainServices)</span>
2277
+ updateService<span class="signature">(terrainService)</span>
2316
2278
  </h4>
2317
2279
 
2318
2280
 
2319
2281
  <div class="tag-source">
2320
- engineExtensions/core/MapGISTerrainProvider.js, line 579
2282
+ engineExtensions/core/MapGISTerrainProvider.js, line 660
2321
2283
  </div>
2322
2284
 
2323
2285
  </div>
@@ -2328,7 +2290,8 @@ addTerrainProvider(url)</code></pre>
2328
2290
 
2329
2291
 
2330
2292
  <div class="description">
2331
- <p>删除多个地形服务</p>
2293
+ <p>用新的服务配置替换同 ID 的地形服务。</p>
2294
+ <p>替换成功后会同步重建对应子图层,使范围、级别或地址等变更立即参与后续瓦片请求。</p>
2332
2295
  </div>
2333
2296
 
2334
2297
 
@@ -2359,13 +2322,13 @@ addTerrainProvider(url)</code></pre>
2359
2322
 
2360
2323
  <tr>
2361
2324
 
2362
- <td class="name"><code>terrainServices</code></td>
2325
+ <td class="name"><code>terrainService</code></td>
2363
2326
 
2364
2327
 
2365
2328
  <td class="type">
2366
2329
 
2367
2330
 
2368
- <span class="param-type">Array.&lt;<a href="MapGISTerrainService.html">MapGISTerrainService</a>></span>
2331
+ <span class="param-type"><a href="MapGISTerrainService.html">MapGISTerrainService</a></span>
2369
2332
 
2370
2333
 
2371
2334
 
@@ -2375,7 +2338,7 @@ addTerrainProvider(url)</code></pre>
2375
2338
 
2376
2339
  <td class="description last">
2377
2340
 
2378
- <p>地形服务数据对象</p></td>
2341
+ <p>最新的地形服务配置。</p></td>
2379
2342
  </tr>
2380
2343
 
2381
2344
 
@@ -2426,14 +2389,14 @@ addTerrainProvider(url)</code></pre>
2426
2389
 
2427
2390
  <dt>
2428
2391
  <div class="nameContainer">
2429
- <h4 class="name" id="updateService">
2392
+ <h4 class="name" id="updateServiceProperty">
2430
2393
 
2431
- updateService<span class="signature">(terrainService)</span>
2394
+ updateServiceProperty<span class="signature">(id, key, value)</span>
2432
2395
  </h4>
2433
2396
 
2434
2397
 
2435
2398
  <div class="tag-source">
2436
- engineExtensions/core/MapGISTerrainProvider.js, line 632
2399
+ engineExtensions/core/MapGISTerrainProvider.js, line 697
2437
2400
  </div>
2438
2401
 
2439
2402
  </div>
@@ -2444,7 +2407,9 @@ addTerrainProvider(url)</code></pre>
2444
2407
 
2445
2408
 
2446
2409
  <div class="description">
2447
- <p>在serviceList中找到id和传入的service对象相同的service进行更新</p>
2410
+ <p>按属性维度更新指定地形服务。</p>
2411
+ <p>对显示状态、地址和级别等直接映射到子图层的字段会同步修改图层对象;
2412
+ 对范围和平铺方案等会触发子图层重建。</p>
2448
2413
  </div>
2449
2414
 
2450
2415
 
@@ -2475,13 +2440,36 @@ addTerrainProvider(url)</code></pre>
2475
2440
 
2476
2441
  <tr>
2477
2442
 
2478
- <td class="name"><code>terrainService</code></td>
2443
+ <td class="name"><code>id</code></td>
2479
2444
 
2480
2445
 
2481
2446
  <td class="type">
2482
2447
 
2483
2448
 
2484
- <span class="param-type"><a href="MapGISTerrainService.html">MapGISTerrainService</a></span>
2449
+ <span class="param-type">String</span>
2450
+
2451
+
2452
+
2453
+ </td>
2454
+
2455
+
2456
+
2457
+ <td class="description last">
2458
+
2459
+ <p>地形服务 ID。</p></td>
2460
+ </tr>
2461
+
2462
+
2463
+
2464
+ <tr>
2465
+
2466
+ <td class="name"><code>key</code></td>
2467
+
2468
+
2469
+ <td class="type">
2470
+
2471
+
2472
+ <span class="param-type">String</span>
2485
2473
 
2486
2474
 
2487
2475
 
@@ -2491,7 +2479,30 @@ addTerrainProvider(url)</code></pre>
2491
2479
 
2492
2480
  <td class="description last">
2493
2481
 
2494
- <p>地形服务对象</p></td>
2482
+ <p>待更新的属性名。</p></td>
2483
+ </tr>
2484
+
2485
+
2486
+
2487
+ <tr>
2488
+
2489
+ <td class="name"><code>value</code></td>
2490
+
2491
+
2492
+ <td class="type">
2493
+
2494
+
2495
+ <span class="param-type">*</span>
2496
+
2497
+
2498
+
2499
+ </td>
2500
+
2501
+
2502
+
2503
+ <td class="description last">
2504
+
2505
+ <p>新属性值。</p></td>
2495
2506
  </tr>
2496
2507
 
2497
2508
 
@@ -2542,14 +2553,14 @@ addTerrainProvider(url)</code></pre>
2542
2553
 
2543
2554
  <dt>
2544
2555
  <div class="nameContainer">
2545
- <h4 class="name" id="updateServiceProperty">
2556
+ <h4 class="name" id=".fromUrl">
2546
2557
 
2547
- updateServiceProperty<span class="signature">(id, key, value)</span>
2558
+ MapGISTerrainProvider.fromUrl<span class="signature">(url, <span class="optional">options</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Promise.html">Promise</a>.&lt;(<a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a>|undefined)>}</span>
2548
2559
  </h4>
2549
2560
 
2550
2561
 
2551
2562
  <div class="tag-source">
2552
- engineExtensions/core/MapGISTerrainProvider.js, line 664
2563
+ engineExtensions/core/MapGISTerrainProvider.js, line 182
2553
2564
  </div>
2554
2565
 
2555
2566
  </div>
@@ -2560,7 +2571,9 @@ addTerrainProvider(url)</code></pre>
2560
2571
 
2561
2572
 
2562
2573
  <div class="description">
2563
- <p>在serviceList中找到id和传入的service对象,单独更新service上的某一个属性</p>
2574
+ <p>通过场景服务地址创建地形提供器。</p>
2575
+ <p>该方法会从场景服务中解析可用的地形子图层,并基于识别结果组装
2576
+ <code>MapGISTerrainService</code> 列表。若场景服务中不包含地形图层,则返回 <code>undefined</code>。</p>
2564
2577
  </div>
2565
2578
 
2566
2579
 
@@ -2581,6 +2594,8 @@ addTerrainProvider(url)</code></pre>
2581
2594
  <th>Type</th>
2582
2595
 
2583
2596
 
2597
+ <th>Default</th>
2598
+
2584
2599
 
2585
2600
  <th class="last">Description</th>
2586
2601
  </tr>
@@ -2591,7 +2606,7 @@ addTerrainProvider(url)</code></pre>
2591
2606
 
2592
2607
  <tr>
2593
2608
 
2594
- <td class="name"><code>id</code></td>
2609
+ <td class="name"><code>url</code></td>
2595
2610
 
2596
2611
 
2597
2612
  <td class="type">
@@ -2604,56 +2619,55 @@ addTerrainProvider(url)</code></pre>
2604
2619
  </td>
2605
2620
 
2606
2621
 
2622
+ <td class="default">
2623
+
2624
+ </td>
2625
+
2607
2626
 
2608
2627
  <td class="description last">
2609
2628
 
2610
- <p>地形服务对象的Id</p></td>
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+ <p>场景服务地址。</p></td>
2611
2635
  </tr>
2612
2636
 
2613
2637
 
2614
2638
 
2615
2639
  <tr>
2616
2640
 
2617
- <td class="name"><code>key</code></td>
2641
+ <td class="name"><code>options</code></td>
2618
2642
 
2619
2643
 
2620
2644
  <td class="type">
2621
2645
 
2622
2646
 
2623
- <span class="param-type">String</span>
2647
+ <span class="param-type">Object</span>
2624
2648
 
2625
2649
 
2626
2650
 
2627
2651
  </td>
2628
2652
 
2629
2653
 
2630
-
2631
- <td class="description last">
2654
+ <td class="default">
2632
2655
 
2633
- <p>属性名</p></td>
2634
- </tr>
2635
-
2636
-
2637
-
2638
- <tr>
2639
-
2640
- <td class="name"><code>value</code></td>
2641
-
2642
-
2643
- <td class="type">
2644
-
2656
+ {}
2645
2657
 
2646
- <span class="param-type">Any</span>
2647
-
2648
-
2649
-
2650
- </td>
2651
-
2658
+ </td>
2652
2659
 
2653
2660
 
2654
2661
  <td class="description last">
2655
2662
 
2656
- <p>属性值</p></td>
2663
+
2664
+ <span class="optional"> 可选</span>
2665
+
2666
+
2667
+
2668
+
2669
+
2670
+ <p>附加配置参数。可覆盖自动识别后的默认地形参数。</p></td>
2657
2671
  </tr>
2658
2672
 
2659
2673
 
@@ -2696,7 +2710,53 @@ addTerrainProvider(url)</code></pre>
2696
2710
 
2697
2711
 
2698
2712
 
2713
+ <h5>Returns:</h5>
2699
2714
 
2715
+
2716
+
2717
+ <table class="params">
2718
+ <thead>
2719
+ <tr>
2720
+
2721
+ <th>Type</th>
2722
+ <th class="last">Description</th>
2723
+ </tr>
2724
+ </thead>
2725
+ <tbody>
2726
+
2727
+ <tr>
2728
+
2729
+ <td class="type">
2730
+
2731
+ <a href="Promise.html">Promise</a>.&lt;(<a href="MapGISTerrainProvider.html">MapGISTerrainProvider</a>|undefined)>
2732
+
2733
+
2734
+ </td>
2735
+ <td class="description last">已初始化的地形提供器;若未识别到地形图层则返回 <code>undefined</code>。</td>
2736
+ </tr>
2737
+
2738
+ </tbody>
2739
+ </table>
2740
+
2741
+
2742
+
2743
+
2744
+ <h5>Example</h5>
2745
+
2746
+
2747
+
2748
+ <pre class="prettyprint"><code>// ES5引入方式
2749
+ const { MapGISTerrainProvider } = zondy.cesium
2750
+
2751
+ // ES6引入方式
2752
+ import { MapGISTerrainProvider } from '@mapgis/webclient-cesium-plugin'
2753
+
2754
+ const terrainProvider = await MapGISTerrainProvider.fromUrl(sceneUrl)
2755
+ if (terrainProvider) {
2756
+ viewer.terrainProvider = terrainProvider
2757
+ }</code></pre>
2758
+
2759
+
2700
2760
 
2701
2761
  </dd>
2702
2762
 
@@ -2714,7 +2774,7 @@ addTerrainProvider(url)</code></pre>
2714
2774
 
2715
2775
 
2716
2776
  <footer>
2717
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:54 GMT+0800 (中国标准时间)
2777
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Sat Sep 12 2026 11:55:59 GMT+0800 (中国标准时间)
2718
2778
  </footer>
2719
2779
  </div>
2720
2780
  </div>