@mapgis/webclient-cesium-plugin 17.8.1 → 17.10.10

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="GraphicsLayer">
85
85
 
86
- new GraphicsLayer<span class="signature">(viewer, options)</span>
86
+ new GraphicsLayer<span class="signature">(viewer, <span class="optional">options</span>)</span>
87
87
  </h4>
88
88
 
89
89
 
@@ -94,42 +94,15 @@
94
94
  </div>
95
95
 
96
96
 
97
- <p class="summary"><h5>支持如下方法:</h5>
98
- <a href='#startDrawing'>[1、开始绘制图形]</a><br/>
99
- <a href='#addGraphic'>[2、添加绘制图形]</a><br/>
100
- <a href='#addGraphic'>[3、添加绘制图形]</a><br/>
101
- <a href='#stopDrawing'>[4、移除所有鼠标事件,停止绘制]</a><br/>
102
- <a href='#startEdit'>[5、开始编辑]</a><br/>
103
- <a href='#stopEdit'>[6、停止编辑]</a><br/>
104
- <a href='#getGraphicByID'>[7、根据ID获取标绘图形对象]</a><br/>
105
- <a href='#getGraphicByName'>[8、根据name获取标绘图形对象]</a><br/>
106
- <a href='#getGraphicByGroupName'>[9、根据GroupName获取标绘图形对象]</a><br/>
107
- <a href='#getGraphicByIndex'>[10、根据序号获取标绘图形对象]</a><br/>
108
- <a href='#getIndexByGraphic'>[11、根据对象获取index]</a><br/>
109
- <a href='#getAllGraphic'>[12、获取图层所有标绘图形]</a><br/>
110
- <a href='#getTransformEditor'>[13、获取标绘模型编辑器]</a><br/>
111
- <a href='#removeGraphicByID'>[14、根据ID移除标绘图形]</a><br/>
112
- <a href='#removeGraphicByGroupName'>[15、根据GroupName移除一组标绘图形]</a><br/>
113
- <a href='#removeGraphicByIndex'>[16、根据序号移除标绘图形]</a><br/>
114
- <a href='#removeLastGraphic'>[17、移除最后一个标绘图形]</a><br/>
115
- <a href='#removePickingGraphic'>[18、移除选中标绘图形]</a><br/>
116
- <a href='#removeAllGraphic'>[19、移除是否成功]</a><br/>
117
- <a href='#exportToJson'>[20、整个图层导出为json文件]</a><br/>
118
- <a href='#calculateBoundingSphere'>[21、计算当前标绘图层的外包围球]</a><br/>
119
- <a href='#flyTo'>[22、跳转到该图层]</a><br/>
120
- <a href='#loadJson'>[23、加载json文件]</a><br/>
121
- <a href='#destroy'>[24、移除整个图层]</a><br/></p>
122
-
123
97
  </dt>
124
98
  <dd>
125
99
 
126
100
 
127
101
  <div class="description">
128
- <p>标绘图层<br>
129
- 请参考以下示例:<br>
130
- <a href='#example1'>1、初始化标绘图层</a><br>
131
- <a href='#example2'>2、重写提示框对象</a><br>
132
- <a href='http://10.10.130.72:8086/#/example-gallery/cesium#tdGraphBase' target='_blank'>3、更多示例</a></p>
102
+ <p>标绘图层。</p>
103
+ <p>该类用于管理 Cesium 场景中的标绘对象集合,提供绘制、编辑、查询、序列化与销毁等
104
+ 完整生命周期能力。适用于业务标绘、交互编辑和图层级批量管理场景。
105
+ 调用方可通过回调参数接入绘制结果、撤销操作和点击事件,构建自定义标绘工作流。</p>
133
106
  </div>
134
107
 
135
108
 
@@ -150,6 +123,8 @@
150
123
  <th>Type</th>
151
124
 
152
125
 
126
+ <th>Default</th>
127
+
153
128
 
154
129
  <th class="last">Description</th>
155
130
  </tr>
@@ -173,10 +148,19 @@
173
148
  </td>
174
149
 
175
150
 
151
+ <td class="default">
152
+
153
+ </td>
154
+
176
155
 
177
156
  <td class="description last">
178
157
 
179
- <p>场景视图对象,<a href='http://10.10.130.72:8086/static/modules/cesium/api/cesium/index.html' target='_blank'>详见Cesium.Viewer</a></p></td>
158
+
159
+
160
+
161
+
162
+
163
+ <p>场景视图对象。</p></td>
180
164
  </tr>
181
165
 
182
166
 
@@ -196,10 +180,23 @@
196
180
  </td>
197
181
 
198
182
 
183
+ <td class="default">
184
+
185
+ {}
186
+
187
+ </td>
188
+
199
189
 
200
190
  <td class="description last">
201
191
 
202
- <p>图层初始化参数</p>
192
+
193
+ <span class="optional"> 可选</span>
194
+
195
+
196
+
197
+
198
+
199
+ <p>图层初始化参数。</p>
203
200
 
204
201
 
205
202
  <table class="params">
@@ -598,8 +595,9 @@
598
595
 
599
596
  <pre class="prettyprint"><code>// ES5引入方式
600
597
  const { GraphicsLayer } = zondy.cesium
598
+
601
599
  // ES6引入方式
602
- import { GraphicsLayer } from "@mapgis/webclient-cesium-plugin"
600
+ import { GraphicsLayer } from '@mapgis/webclient-cesium-plugin'
603
601
 
604
602
  //初始化标绘图层
605
603
  const graphicsLayer = new GraphicsLayer(viewer, {
@@ -623,9 +621,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
623
621
  },
624
622
  //是否显示提示框
625
623
  enableToolTip: true
626
- });
627
- //添加标绘图层到图层管理器中
628
- viewer.scene.layers.appendGraphicsLayer(graphicsLayer);</code></pre>
624
+ })</code></pre>
629
625
 
630
626
 
631
627
  <p class="code-caption"><h7 id='example2'>重写提示框对象</h7></p>
@@ -634,8 +630,9 @@ viewer.scene.layers.appendGraphicsLayer(graphicsLayer);</code></pre>
634
630
 
635
631
  <pre class="prettyprint"><code>// ES5引入方式
636
632
  const { GraphicsLayer } = zondy.cesium
633
+
637
634
  // ES6引入方式
638
- import { GraphicsLayer } from "@mapgis/webclient-cesium-plugin"
635
+ import { GraphicsLayer } from '@mapgis/webclient-cesium-plugin'
639
636
 
