@mapgis/webclient-cesium-plugin 17.8.0 → 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 -474
  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 +92 -41
  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
@@ -1,1571 +0,0 @@
1
- <header id="page-title" class="page-title">
2
-
3
- <span class="page-title-main">类名</span>
4
- <span class="page-title-sub">SketchEditorCesium</span>
5
-
6
- </header>
7
-
8
-
9
-
10
-
11
-
12
- <section>
13
-
14
- <article>
15
- <div class="container-overview">
16
-
17
-
18
- <div class='vertical-section'>
19
- <div class="members">
20
- <div class="member">
21
-
22
-
23
-
24
-
25
- <h4 class="name" id="SketchEditorCesium">
26
- <a class="href-link" href="#SketchEditorCesium">#</a>
27
-
28
- <span class="code-name" id="SketchEditorCesium" style="font-size:30px">
29
-
30
- new SketchEditorCesium<span class="signature">(options)</span>
31
-
32
- </span>
33
- </h4>
34
-
35
-
36
-
37
- <div class="description">
38
- <p>Cesium引擎草图编辑类<br/>
39
- <br>[ES5引入方式]:<br/>
40
- const { SketchEditor } = zondy.tool.sketch <br/>
41
- [ES6引入方式]:<br/>
42
- import { SketchEditor } from &quot;@mapgis/webclient-leaflet-plugin&quot; <br/></p>
43
- </div>
44
-
45
-
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
- <h4>参数</h4>
55
-
56
- <div class="table-container">
57
- <table class="params table">
58
- <thead>
59
- <tr>
60
-
61
- <th>名称</th>
62
-
63
-
64
- <th>类型</th>
65
-
66
-
67
- <th style="min-width: 100px;">默认值</th>
68
-
69
-
70
- <th class="last">描述</th>
71
- </tr>
72
- </thead>
73
-
74
- <tbody>
75
-
76
-
77
-
78
- <tr class="deep-level-0">
79
-
80
- <td class="name"><code>options</code></td>
81
-
82
-
83
- <td class="type">
84
-
85
-
86
- <span class="param-type">
87
-
88
- Object
89
-
90
- </span>
91
-
92
-
93
-
94
-
95
- </td>
96
-
97
-
98
- <td class="default">
99
-
100
- </td>
101
-
102
-
103
- <td class="description last"><p>构造参数</p></td>
104
- </tr>
105
-
106
-
107
-
108
-
109
- <tr class="deep-level-1">
110
-
111
- <td class="name"><code>view</code></td>
112
-
113
-
114
- <td class="type">
115
-
116
-
117
- <span class="param-type">
118
-
119
- MapView
120
-
121
- </span>
122
- |
123
-
124
- <span class="param-type">
125
-
126
- SceneView
127
-
128
- </span>
129
-
130
-
131
-
132
-
133
- </td>
134
-
135
-
136
- <td class="default">
137
-
138
- </td>
139
-
140
-
141
- <td class="description last"><p>地图视图对象</p></td>
142
- </tr>
143
-
144
-
145
-
146
-
147
- <tr class="deep-level-1">
148
-
149
- <td class="name"><code>layer</code></td>
150
-
151
-
152
- <td class="type">
153
-
154
-
155
- <span class="param-type">
156
-
157
- GraphicsLayer
158
-
159
- </span>
160
-
161
-
162
-
163
-
164
- </td>
165
-
166
-
167
- <td class="default">
168
-
169
- </td>
170
-
171
-
172
- <td class="description last"><p>草图图层管对象</p></td>
173
- </tr>
174
-
175
-
176
-
177
-
178
- <tr class="deep-level-1">
179
-
180
- <td class="name"><code>sketchStyle</code></td>
181
-
182
-
183
- <td class="type">
184
-
185
-
186
- <span class="param-type">
187
-
188
- SketchStyle
189
-
190
- </span>
191
-
192
-
193
-
194
-
195
- </td>
196
-
197
-
198
- <td class="default">
199
-
200
- </td>
201
-
202
-
203
- <td class="description last"><p>草图符号</p></td>
204
- </tr>
205
-
206
-
207
-
208
-
209
- <tr class="deep-level-1">
210
-
211
- <td class="name"><code>snapOption</code></td>
212
-
213
-
214
- <td class="type">
215
-
216
-
217
- <span class="param-type">
218
-
219
- Object
220
-
221
- </span>
222
-
223
-
224
-
225
-
226
- </td>
227
-
228
-
229
- <td class="default">
230
-
231
- </td>
232
-
233
-
234
- <td class="description last"><p>草图捕获配置项</p></td>
235
- </tr>
236
-
237
-
238
-
239
-
240
- <tr class="deep-level-1">
241
-
242
- <td class="name"><code>arcType</code></td>
243
-
244
-
245
- <td class="type">
246
-
247
-
248
- <span class="param-type">
249
-
250
- ArcType
251
-
252
- </span>
253
-
254
-
255
-
256
-
257
- </td>
258
-
259
-
260
- <td class="default">
261
-
262
- ArcType.rhumb
263
-
264
- </td>
265
-
266
-
267
- <td class="description last"><p>草图图形弧线类型<br>
268
- 可选类型为:<br>
269
- 1、ArcType.none:不考虑弧度<br>
270
- 2、ArcType.geodesic:大地线(或称为大圆线)<br>
271
- 3、ArcType.rhumb:等角航线<br>
272
- 目前绘制线、区、矩形时,该属性生效<br>
273
- 请注意当绘制几何的高程模式设置为OnTheGround(贴地)和OnTheScene(贴场景)时,arcType支持设置为ArcType.geodesic和ArcType.rhumb,
274
- 当设置为ArcType.none时,内部会将该属性设置为ArcType.geodesic
275
- *</p></td>
276
- </tr>
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
- </tbody>
285
- </table>
286
- </div>
287
-
288
-
289
-
290
-
291
-
292
-
293
- <dl class="details">
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
-
317
-
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
- </dl>
326
-
327
-
328
-
329
-
330
-
331
- <div class="method-parameter columns">
332
- <div class="column is-2"><label>绑定事件</label></div>
333
- <div class="column is-10">
334
- <ul>
335
- <li><a href="#草图绘制完成事件">草图绘制完成事件</a></li>
336
-
337
- <li><a href="#草图被选中事件">草图被选中事件</a></li>
338
- </ul>
339
- </div>
340
- </div>
341
-
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
-
360
-
361
- </div>
362
- </div>
363
- </div>
364
-
365
-
366
- </div>
367
-
368
-
369
- <h3 class="subsection-title">继承关系</h3>
370
-
371
-
372
-
373
-
374
- <ul>
375
- <li>SketchEditor3D</li>
376
- </ul>
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
-
387
-
388
-
389
-
390
-
391
-
392
-
393
-
394
- <div class='vertical-section'>
395
- <h3 id='function'>方法</h3>
396
- <h4 style="margin-top: 20px;margin-bottom: 20px;">方法概述</h4>
397
- <div class="members">
398
- <div class="table-container">
399
- <table class="params table">
400
- <thead>
401
- <tr>
402
- <th>名称</th>
403
- <th>返回值类型</th>
404
- <th>描述</th>
405
- </tr>
406
- </thead>
407
- <tbody>
408
-
409
- <tr class="deep-level-0">
410
- <td class="name"><code><a href="#addVertex">addVertex</a></code></td>
411
- <td class="name">
412
- <code>
413
-
414
-
415
- <span class="param-type">
416
-
417
- Geometry
418
-
419
- </span>
420
-
421
-
422
-
423
-
424
- </code>
425
- </td>
426
- <td class="name"><code><p>向当前线或区草图中插入新的顶点</code></td>
427
- </tr>
428
-
429
- <tr class="deep-level-0">
430
- <td class="name"><code><a href="#drawPolylineToPolygon">drawPolylineToPolygon</a></code></td>
431
- <td class="name">
432
- <code>
433
-
434
- </code>
435
- </td>
436
- <td class="name"><code><p>线拓扑造区</code></td>
437
- </tr>
438
-
439
- <tr class="deep-level-0">
440
- <td class="name"><code><a href="#removeVertex">removeVertex</a></code></td>
441
- <td class="name">
442
- <code>
443
-
444
-
445
- <span class="param-type">
446
-
447
- Geometry
448
-
449
- </span>
450
-
451
-
452
-
453
-
454
- </code>
455
- </td>
456
- <td class="name"><code><p>移除草图图形的某个顶点</code></td>
457
- </tr>
458
-
459
- <tr class="deep-level-0">
460
- <td class="name"><code><a href="#split">split</a></code></td>
461
- <td class="name">
462
- <code>
463
-
464
-
465
- <span class="param-type">
466
-
467
- Array.&lt;Polygon>
468
-
469
- </span>
470
-
471
-
472
-
473
-
474
- </code>
475
- </td>
476
- <td class="name"><code><p>分割草图对象或区几何对象</code></td>
477
- </tr>
478
-
479
- <tr class="deep-level-0">
480
- <td class="name"><code><a href="#updateVertex">updateVertex</a></code></td>
481
- <td class="name">
482
- <code>
483
-
484
-
485
- <span class="param-type">
486
-
487
- Geometry
488
-
489
- </span>
490
-
491
-
492
-
493
-
494
- </code>
495
- </td>
496
- <td class="name"><code><p>更新当前选中或区草图图形的某个顶点</code></td>
497
- </tr>
498
-
499
- </tbody>
500
- </table>
501
- </div>
502
- <h4 style="margin-top: 20px;margin-bottom: 20px;">方法详情</h4>
503
-
504
- <div class="member">
505
-
506
-
507
-
508
- <h4 class="name" id="addVertex">
509
- <a class="href-link" href="#addVertex">#</a>
510
-
511
- <span class="code-name" id="addVertex" style="font-size:30px">
512
-
513
- addVertex<span class="signature">(point, index)</span>
514
-
515
- </span>
516
- </h4>
517
-
518
-
519
-
520
- <div class="description">
521
- <p>向当前线或区草图中插入新的顶点<a id='addVertex'></a></p>
522
- </div>
523
-
524
-
525
-
526
-
527
-
528
-
529
-
530
-
531
-
532
-
533
- <h4>参数</h4>
534
-
535
- <div class="table-container">
536
- <table class="params table">
537
- <thead>
538
- <tr>
539
-
540
- <th>名称</th>
541
-
542
-
543
- <th>类型</th>
544
-
545
-
546
-
547
- <th class="last">描述</th>
548
- </tr>
549
- </thead>
550
-
551
- <tbody>
552
-
553
-
554
-
555
- <tr class="deep-level-0">
556
-
557
- <td class="name"><code>point</code></td>
558
-
559
-
560
- <td class="type">
561
-
562
-
563
- <span class="param-type">
564
-
565
- Point
566
-
567
- </span>
568
-
569
-
570
-
571
-
572
- </td>
573
-
574
-
575
-
576
- <td class="description last"><p>新增/插入顶点</p></td>
577
- </tr>
578
-
579
-
580
-
581
-
582
-
583
-
584
- <tr class="deep-level-0">
585
-
586
- <td class="name"><code>index</code></td>
587
-
588
-
589
- <td class="type">
590
-
591
-
592
- <span class="param-type">
593
-
594
- Number
595
-
596
- </span>
597
-
598
-
599
-
600
-
601
- </td>
602
-
603
-
604
-
605
- <td class="description last"><p>新增/新增点的序号</p></td>
606
- </tr>
607
-
608
-
609
-
610
-
611
- </tbody>
612
- </table>
613
- </div>
614
-
615
-
616
-
617
-
618
-
619
-
620
- <dl class="details">
621
-
622
-
623
-
624
-
625
-
626
-
627
-
628
-
629
-
630
-
631
-
632
-
633
-
634
-
635
-
636
-
637
-
638
-
639
-
640
-
641
-
642
-
643
-
644
-
645
-
646
-
647
-
648
-
649
-
650
-
651
-
652
- </dl>
653
-
654
-
655
-
656
-
657
-
658
-
659
-
660
-
661
-
662
-
663
-
664
-
665
-
666
-
667
-
668
-
669
-
670
-
671
- <div class='columns method-parameter'>
672
- <div class="column is-2"><label>返回值</label></div>
673
- <div class="column is-10">
674
-
675
-
676
-
677
- <div class="columns">
678
-
679
- <div class='param-desc column is-7'><p>改变后的图形几何</p></div>
680
-
681
-
682
- <div class='column is-5 has-text-left'>
683
- <label>类型: </label>
684
-
685
- <span class="param-type">
686
-
687
- Geometry
688
-
689
- </span>
690
-
691
-
692
-
693
- </div>
694
-
695
- </div>
696
-
697
-
698
- </div>
699
- </div>
700
-
701
-
702
-
703
-
704
-
705
-
706
- </div>
707
-
708
- <div class="member">
709
-
710
-
711
-
712
- <h4 class="name" id="drawPolylineToPolygon">
713
- <a class="href-link" href="#drawPolylineToPolygon">#</a>
714
-
715
- <span class="code-name" id="drawPolylineToPolygon" style="font-size:30px">
716
-
717
- drawPolylineToPolygon<span class="signature">(snapAndReferGeometries)</span>
718
-
719
- </span>
720
- </h4>
721
-
722
-
723
-
724
- <div class="description">
725
- <p>线拓扑造区<a id='drawPolylineToPolygon'></a></p>
726
- </div>
727
-
728
-
729
-
730
-
731
-
732
-
733
-
734
-
735
-
736
-
737
- <h4>参数</h4>
738
-
739
- <div class="table-container">
740
- <table class="params table">
741
- <thead>
742
- <tr>
743
-
744
- <th>名称</th>
745
-
746
-
747
- <th>类型</th>
748
-
749
-
750
-
751
- <th class="last">描述</th>
752
- </tr>
753
- </thead>
754
-
755
- <tbody>
756
-
757
-
758
-
759
- <tr class="deep-level-0">
760
-
761
- <td class="name"><code>snapAndReferGeometries</code></td>
762
-
763
-
764
- <td class="type">
765
-
766
-
767
- <span class="param-type">
768
-
769
- Array.&lt;Polygon>
770
-
771
- </span>
772
-
773
-
774
-
775
-
776
- </td>
777
-
778
-
779
-
780
- <td class="description last"><p>捕获参考几何对象数组</p></td>
781
- </tr>
782
-
783
-
784
-
785
-
786
- </tbody>
787
- </table>
788
- </div>
789
-
790
-
791
-
792
-
793
-
794
-
795
- <dl class="details">
796
-
797
-
798
-
799
-
800
-
801
-
802
-
803
-
804
-
805
-
806
-
807
-
808
-
809
-
810
-
811
-
812
-
813
-
814
-
815
-
816
-
817
-
818
-
819
-
820
-
821
-
822
-
823
-
824
-
825
-
826
-
827
- </dl>
828
-
829
-
830
-
831
-
832
-
833
-
834
-
835
-
836
-
837
-
838
-
839
-
840
-
841
-
842
-
843
-
844
-
845
-
846
-
847
-
848
-
849
-
850
-
851
- <h5>示例</h5>
852
-
853
- <p class="code-caption"><h7>三维草图线拓扑造区</h7></p>
854
-
855
-
856
- <pre class="prettyprint"><code>// [ES5引入方式]:
857
- const { Polygon, LineString } = zondy.geometry
858
- const { SceneView} = zondy.cesium
859
- const { SketchEditor } = zondy.cesium.tool.sketch
860
- [ES6引入方式]:
861
- import { SceneView, SketchEditor } from "@mapgis/webclient-cesium-plugin" &lt;br/>
862
- import { Polygon, LineString } from "@mapgis/webclient-common" &lt;br/>
863
- var map = new Map()
864
- var sceneView = new SceneView({
865
- viewId: "mapgis-3d-viewer",
866
- map: map,
867
- })
868
- var testGeometries = [
869
- new Polygon({
870
- coordinates: [
871
- [
872
- [114.0, 29.0],
873
- [117.0, 29.0],
874
- [117.0, 35.0],
875
- [114.0, 35.0],
876
- [114.0, 29.0]
877
- ]
878
- ]
879
- }),
880
- new Polygon({
881
- coordinates: [
882
- [
883
- [113.0, 29.0],
884
- [116.0, 29.0],
885
- [116.0, 35.0],
886
- [113.0, 35.0],
887
- [113.0, 29.0]
888
- ]
889
- ]
890
- })
891
- ]
892
- testFeatures = [
893
- new Feature({
894
- id: '11114',
895
- geometry: this.testGeometries[0],
896
- symbol: new SimpleFillSymbol({
897
- color: new Color(0, 255, 255, 0.5),
898
- outline: new SimpleLineSymbol({
899
- color: new Color(0, 255, 255, 0.8),
900
- width: 2
901
- })
902
- })
903
- }),
904
- new Feature({
905
- id: '11115',
906
- geometry: this.testGeometries[1],
907
- symbol: new SimpleFillSymbol({
908
- color: new Color(0, 255, 255, 0.5),
909
- outline: new SimpleLineSymbol({
910
- color: new Color(0, 255, 255, 0.8),
911
- width: 2
912
- })
913
- })
914
- }),
915
- ]
916
- var testLayer = new GraphicsLayer({
917
- graphics: this.testFeatures
918
- })
919
- map.add(testLayer)
920
- var sketchEditor = new SketchEditor({
921
- view: sceneView,
922
- layer: new GraphicsLayer()
923
- })
924
- sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
925
-
926
-
927
-
928
- </div>
929
-
930
- <div class="member">
931
-
932
-
933
-
934
- <h4 class="name" id="removeVertex">
935
- <a class="href-link" href="#removeVertex">#</a>
936
-
937
- <span class="code-name" id="removeVertex" style="font-size:30px">
938
-
939
- removeVertex<span class="signature">(index)</span>
940
-
941
- </span>
942
- </h4>
943
-
944
-
945
-
946
- <div class="description">
947
- <p>移除草图图形的某个顶点<a id='removeVertex'></a></p>
948
- </div>
949
-
950
-
951
-
952
-
953
-
954
-
955
-
956
-
957
-
958
-
959
- <h4>参数</h4>
960
-
961
- <div class="table-container">
962
- <table class="params table">
963
- <thead>
964
- <tr>
965
-
966
- <th>名称</th>
967
-
968
-
969
- <th>类型</th>
970
-
971
-
972
-
973
- <th class="last">描述</th>
974
- </tr>
975
- </thead>
976
-
977
- <tbody>
978
-
979
-
980
-
981
- <tr class="deep-level-0">
982
-
983
- <td class="name"><code>index</code></td>
984
-
985
-
986
- <td class="type">
987
-
988
-
989
- <span class="param-type">
990
-
991
- Number
992
-
993
- </span>
994
-
995
-
996
-
997
-
998
- </td>
999
-
1000
-
1001
-
1002
- <td class="description last"><p>需更新的顶点的序号</p></td>
1003
- </tr>
1004
-
1005
-
1006
-
1007
-
1008
- </tbody>
1009
- </table>
1010
- </div>
1011
-
1012
-
1013
-
1014
-
1015
-
1016
-
1017
- <dl class="details">
1018
-
1019
-
1020
-
1021
-
1022
-
1023
-
1024
-
1025
-
1026
-
1027
-
1028
-
1029
-
1030
-
1031
-
1032
-
1033
-
1034
-
1035
-
1036
-
1037
-
1038
-
1039
-
1040
-
1041
-
1042
-
1043
-
1044
-
1045
-
1046
-
1047
-
1048
-
1049
- </dl>
1050
-
1051
-
1052
-
1053
-
1054
-
1055
-
1056
-
1057
-
1058
-
1059
-
1060
-
1061
-
1062
-
1063
-
1064
-
1065
-
1066
-
1067
-
1068
- <div class='columns method-parameter'>
1069
- <div class="column is-2"><label>返回值</label></div>
1070
- <div class="column is-10">
1071
-
1072
-
1073
-
1074
- <div class="columns">
1075
-
1076
- <div class='param-desc column is-7'><p>改变后的图形几何</p></div>
1077
-
1078
-
1079
- <div class='column is-5 has-text-left'>
1080
- <label>类型: </label>
1081
-
1082
- <span class="param-type">
1083
-
1084
- Geometry
1085
-
1086
- </span>
1087
-
1088
-
1089
-
1090
- </div>
1091
-
1092
- </div>
1093
-
1094
-
1095
- </div>
1096
- </div>
1097
-
1098
-
1099
-
1100
-
1101
-
1102
-
1103
- </div>
1104
-
1105
- <div class="member">
1106
-
1107
-
1108
-
1109
- <h4 class="name" id="split">
1110
- <a class="href-link" href="#split">#</a>
1111
-
1112
- <span class="code-name" id="split" style="font-size:30px">
1113
-
1114
- split<span class="signature">(target, splitPolyline)</span>
1115
-
1116
- </span>
1117
- </h4>
1118
-
1119
-
1120
-
1121
- <div class="description">
1122
- <p>分割草图对象或区几何对象<a id='split'></a></p>
1123
- </div>
1124
-
1125
-
1126
-
1127
-
1128
-
1129
-
1130
-
1131
-
1132
-
1133
-
1134
- <h4>参数</h4>
1135
-
1136
- <div class="table-container">
1137
- <table class="params table">
1138
- <thead>
1139
- <tr>
1140
-
1141
- <th>名称</th>
1142
-
1143
-
1144
- <th>类型</th>
1145
-
1146
-
1147
-
1148
- <th class="last">描述</th>
1149
- </tr>
1150
- </thead>
1151
-
1152
- <tbody>
1153
-
1154
-
1155
-
1156
- <tr class="deep-level-0">
1157
-
1158
- <td class="name"><code>target</code></td>
1159
-
1160
-
1161
- <td class="type">
1162
-
1163
-
1164
- <span class="param-type">
1165
-
1166
- Polygon
1167
-
1168
- </span>
1169
- |
1170
-
1171
- <span class="param-type">
1172
-
1173
- <a link="SketchEditorCesium.html" onclick="getTypeHTML(event)" href="SketchEditorCesium.html">SketchEditorCesium</a>
1174
-
1175
- </span>
1176
-
1177
-
1178
-
1179
-
1180
- </td>
1181
-
1182
-
1183
-
1184
- <td class="description last"><p>被分割的几何/草图对象</p></td>
1185
- </tr>
1186
-
1187
-
1188
-
1189
-
1190
-
1191
-
1192
- <tr class="deep-level-0">
1193
-
1194
- <td class="name"><code>splitPolyline</code></td>
1195
-
1196
-
1197
- <td class="type">
1198
-
1199
-
1200
- <span class="param-type">
1201
-
1202
- Polyline
1203
-
1204
- </span>
1205
-
1206
-
1207
-
1208
-
1209
- </td>
1210
-
1211
-
1212
-
1213
- <td class="description last"><p>线几何对象</p></td>
1214
- </tr>
1215
-
1216
-
1217
-
1218
-
1219
- </tbody>
1220
- </table>
1221
- </div>
1222
-
1223
-
1224
-
1225
-
1226
-
1227
-
1228
- <dl class="details">
1229
-
1230
-
1231
-
1232
-
1233
-
1234
-
1235
-
1236
-
1237
-
1238
-
1239
-
1240
-
1241
-
1242
-
1243
-
1244
-
1245
-
1246
-
1247
-
1248
-
1249
-
1250
-
1251
-
1252
-
1253
-
1254
-
1255
-
1256
-
1257
-
1258
-
1259
-
1260
- </dl>
1261
-
1262
-
1263
-
1264
-
1265
-
1266
-
1267
-
1268
-
1269
-
1270
-
1271
-
1272
-
1273
-
1274
-
1275
-
1276
-
1277
-
1278
-
1279
- <div class='columns method-parameter'>
1280
- <div class="column is-2"><label>返回值</label></div>
1281
- <div class="column is-10">
1282
-
1283
-
1284
-
1285
- <div class="columns">
1286
-
1287
- <div class='param-desc column is-7'><p>分割后的几何对象</p></div>
1288
-
1289
-
1290
- <div class='column is-5 has-text-left'>
1291
- <label>类型: </label>
1292
-
1293
- <span class="param-type">
1294
-
1295
- Array.&lt;Polygon>
1296
-
1297
- </span>
1298
-
1299
-
1300
-
1301
- </div>
1302
-
1303
- </div>
1304
-
1305
-
1306
- </div>
1307
- </div>
1308
-
1309
-
1310
-
1311
-
1312
-
1313
-
1314
- <h5>示例</h5>
1315
-
1316
- <p class="code-caption"><h7>三维草图几何分割</h7></p>
1317
-
1318
-
1319
- <pre class="prettyprint"><code>// [ES5引入方式]:
1320
- const { Polygon, LineString } = zondy.geometry
1321
- const { SceneView} = zondy.cesium
1322
- const { SketchEditor } = zondy.cesium.tool.sketch
1323
- [ES6引入方式]:
1324
- import { SceneView, SketchEditor } from "@mapgis/webclient-cesium-plugin" &lt;br/>
1325
- import { Polygon, LineString } from "@mapgis/webclient-common" &lt;br/>
1326
- var map = new Map()
1327
- var sceneView = new SceneView({
1328
- viewId: "mapgis-3d-viewer",
1329
- map: map,
1330
- })
1331
- var SketchEditor = new SketchEditor({
1332
- view: sceneView,
1333
- layer: new GraphicsLayer()
1334
- })
1335
- const polygon = new Polygon({
1336
- coordinates: [
1337
- [
1338
- [108, 29],
1339
- [116, 29],
1340
- [116, 33],
1341
- [108, 33],
1342
- [108, 29]
1343
- ]
1344
- ]
1345
- })
1346
- const polyline = new LineString({
1347
- coordinates: [
1348
- [100, 30],
1349
- [120, 30]
1350
- ]
1351
- })
1352
- const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
1353
-
1354
-
1355
-
1356
- </div>
1357
-
1358
- <div class="member">
1359
-
1360
-
1361
-
1362
- <h4 class="name" id="updateVertex">
1363
- <a class="href-link" href="#updateVertex">#</a>
1364
-
1365
- <span class="code-name" id="updateVertex" style="font-size:30px">
1366
-
1367
- updateVertex<span class="signature">(point, index)</span>
1368
-
1369
- </span>
1370
- </h4>
1371
-
1372
-
1373
-
1374
- <div class="description">
1375
- <p>更新当前选中或区草图图形的某个顶点<a id='updateVertex'></a></p>
1376
- </div>
1377
-
1378
-
1379
-
1380
-
1381
-
1382
-
1383
-
1384
-
1385
-
1386
-
1387
- <h4>参数</h4>
1388
-
1389
- <div class="table-container">
1390
- <table class="params table">
1391
- <thead>
1392
- <tr>
1393
-
1394
- <th>名称</th>
1395
-
1396
-
1397
- <th>类型</th>
1398
-
1399
-
1400
-
1401
- <th class="last">描述</th>
1402
- </tr>
1403
- </thead>
1404
-
1405
- <tbody>
1406
-
1407
-
1408
-
1409
- <tr class="deep-level-0">
1410
-
1411
- <td class="name"><code>point</code></td>
1412
-
1413
-
1414
- <td class="type">
1415
-
1416
-
1417
- <span class="param-type">
1418
-
1419
- Point
1420
-
1421
- </span>
1422
-
1423
-
1424
-
1425
-
1426
- </td>
1427
-
1428
-
1429
-
1430
- <td class="description last"><p>新的顶点</p></td>
1431
- </tr>
1432
-
1433
-
1434
-
1435
-
1436
-
1437
-
1438
- <tr class="deep-level-0">
1439
-
1440
- <td class="name"><code>index</code></td>
1441
-
1442
-
1443
- <td class="type">
1444
-
1445
-
1446
- <span class="param-type">
1447
-
1448
- Number
1449
-
1450
- </span>
1451
-
1452
-
1453
-
1454
-
1455
- </td>
1456
-
1457
-
1458
-
1459
- <td class="description last"><p>需更新的顶点的序号</p></td>
1460
- </tr>
1461
-
1462
-
1463
-
1464
-
1465
- </tbody>
1466
- </table>
1467
- </div>
1468
-
1469
-
1470
-
1471
-
1472
-
1473
-
1474
- <dl class="details">
1475
-
1476
-
1477
-
1478
-
1479
-
1480
-
1481
-
1482
-
1483
-
1484
-
1485
-
1486
-
1487
-
1488
-
1489
-
1490
-
1491
-
1492
-
1493
-
1494
-
1495
-
1496
-
1497
-
1498
-
1499
-
1500
-
1501
-
1502
-
1503
-
1504
-
1505
-
1506
- </dl>
1507
-
1508
-
1509
-
1510
-
1511
-
1512
-
1513
-
1514
-
1515
-
1516
-
1517
-
1518
-
1519
-
1520
-
1521
-
1522
-
1523
-
1524
-
1525
- <div class='columns method-parameter'>
1526
- <div class="column is-2"><label>返回值</label></div>
1527
- <div class="column is-10">
1528
-
1529
-
1530
-
1531
- <div class="columns">
1532
-
1533
- <div class='param-desc column is-7'><p>改变后的图形几何</p></div>
1534
-
1535
-
1536
- <div class='column is-5 has-text-left'>
1537
- <label>类型: </label>
1538
-
1539
- <span class="param-type">
1540
-
1541
- Geometry
1542
-
1543
- </span>
1544
-
1545
-
1546
-
1547
- </div>
1548
-
1549
- </div>
1550
-
1551
-
1552
- </div>
1553
- </div>
1554
-
1555
-
1556
-
1557
-
1558
-
1559
-
1560
- </div>
1561
-
1562
- </div>
1563
- </div>
1564
-
1565
-
1566
-
1567
-
1568
-
1569
- </article>
1570
-
1571
- </section>