640
637
  const graphicsLayer = new GraphicsLayer(viewer, {
641
638
  //重写鼠标移动提示事件,当toolTipDom存在时,只有两个回调参数
@@ -643,7 +640,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
643
640
  //你的提示事件
644
641
  },
645
642
  toolTipDom: "你的toolTipDom的DOM对象"
646
- });</code></pre>
643
+ })</code></pre>
647
644
 
648
645
 
649
646
 
@@ -769,12 +766,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
769
766
  <div class="nameContainer">
770
767
  <h4 class="name" id="addGraphic">
771
768
 
772
- addGraphic<span class="signature">(graphic, options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Graphic.html">Graphic</a>}</span>
769
+ addGraphic<span class="signature">(graphic, <span class="optional">options</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Graphic.html">Graphic</a>}</span>
773
770
  </h4>
774
771
 
775
772
 
776
773
  <div class="tag-source">
777
- engineExtensions/graphic/GraphicsLayer.js, line 349
774
+ engineExtensions/graphic/GraphicsLayer.js, line 331
778
775
  </div>
779
776
 
780
777
  </div>
@@ -785,7 +782,9 @@ const graphicsLayer = new GraphicsLayer(viewer, {
785
782
 
786
783
 
787
784
  <div class="description">
788
- <p>添加绘制图形<a id='addGraphic'/></p>
785
+ <p>将一个已有图元加入当前图层。</p>
786
+ <p>该方法会初始化图元与场景的绑定关系,并根据图元类型把 primitive、
787
+ label、billboard 或 DIV 节点挂入场景。</p>
789
788
  </div>
790
789
 
791
790
 
@@ -806,6 +805,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
806
805
  <th>Type</th>
807
806
 
808
807
 
808
+ <th>Default</th>
809
+
809
810
 
810
811
  <th class="last">Description</th>
811
812
  </tr>
@@ -822,17 +823,26 @@ const graphicsLayer = new GraphicsLayer(viewer, {
822
823
  <td class="type">
823
824
 
824
825
 
825
- <span class="param-type">Object</span>
826
+ <span class="param-type"><a href="Graphic.html">Graphic</a></span>
826
827
 
827
828
 
828
829
 
829
830
  </td>
830
831
 
831
832
 
833
+ <td class="default">
834
+
835
+ </td>
836
+
832
837
 
833
838
  <td class="description last">
834
839
 
835
- <p>不同类型实体参考:参见<a href="Graphic.html#.graphicType"><code>Graphic.graphicType</code></a></p></td>
840
+
841
+
842
+
843
+
844
+
845
+ <p>待加入图层的图元对象。</p></td>
836
846
  </tr>
837
847
 
838
848
 
@@ -852,10 +862,83 @@ const graphicsLayer = new GraphicsLayer(viewer, {
852
862
  </td>
853
863
 
854
864
 
865
+ <td class="default">
866
+
867
+ {}
868
+
869
+ </td>
870
+
855
871
 
856
872
  <td class="description last">
857
873
 
858
- <p>额外参数</p></td>
874
+
875
+ <span class="optional"> 可选</span>
876
+
877
+
878
+
879
+
880
+
881
+ <p>附加控制参数。</p>
882
+
883
+
884
+ <table class="params">
885
+ <thead>
886
+ <tr>
887
+
888
+ <th>Name</th>
889
+
890
+
891
+ <th>Type</th>
892
+
893
+
894
+ <th>Default</th>
895
+
896
+
897
+ <th class="last">Description</th>
898
+ </tr>
899
+ </thead>
900
+
901
+ <tbody>
902
+
903
+
904
+ <tr>
905
+
906
+ <td class="name"><code>enablePointerEvents</code></td>
907
+
908
+
909
+ <td class="type">
910
+
911
+
912
+ <span class="param-type">Boolean</span>
913
+
914
+
915
+
916
+ </td>
917
+
918
+
919
+ <td class="default">
920
+
921
+ true
922
+
923
+ </td>
924
+
925
+
926
+ <td class="description last">
927
+
928
+
929
+ <span class="optional"> 可选</span>
930
+
931
+
932
+
933
+
934
+
935
+ <p>对 DIV 图元是否启用鼠标事件穿透控制。</p></td>
936
+ </tr>
937
+
938
+
939
+ </tbody>
940
+ </table>
941
+ </td>
859
942
  </tr>
860
943
 
861
944
 
@@ -920,7 +1003,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
920
1003
 
921
1004
 
922
1005
  </td>
923
- <td class="description last">反回添加的图形</td>
1006
+ <td class="description last">已加入图层的图元对象。</td>
924
1007
  </tr>
925
1008
 
926
1009
  </tbody>
@@ -942,7 +1025,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
942
1025
 
943
1026
 
944
1027
  <div class="tag-source">
945
- engineExtensions/graphic/GraphicsLayer.js, line 1601
1028
+ engineExtensions/graphic/GraphicsLayer.js, line 1521
946
1029
  </div>
947
1030
 
948
1031
  </div>
@@ -953,7 +1036,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
953
1036
 
954
1037
 
955
1038
  <div class="description">
956
- <p>计算当前标绘图层的外包围球<a id='calculateBoundingSphere'/></p>
1039
+ <p>计算当前图层全部图元的外包围球。</p>
1040
+ <p>结果可用于视角跳转或整体范围评估。</p>
957
1041
  </div>
958
1042
 
959
1043
 
@@ -1020,7 +1104,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1020
1104
 
1021
1105
 
1022
1106
  </td>
1023
- <td class="description last">外包围球。</td>
1107
+ <td class="description last">图层当前内容的外包围球。</td>
1024
1108
  </tr>
1025
1109
 
1026
1110
  </tbody>
@@ -1042,7 +1126,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1042
1126
 
1043
1127
 
1044
1128
  <div class="tag-source">
1045
- engineExtensions/graphic/GraphicsLayer.js, line 1699
1129
+ engineExtensions/graphic/GraphicsLayer.js, line 1621
1046
1130
  </div>
1047
1131
 
1048
1132
  </div>
@@ -1053,7 +1137,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1053
1137
 
1054
1138
 
1055
1139
  <div class="description">
1056
- <p>移除整个图层<a id='destroy'/></p>
1140
+ <p>销毁图层及其关联交互资源。</p>
1141
+ <p>该方法会清空图元、停止编辑,并注销图层级事件处理器。</p>
1057
1142
  </div>
1058
1143
 
1059
1144
 
@@ -1113,7 +1198,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1113
1198
 
1114
1199
 
1115
1200
  <div class="tag-source">
1116
- engineExtensions/graphic/GraphicsLayer.js, line 1585
1201
+ engineExtensions/graphic/GraphicsLayer.js, line 1502
1117
1202
  </div>
1118
1203
 
1119
1204
  </div>
@@ -1124,7 +1209,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1124
1209
 
1125
1210
 
1126
1211
  <div class="description">
1127
- <p>整个图层导出为json文件<a id='exportToJson'/></p>
1212
+ <p>将整个图层序列化为 JSON 字符串。</p>
1213
+ <p>导出结果采用 <code>FeatureCollection</code> 结构,便于后续通过 <code>loadJson</code> 重新恢复。</p>
1128
1214
  </div>
1129
1215
 
1130
1216
 
@@ -1191,7 +1277,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1191
1277
 
1192
1278
 
1193
1279
  </td>
1194
- <td class="description last">json格式的字符串。</td>
1280
+ <td class="description last">图层内容的 JSON 字符串。</td>
1195
1281
  </tr>
1196
1282
 
1197
1283
  </tbody>
@@ -1213,7 +1299,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1213
1299
 
1214
1300
 
1215
1301
  <div class="tag-source">
1216
- engineExtensions/graphic/GraphicsLayer.js, line 1624
1302
+ engineExtensions/graphic/GraphicsLayer.js, line 1545
1217
1303
  </div>
1218
1304
 
1219
1305
  </div>
@@ -1224,7 +1310,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1224
1310
 
1225
1311
 
1226
1312
  <div class="description">
1227
- <p>跳转到该图层<a id='flyTo'/></p>
1313
+ <p>将相机飞行到当前图层范围。</p>
1228
1314
  </div>
1229
1315
 
1230
1316
 
@@ -1271,7 +1357,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1271
1357
 
1272
1358
  <td class="description last">
1273
1359
 
1274
- <p>跳转参数,参见<code>Camera#flyToBoundingSphere</code></p></td>
1360
+ <p>相机飞行参数,参见 <code>Camera#flyToBoundingSphere</code>。</p></td>
1275
1361
  </tr>
1276
1362
 
1277
1363
 
@@ -1324,12 +1410,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1324
1410
  <div class="nameContainer">
1325
1411
  <h4 class="name" id="getAllGraphic">
1326
1412
 
1327
- getAllGraphic<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;Object>}</span>
1413
+ getAllGraphic<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;<a href="Graphic.html">Graphic</a>>}</span>
1328
1414
  </h4>
1329
1415
 
1330
1416
 
1331
1417
  <div class="tag-source">
1332
- engineExtensions/graphic/GraphicsLayer.js, line 1461
1418
+ engineExtensions/graphic/GraphicsLayer.js, line 1363
1333
1419
  </div>
1334
1420
 
1335
1421
  </div>
@@ -1340,7 +1426,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1340
1426
 
1341
1427
 
1342
1428
  <div class="description">
1343
- <p>获取图层所有标绘图形<a id='getAllGraphic'/></p>
1429
+ <p>返回图层中的全部标绘对象。</p>
1344
1430
  </div>
1345
1431
 
1346
1432
 
@@ -1403,11 +1489,11 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1403
1489
 
1404
1490
  <td class="type">
1405
1491
 
1406
- Array.&lt;Object>
1492
+ Array.&lt;<a href="Graphic.html">Graphic</a>>
1407
1493
 
1408
1494
 
1409
1495
  </td>
1410
- <td class="description last">返回所有图形对象</td>
1496
+ <td class="description last">当前图层维护的全部图元。</td>
1411
1497
  </tr>
1412
1498
 
1413
1499
  </tbody>
@@ -1424,12 +1510,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1424
1510
  <div class="nameContainer">
1425
1511
  <h4 class="name" id="getGraphicByGroupName">
1426
1512
 
1427
- getGraphicByGroupName<span class="signature">(name)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;Object>|Undefined}</span>
1513
+ getGraphicByGroupName<span class="signature">(name)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;<a href="Graphic.html">Graphic</a>>|undefined}</span>
1428
1514
  </h4>
1429
1515
 
1430
1516
 
1431
1517
  <div class="tag-source">
1432
- engineExtensions/graphic/GraphicsLayer.js, line 1418
1518
+ engineExtensions/graphic/GraphicsLayer.js, line 1316
1433
1519
  </div>
1434
1520
 
1435
1521
  </div>
@@ -1440,7 +1526,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1440
1526
 
1441
1527
 
1442
1528
  <div class="description">
1443
- <p>根据GroupName获取标绘图形对象<a id='getGraphicByGroupName'/></p>
1529
+ <p>根据组名查询一组标绘对象。</p>
1530
+ <p>适用于模型组或业务分组场景下的批量检索。</p>
1444
1531
  </div>
1445
1532
 
1446
1533
 
@@ -1487,7 +1574,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1487
1574
 
1488
1575
  <td class="description last">
1489
1576
 
1490
- <p>图形ID</p></td>
1577
+ <p>图元组名。</p></td>
1491
1578
  </tr>
1492
1579
 
1493
1580
 
@@ -1548,14 +1635,14 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1548
1635
 
1549
1636
  <td class="type">
1550
1637
 
1551
- Array.&lt;Object>
1638
+ Array.&lt;<a href="Graphic.html">Graphic</a>>
1552
1639
  |
1553
1640
 
1554
- Undefined
1641
+ undefined
1555
1642
 
1556
1643
 
1557
1644
  </td>
1558
- <td class="description last">返回对象组</td>
1645
+ <td class="description last">命中的图元数组;无结果时返回 <code>undefined</code>。</td>
1559
1646
  </tr>
1560
1647
 
1561
1648
  </tbody>
@@ -1572,12 +1659,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1572
1659
  <div class="nameContainer">
1573
1660
  <h4 class="name" id="getGraphicByID">
1574
1661
 
1575
- getGraphicByID<span class="signature">(id)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Object|Undefined}</span>
1662
+ getGraphicByID<span class="signature">(id)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Graphic.html">Graphic</a>|undefined}</span>
1576
1663
  </h4>
1577
1664
 
1578
1665
 
1579
1666
  <div class="tag-source">
1580
- engineExtensions/graphic/GraphicsLayer.js, line 1359
1667
+ engineExtensions/graphic/GraphicsLayer.js, line 1255
1581
1668
  </div>
1582
1669
 
1583
1670
  </div>
@@ -1588,7 +1675,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1588
1675
 
1589
1676
 
1590
1677
  <div class="description">
1591
- <p>根据ID获取标绘图形对象<a id='getGraphicByID'/></p>
1678
+ <p>根据图元 ID 查询图层中的标绘对象。</p>
1679
+ <p>对 <code>marker</code> 类型会同时匹配其主图元、文字和广告牌子对象的 ID。</p>
1592
1680
  </div>
1593
1681
 
1594
1682
 
@@ -1635,7 +1723,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1635
1723
 
1636
1724
  <td class="description last">
1637
1725
 
1638
- <p>图形ID</p></td>
1726
+ <p>图元 ID。</p></td>
1639
1727
  </tr>
1640
1728
 
1641
1729
 
@@ -1696,14 +1784,14 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1696
1784
 
1697
1785
  <td class="type">
1698
1786
 
1699
- Object
1787
+ <a href="Graphic.html">Graphic</a>
1700
1788
  |
1701
1789
 
1702
- Undefined
1790
+ undefined
1703
1791
 
1704
1792
 
1705
1793
  </td>
1706
- <td class="description last">返回图层对象或者返回false查询失败</td>
1794
+ <td class="description last">命中的图元对象;未找到时返回 <code>undefined</code>。</td>
1707
1795
  </tr>
1708
1796
 
1709
1797
  </tbody>
@@ -1720,12 +1808,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1720
1808
  <div class="nameContainer">
1721
1809
  <h4 class="name" id="getGraphicByIndex">
1722
1810
 
1723
- getGraphicByIndex<span class="signature">(index)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Object}</span>
1811
+ getGraphicByIndex<span class="signature">(index)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Graphic.html">Graphic</a>|undefined}</span>
1724
1812
  </h4>
1725
1813
 
1726
1814
 
1727
1815
  <div class="tag-source">
1728
- engineExtensions/graphic/GraphicsLayer.js, line 1436
1816
+ engineExtensions/graphic/GraphicsLayer.js, line 1335
1729
1817
  </div>
1730
1818
 
1731
1819
  </div>
@@ -1736,7 +1824,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1736
1824
 
1737
1825
 
1738
1826
  <div class="description">
1739
- <p>根据序号获取标绘图形对象<a id='getGraphicByIndex'/></p>
1827
+ <p>根据图层内部索引获取图元。</p>
1740
1828
  </div>
1741
1829
 
1742
1830
 
@@ -1774,6 +1862,9 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1774
1862
 
1775
1863
 
1776
1864
  <span class="param-type">String</span>
1865
+ |
1866
+
1867
+ <span class="param-type">Number</span>
1777
1868
 
1778
1869
 
1779
1870
 
@@ -1783,7 +1874,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1783
1874
 
1784
1875
  <td class="description last">
1785
1876
 
1786
- <p>图形序号</p></td>
1877
+ <p>图层内部维护的图元索引。</p></td>
1787
1878
  </tr>
1788
1879
 
1789
1880
 
@@ -1844,11 +1935,14 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1844
1935
 
1845
1936
  <td class="type">
1846
1937
 
1847
- Object
1938
+ <a href="Graphic.html">Graphic</a>
1939
+ |
1940
+
1941
+ undefined
1848
1942
 
1849
1943
 
1850
1944
  </td>
1851
- <td class="description last">返回图形对象</td>
1945
+ <td class="description last">对应的图元对象。</td>
1852
1946
  </tr>
1853
1947
 
1854
1948
  </tbody>
@@ -1865,12 +1959,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1865
1959
  <div class="nameContainer">
1866
1960
  <h4 class="name" id="getGraphicByName">
1867
1961
 
1868
- getGraphicByName<span class="signature">(name, type)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;Object>|Undefined}</span>
1962
+ getGraphicByName<span class="signature">(name, <span class="optional">type</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Array.&lt;<a href="Graphic.html">Graphic</a>>|undefined}</span>
1869
1963
  </h4>
1870
1964
 
1871
1965
 
1872
1966
  <div class="tag-source">
1873
- engineExtensions/graphic/GraphicsLayer.js, line 1385
1967
+ engineExtensions/graphic/GraphicsLayer.js, line 1280
1874
1968
  </div>
1875
1969
 
1876
1970
  </div>
@@ -1881,7 +1975,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1881
1975
 
1882
1976
 
1883
1977
  <div class="description">
1884
- <p>根据name获取标绘图形对象<a id='getGraphicByName'/></p>
1978
+ <p>按名称查询图层中的标绘对象。</p>
1979
+ <p>支持精确匹配和模糊匹配两种模式,返回所有命中的图元。</p>
1885
1980
  </div>
1886
1981
 
1887
1982
 
@@ -1902,6 +1997,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1902
1997
  <th>Type</th>
1903
1998
 
1904
1999
 
2000
+ <th>Default</th>
2001
+
1905
2002
 
1906
2003
  <th class="last">Description</th>
1907
2004
  </tr>
@@ -1925,10 +2022,19 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1925
2022
  </td>
1926
2023
 
1927
2024
 
2025
+ <td class="default">
2026
+
2027
+ </td>
2028
+
1928
2029
 
1929
2030
  <td class="description last">
1930
2031
 
1931
- <p>图形ID</p></td>
2032
+
2033
+
2034
+
2035
+
2036
+
2037
+ <p>图元名称。</p></td>
1932
2038
  </tr>
1933
2039
 
1934
2040
 
@@ -1948,10 +2054,23 @@ const graphicsLayer = new GraphicsLayer(viewer, {
1948
2054
  </td>
1949
2055
 
1950
2056
 
2057
+ <td class="default">
2058
+
2059
+ 'equal'
2060
+
2061
+ </td>
2062
+
1951
2063
 
1952
2064
  <td class="description last">
1953
2065
 
1954
- <p>类型,equal、like</p></td>
2066
+
2067
+ <span class="optional"> 可选</span>
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+ <p>匹配模式,可选 <code>equal</code> 或 <code>like</code>。</p></td>
1955
2074
  </tr>
1956
2075
 
1957
2076
 
@@ -2012,14 +2131,14 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2012
2131
 
2013
2132
  <td class="type">
2014
2133
 
2015
- Array.&lt;Object>
2134
+ Array.&lt;<a href="Graphic.html">Graphic</a>>
2016
2135
  |
2017
2136
 
2018
- Undefined
2137
+ undefined
2019
2138
 
2020
2139
 
2021
2140
  </td>
2022
- <td class="description last">返回对象组</td>
2141
+ <td class="description last">命中的图元数组;无结果时返回 <code>undefined</code>。</td>
2023
2142
  </tr>
2024
2143
 
2025
2144
  </tbody>
@@ -2036,12 +2155,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2036
2155
  <div class="nameContainer">
2037
2156
  <h4 class="name" id="getIndexByGraphic">
2038
2157
 
2039
- getIndexByGraphic<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Boolean}</span>
2158
+ getIndexByGraphic<span class="signature">(value)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Number|Boolean}</span>
2040
2159
  </h4>
2041
2160
 
2042
2161
 
2043
2162
  <div class="tag-source">
2044
- engineExtensions/graphic/GraphicsLayer.js, line 1445
2163
+ engineExtensions/graphic/GraphicsLayer.js, line 1346
2045
2164
  </div>
2046
2165
 
2047
2166
  </div>
@@ -2052,7 +2171,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2052
2171
 
2053
2172
 
2054
2173
  <div class="description">
2055
- <p>根据对象获取index<a id='getIndexByGraphic'/></p>
2174
+ <p>反查图元在图层中的内部索引。</p>
2056
2175
  </div>
2057
2176
 
2058
2177
 
@@ -2061,6 +2180,51 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2061
2180
 
2062
2181
 
2063
2182
 
2183
+
2184
+
2185
+ <table class="params">
2186
+ <thead>
2187
+ <tr>
2188
+
2189
+ <th>Name</th>
2190
+
2191
+
2192
+ <th>Type</th>
2193
+
2194
+
2195
+
2196
+ <th class="last">Description</th>
2197
+ </tr>
2198
+ </thead>
2199
+
2200
+ <tbody>
2201
+
2202
+
2203
+ <tr>
2204
+
2205
+ <td class="name"><code>value</code></td>
2206
+
2207
+
2208
+ <td class="type">
2209
+
2210
+
2211
+ <span class="param-type"><a href="Graphic.html">Graphic</a></span>
2212
+
2213
+
2214
+
2215
+ </td>
2216
+
2217
+
2218
+
2219
+ <td class="description last">
2220
+
2221
+ <p>待查询的图元对象。</p></td>
2222
+ </tr>
2223
+
2224
+
2225
+ </tbody>
2226
+ </table>
2227
+
2064
2228
 
2065
2229
 
2066
2230
  <dl class="details">
@@ -2115,11 +2279,14 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2115
2279
 
2116
2280
  <td class="type">
2117
2281
 
2282
+ Number
2283
+ |
2284
+
2118
2285
  Boolean
2119
2286
 
2120
2287
 
2121
2288
  </td>
2122
- <td class="description last"></td>
2289
+ <td class="description last">命中的索引值;未找到时返回 <code>false</code>。</td>
2123
2290
  </tr>
2124
2291
 
2125
2292
  </tbody>
@@ -2136,12 +2303,12 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2136
2303
  <div class="nameContainer">
2137
2304
  <h4 class="name" id="getTransformEditor">
2138
2305
 
2139
- getTransformEditor<span class="signature">(Graphic, getViewModel)</span>
2306
+ getTransformEditor<span class="signature">(Graphic, getViewModel)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Object}</span>
2140
2307
  </h4>
2141
2308
 
2142
2309
 
2143
2310
  <div class="tag-source">
2144
- engineExtensions/graphic/GraphicsLayer.js, line 1471
2311
+ engineExtensions/graphic/GraphicsLayer.js, line 1376
2145
2312
  </div>
2146
2313
 
2147
2314
  </div>
@@ -2152,7 +2319,8 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2152
2319
 
2153
2320
 
2154
2321
  <div class="description">
2155
- <p>获取标绘模型编辑器<a id='getTransformEditor'/></p>
2322
+ <p>获取指定模型图元的变换编辑器。</p>
2323
+ <p>调用前通常需要先开启编辑模式,再把模型编辑器需要的 view model 回调传入。</p>
2156
2324
  </div>
2157
2325
 
2158
2326
 
@@ -2189,7 +2357,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2189
2357
  <td class="type">
2190
2358
 
2191
2359
 
2192
- <span class="param-type">Object</span>
2360
+ <span class="param-type"><a href="Graphic.html">Graphic</a></span>
2193
2361
 
2194
2362
 
2195
2363
 
@@ -2199,7 +2367,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2199
2367
 
2200
2368
  <td class="description last">
2201
2369
 
2202
- <p>模型对象</p></td>
2370
+ <p>需要编辑的模型图元。</p></td>
2203
2371
  </tr>
2204
2372
 
2205
2373
 
@@ -2222,7 +2390,7 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2222
2390
 
2223
2391
  <td class="description last">
2224
2392
 
2225
- <p>模型编辑器回调函数</p></td>
2393
+ <p>用于接收或构建编辑器 view model 的回调函数。</p></td>
2226
2394
  </tr>
2227
2395
 
2228
2396
 
@@ -2269,9 +2437,29 @@ const graphicsLayer = new GraphicsLayer(viewer, {
2269
2437
 
2270
2438
 
2271
2439
 
2272
-
2273
- Object 返回标绘模型编辑器
2274
-
2440
+ <table class="params">
2441
+ <thead>
2442
+ <tr>
2443
+
2444
+ <th>Type</th>
2445
+ <th class="last">Description</th>
2446
+ </tr>
2447
+ </thead>
2448
+ <tbody>
2449
+
2450
+ <tr>
2451
+
2452
+ <td class="type">
2453
+
2454
+ Object
2455
+
2456
+
2457
+ </td>
2458
+ <td class="description last">模型变换编辑器实例。</td>
2459
+ </tr>
2460
+
2461
+ </tbody>
2462
+ </table>
2275
2463
 
2276
2464
 
2277
2465
 
@@ -2284,12 +2472,12 @@ Object 返回标绘模型编辑器
2284
2472
  <div class="nameContainer">
2285
2473
  <h4 class="name" id="initGraphic">
2286
2474
 
2287
- initGraphic<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{Graphi}</span>
2475
+ initGraphic<span class="signature">(options)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{<a href="Graphic.html">Graphic</a>}</span>
2288
2476
  </h4>
2289
2477
 
2290
2478
 
2291
2479
  <div class="tag-source">
2292
- engineExtensions/graphic/GraphicsLayer.js, line 1719
2480
+ engineExtensions/graphic/GraphicsLayer.js, line 1644
2293
2481
  </div>
2294
2482
 
2295
2483
  </div>
@@ -2300,7 +2488,8 @@ Object 返回标绘模型编辑器
2300
2488
 
2301
2489
 
2302
2490
  <div class="description">
2303
- <p>初始化Graphic对象</p>
2491
+ <p>根据配置创建并初始化一个 <code>Graphic</code> 对象。</p>
2492
+ <p>返回对象已与当前 viewer 建立绑定,可直接继续加入图层或参与绘制流程。</p>
2304
2493
  </div>
2305
2494
 
2306
2495
 
@@ -2347,7 +2536,7 @@ Object 返回标绘模型编辑器
2347
2536
 
2348
2537
  <td class="description last">
2349
2538
 
2350
- <p>初始化参数</p></td>
2539
+ <p>图元初始化参数。</p></td>
2351
2540
  </tr>
2352
2541
 
2353
2542
 
@@ -2408,11 +2597,11 @@ Object 返回标绘模型编辑器
2408
2597
 
2409
2598
  <td class="type">
2410
2599
 
2411
- Graphi
2600
+ <a href="Graphic.html">Graphic</a>
2412
2601
 
2413
2602
 
2414
2603
  </td>
2415
- <td class="description last">初始化的Graphi对象</td>
2604
+ <td class="description last">已完成初始化的图元对象。</td>
2416
2605
  </tr>
2417
2606
 
2418
2607
  </tbody>
@@ -2434,7 +2623,7 @@ Object 返回标绘模型编辑器
2434
2623
 
2435
2624
 
2436
2625
  <div class="tag-source">
2437
- engineExtensions/graphic/GraphicsLayer.js, line 1636
2626
+ engineExtensions/graphic/GraphicsLayer.js, line 1557
2438
2627
  </div>
2439
2628
 
2440
2629
  </div>
@@ -2445,7 +2634,9 @@ Object 返回标绘模型编辑器
2445
2634
 
2446
2635
 
2447
2636
  <div class="description">
2448
- <p>加载json文件<a id='loadJson'/></p>
2637
+ <p>从 JSON 字符串恢复图层内容。</p>
2638
+ <p>该方法支持恢复普通图元和模型组数据,输入格式需与 <code>exportToJson</code>
2639
+ 的输出保持一致。</p>
2449
2640
  </div>
2450
2641
 
2451
2642
 
@@ -2492,7 +2683,7 @@ Object 返回标绘模型编辑器
2492
2683
 
2493
2684
  <td class="description last">
2494
2685
 
2495
- <p>json格式的字符串。</p></td>
2686
+ <p>图层序列化得到的 JSON 字符串。</p></td>
2496
2687
  </tr>
2497
2688
 
2498
2689
 
@@ -2550,7 +2741,7 @@ Object 返回标绘模型编辑器
2550
2741
 
2551
2742
 
2552
2743
  <div class="tag-source">
2553
- engineExtensions/graphic/GraphicsLayer.js, line 1558
2744
+ engineExtensions/graphic/GraphicsLayer.js, line 1472
2554
2745
  </div>
2555
2746
 
2556
2747
  </div>
@@ -2561,7 +2752,8 @@ Object 返回标绘模型编辑器
2561
2752
 
2562
2753
 
2563
2754
  <div class="description">
2564
- <p>移除图层所有标绘图形<a id='removeAllGraphic'/></p>
2755
+ <p>清空图层中的全部标绘对象。</p>
2756
+ <p>该方法会停止编辑状态、移除所有 primitive,并重置图层内部索引计数。</p>
2565
2757
  </div>
2566
2758
 
2567
2759
 
@@ -2628,7 +2820,7 @@ Object 返回标绘模型编辑器
2628
2820
 
2629
2821
 
2630
2822
  </td>
2631
- <td class="description last">移除是否成功</td>
2823
+ <td class="description last">始终返回 <code>true</code>,表示清空流程已执行。</td>
2632
2824
  </tr>
2633
2825
 
2634
2826
  </tbody>
@@ -2650,7 +2842,7 @@ Object 返回标绘模型编辑器
2650
2842
 
2651
2843
 
2652
2844
  <div class="tag-source">
2653
- engineExtensions/graphic/GraphicsLayer.js, line 1496
2845
+ engineExtensions/graphic/GraphicsLayer.js, line 1405
2654
2846
  </div>
2655
2847
 
2656
2848
  </div>
@@ -2661,7 +2853,8 @@ Object 返回标绘模型编辑器
2661
2853
 
2662
2854
 
2663
2855
  <div class="description">
2664
- <p>根据GroupName移除一组标绘图形<a id='removeGraphicByGroupName'/></p>
2856
+ <p>根据组名批量移除一组标绘对象。</p>
2857
+ <p>该方法会同时删除图层中同组名的 primitive 集合。</p>
2665
2858
  </div>
2666
2859
 
2667
2860
 
@@ -2708,7 +2901,7 @@ Object 返回标绘模型编辑器
2708
2901
 
2709
2902
  <td class="description last">
2710
2903
 
2711
- <p>组名</p></td>
2904
+ <p>组名。</p></td>
2712
2905
  </tr>
2713
2906
 
2714
2907
 
@@ -2766,7 +2959,7 @@ Object 返回标绘模型编辑器
2766
2959
 
2767
2960
 
2768
2961
  <div class="tag-source">
2769
- engineExtensions/graphic/GraphicsLayer.js, line 1482
2962
+ engineExtensions/graphic/GraphicsLayer.js, line 1388
2770
2963
  </div>
2771
2964
 
2772
2965
  </div>
@@ -2777,7 +2970,7 @@ Object 返回标绘模型编辑器
2777
2970
 
2778
2971
 
2779
2972
  <div class="description">
2780
- <p>根据ID移除标绘图形<a id='removeGraphicByID'/></p>
2973
+ <p>根据图元 ID 移除标绘对象。</p>
2781
2974
  </div>
2782
2975
 
2783
2976
 
@@ -2824,7 +3017,7 @@ Object 返回标绘模型编辑器
2824
3017
 
2825
3018
  <td class="description last">
2826
3019
 
2827
- <p>图形ID</p></td>
3020
+ <p>图元 ID。</p></td>
2828
3021
  </tr>
2829
3022
 
2830
3023
 
@@ -2847,7 +3040,7 @@ Object 返回标绘模型编辑器
2847
3040
 
2848
3041
  <td class="description last">
2849
3042
 
2850
- <p>不使用自带的remove</p></td>
3043
+ <p>是否跳过图元自身的 <code>remove</code> 流程。</p></td>
2851
3044
  </tr>
2852
3045
 
2853
3046
 
@@ -2905,7 +3098,7 @@ Object 返回标绘模型编辑器
2905
3098
 
2906
3099
 
2907
3100
  <div class="tag-source">
2908
- engineExtensions/graphic/GraphicsLayer.js, line 1523
3101
+ engineExtensions/graphic/GraphicsLayer.js, line 1432
2909
3102
  </div>
2910
3103
 
2911
3104
  </div>
@@ -2916,7 +3109,8 @@ Object 返回标绘模型编辑器
2916
3109
 
2917
3110
 
2918
3111
  <div class="description">
2919
- <p>根据序号移除标绘图形<a id='removeGraphicByIndex'/></p>
3112
+ <p>根据内部索引移除图元。</p>
3113
+ <p>若目标图元正在编辑,会先终止编辑流程,再执行图元移除。</p>
2920
3114
  </div>
2921
3115
 
2922
3116
 
@@ -2954,6 +3148,9 @@ Object 返回标绘模型编辑器
2954
3148
 
2955
3149
 
2956
3150
  <span class="param-type">String</span>
3151
+ |
3152
+
3153
+ <span class="param-type">Number</span>
2957
3154
 
2958
3155
 
2959
3156
 
@@ -2963,7 +3160,7 @@ Object 返回标绘模型编辑器
2963
3160
 
2964
3161
  <td class="description last">
2965
3162
 
2966
- <p>图形序号</p></td>
3163
+ <p>图层内部维护的图元索引。</p></td>
2967
3164
  </tr>
2968
3165
 
2969
3166
 
@@ -3021,7 +3218,7 @@ Object 返回标绘模型编辑器
3021
3218
 
3022
3219
 
3023
3220
  <div class="tag-source">
3024
- engineExtensions/graphic/GraphicsLayer.js, line 1542
3221
+ engineExtensions/graphic/GraphicsLayer.js, line 1452
3025
3222
  </div>
3026
3223
 
3027
3224
  </div>
@@ -3032,7 +3229,7 @@ Object 返回标绘模型编辑器
3032
3229
 
3033
3230
 
3034
3231
  <div class="description">
3035
- <p>移除最后一个标绘图形<a id='removeLastGraphic'/></p>
3232
+ <p>移除最近一次加入图层的图元。</p>
3036
3233
  </div>
3037
3234
 
3038
3235
 
@@ -3092,7 +3289,7 @@ Object 返回标绘模型编辑器
3092
3289
 
3093
3290
 
3094
3291
  <div class="tag-source">
3095
- engineExtensions/graphic/GraphicsLayer.js, line 1549
3292
+ engineExtensions/graphic/GraphicsLayer.js, line 1460
3096
3293
  </div>
3097
3294
 
3098
3295
  </div>
@@ -3103,7 +3300,7 @@ Object 返回标绘模型编辑器
3103
3300
 
3104
3301
 
3105
3302
  <div class="description">
3106
- <p>移除选中标绘图形<a id='removePickingGraphic'/></p>
3303
+ <p>移除当前编辑工具选中的图元。</p>
3107
3304
  </div>
3108
3305
 
3109
3306
 
@@ -3163,7 +3360,7 @@ Object 返回标绘模型编辑器
3163
3360
 
3164
3361
 
3165
3362
  <div class="tag-source">
3166
- engineExtensions/graphic/GraphicsLayer.js, line 278
3363
+ engineExtensions/graphic/GraphicsLayer.js, line 255
3167
3364
  </div>
3168
3365
 
3169
3366
  </div>
@@ -3174,7 +3371,10 @@ Object 返回标绘模型编辑器
3174
3371
 
3175
3372
 
3176
3373
  <div class="description">
3177
- <p>开始绘制图形 (注意:内部会开始地形深度检测功能)<a id='startDrawing'/></p>
3374
+ <p>启动交互式标绘流程。</p>
3375
+ <p>该方法会切换鼠标交互状态、销毁图层级点击响应,并根据 <code>type</code>
3376
+ 进入对应的点、线、面、模型或 DIV 绘制流程。绘制结束后可通过
3377
+ <code>getGraphic</code> 回调获取结果。</p>
3178
3378
  </div>
3179
3379
 
3180
3380
 
@@ -3221,7 +3421,7 @@ Object 返回标绘模型编辑器
3221
3421
 
3222
3422
  <td class="description last">
3223
3423
 
3224
-
3424
+ <p>绘制配置。</p>
3225
3425
 
3226
3426
 
3227
3427
  <table class="params">
@@ -3275,7 +3475,7 @@ Object 返回标绘模型编辑器
3275
3475
 
3276
3476
 
3277
3477
 
3278
- <p>绘制类型:参照<a href="Graphic.html#.graphicType"><code>Graphic.graphicType</code></a></p></td>
3478
+ <p>绘制类型,参见 <a href="Graphic.html#.graphicType"><code>Graphic.graphicType</code></a>。</p></td>
3279
3479
  </tr>
3280
3480
 
3281
3481
 
@@ -3311,7 +3511,7 @@ Object 返回标绘模型编辑器
3311
3511
 
3312
3512
 
3313
3513
 
3314
- <p>是否连续绘制</p></td>
3514
+ <p>是否在完成一个图元后继续保持绘制状态。</p></td>
3315
3515
  </tr>
3316
3516
 
3317
3517
 
@@ -3347,7 +3547,7 @@ Object 返回标绘模型编辑器
3347
3547
 
3348
3548
 
3349
3549
 
3350
- <p>是否绘制高度,当为true时使用鼠标绘制高度,当为false时使用参数设置的统一高度</p></td>
3550
+ <p>是否通过鼠标交互采集高度;关闭时使用样式中的统一高度。</p></td>
3351
3551
  </tr>
3352
3552
 
3353
3553
 
@@ -3381,7 +3581,7 @@ Object 返回标绘模型编辑器
3381
3581
 
3382
3582
 
3383
3583
 
3384
- <p>图元样式信息 详情参见<a href="Style.html"><code>Style</code></a></p></td>
3584
+ <p>新建图元的样式配置,详情参见 <a href="Style.html"><code>Style</code></a>。</p></td>
3385
3585
  </tr>
3386
3586
 
3387
3587
 
@@ -3415,7 +3615,7 @@ Object 返回标绘模型编辑器
3415
3615
 
3416
3616
 
3417
3617
 
3418
- <p>编辑点样式信息 详情参见<a href="Style.html#.EditPointStyle"><code>Style.EditPointStyle</code></a></p></td>
3618
+ <p>控制点样式配置,详情参见 <a href="Style.html#.EditPointStyle"><code>Style.EditPointStyle</code></a>。</p></td>
3419
3619
  </tr>
3420
3620
 
3421
3621
 
@@ -3449,7 +3649,7 @@ Object 返回标绘模型编辑器
3449
3649
 
3450
3650
 
3451
3651
 
3452
- <p>图元属性</p></td>
3652
+ <p>新建图元附带的业务属性。</p></td>
3453
3653
  </tr>
3454
3654
 
3455
3655
 
@@ -3483,7 +3683,7 @@ Object 返回标绘模型编辑器
3483
3683
 
3484
3684
 
3485
3685
 
3486
- <p>图元名称</p></td>
3686
+ <p>新建图元名称。</p></td>
3487
3687
  </tr>
3488
3688
 
3489
3689
 
@@ -3519,7 +3719,7 @@ Object 返回标绘模型编辑器
3519
3719
 
3520
3720
 
3521
3721
 
3522
- <p>图元是否显示</p></td>
3722
+ <p>新建图元是否默认显示。</p></td>
3523
3723
  </tr>
3524
3724
 
3525
3725
 
@@ -3555,7 +3755,7 @@ Object 返回标绘模型编辑器
3555
3755
 
3556
3756
 
3557
3757
 
3558
- <p>默认为阻塞式更新,true为异步更新,false为阻塞式更新。</p></td>
3758
+ <p>是否使用异步 primitive 更新。</p></td>
3559
3759
  </tr>
3560
3760
 
3561
3761
 
@@ -3591,7 +3791,7 @@ Object 返回标绘模型编辑器
3591
3791
 
3592
3792
 
3593
3793
 
3594
- <p>偏航角,弧度。</p></td>
3794
+ <p>偏航角,单位为弧度。</p></td>
3595
3795
  </tr>
3596
3796
 
3597
3797
 
@@ -3627,7 +3827,7 @@ Object 返回标绘模型编辑器
3627
3827
 
3628
3828
 
3629
3829
 
3630
- <p>俯仰角,弧度。</p></td>
3830
+ <p>俯仰角,单位为弧度。</p></td>
3631
3831
  </tr>
3632
3832
 
3633
3833
 
@@ -3663,7 +3863,7 @@ Object 返回标绘模型编辑器
3663
3863
 
3664
3864
 
3665
3865
 
3666
- <p>翻滚角,弧度。</p></td>
3866
+ <p>翻滚角,单位为弧度。</p></td>
3667
3867
  </tr>
3668
3868
 
3669
3869
 
@@ -3699,7 +3899,7 @@ Object 返回标绘模型编辑器
3699
3899
 
3700
3900
 
3701
3901
 
3702
- <p>局部坐标系X方向平移量,单位米,X方向为纬线方向</p></td>
3902
+ <p>局部坐标系 X 方向平移量,单位米。</p></td>
3703
3903
  </tr>
3704
3904
 
3705
3905
 
@@ -3735,7 +3935,7 @@ Object 返回标绘模型编辑器
3735
3935
 
3736
3936
 
3737
3937
 
3738
- <p>局部坐标系Y方向平移量,单位米,Y方向为经线方向</p></td>
3938
+ <p>局部坐标系 Y 方向平移量,单位米。</p></td>
3739
3939
  </tr>
3740
3940
 
3741
3941
 
@@ -3771,7 +3971,7 @@ Object 返回标绘模型编辑器
3771
3971
 
3772
3972
 
3773
3973
 
3774
- <p>局部坐标系Z方向平移量,单位米,Z方向为垂直地表方向</p></td>
3974
+ <p>局部坐标系 Z 方向平移量,单位米。</p></td>
3775
3975
  </tr>
3776
3976
 
3777
3977
 
@@ -3828,7 +4028,6 @@ Object 返回标绘模型编辑器
3828
4028
 
3829
4029
  <pre class="prettyprint"><code>//初始化标绘图层
3830
4030
  var graphicsLayer = new zonndy.cesium.GraphicsLayer(viewer, {});
3831
- viewer.scene.layers.appendGraphicsLayer(graphicsLayer);
3832
4031
  //开始绘制Marker
3833
4032
  graphicsLayer.startDrawing({
3834
4033
  type: 'marker',
@@ -3884,7 +4083,7 @@ graphicsLayer.startDrawing({
3884
4083
 
3885
4084
 
3886
4085
  <div class="tag-source">
3887
- engineExtensions/graphic/GraphicsLayer.js, line 1340
4086
+ engineExtensions/graphic/GraphicsLayer.js, line 1230
3888
4087
  </div>
3889
4088
 
3890
4089
  </div>
@@ -3895,7 +4094,8 @@ graphicsLayer.startDrawing({
3895
4094
 
3896
4095
 
3897
4096
  <div class="description">
3898
- <p>开始编辑<a id='startEdit'/></p>
4097
+ <p>激活图层的编辑工具。</p>
4098
+ <p>调用后可对已存在的图元执行选中、拖拽、控制点调整等编辑操作。</p>
3899
4099
  </div>
3900
4100
 
3901
4101
 
@@ -3955,7 +4155,7 @@ graphicsLayer.startDrawing({
3955
4155
 
3956
4156
 
3957
4157
  <div class="tag-source">
3958
- engineExtensions/graphic/GraphicsLayer.js, line 1273
4158
+ engineExtensions/graphic/GraphicsLayer.js, line 1160
3959
4159
  </div>
3960
4160
 
3961
4161
  </div>
@@ -3966,7 +4166,9 @@ graphicsLayer.startDrawing({
3966
4166
 
3967
4167
 
3968
4168
  <div class="description">
3969
- <p>移除所有鼠标事件,停止绘制<a id='stopDrawing'/></p>
4169
+ <p>停止当前绘制流程并恢复图层交互状态。</p>
4170
+ <p>该方法会移除绘制阶段注册的鼠标事件、销毁提示框,并清理尚未提交到图层的
4171
+ 临时图元。</p>
3970
4172
  </div>
3971
4173
 
3972
4174
 
@@ -4026,7 +4228,7 @@ graphicsLayer.startDrawing({
4026
4228
 
4027
4229
 
4028
4230
  <div class="tag-source">
4029
- engineExtensions/graphic/GraphicsLayer.js, line 1347
4231
+ engineExtensions/graphic/GraphicsLayer.js, line 1240
4030
4232
  </div>
4031
4233
 
4032
4234
  </div>
@@ -4037,7 +4239,8 @@ graphicsLayer.startDrawing({
4037
4239
 
4038
4240
 
4039
4241
  <div class="description">
4040
- <p>停止编辑<a id='stopEdit'/></p>
4242
+ <p>停止当前编辑流程。</p>
4243
+ <p>若编辑工具已激活,会同步结束当前选中图元的编辑状态。</p>
4041
4244
  </div>
4042
4245
 
4043
4246
 
@@ -4100,7 +4303,7 @@ graphicsLayer.startDrawing({
4100
4303
 
4101
4304
 
4102
4305
  <footer>
4103
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Feb 06 2026 14:59:54 GMT+0800 (中国标准时间)
4306
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:30 GMT+0800 (中国标准时间)
4104
4307
  </footer>
4105
4308
  </div>
4106
4309
  </div>