@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.
- package/README.md +280 -482
- package/dist/esm/commonjsHelpers.js +1 -0
- package/dist/esm/s3m.js +1 -0
- package/dist/esm/webclient-cesium-plugin.js +1 -0
- package/dist/umd/webclient-cesium-plugin.min.js +1 -0
- package/{documention → documentation}/AlgorithmLib.html +169 -149
- package/{documention → documentation}/AngulationTool.html +85 -51
- package/{documention → documentation}/AnimationTool.html +30 -30
- package/{documention → documentation}/ArcGISMapServerImageryProvider.html +9 -13
- package/{documention → documentation}/ArcGISMapServerSingleImageryProvider.html +90 -30
- package/{documention → documentation}/ArcGISTileServerImageryProvider.html +17 -17
- package/{documention → documentation}/ArcGISVectorTileImageryProvider.html +21 -8
- package/{documention → documentation}/BaseImageryProvider.html +2 -2
- package/{documention → documentation}/Cesium.Material.html +2 -2
- package/{documention → documentation}/Cesium.Viewer.html +5 -5
- package/{documention → documentation}/Cesium3DTileset.html +43 -25
- package/{documention → documentation}/CesiumHeatmap.html +22 -19
- package/{documention/S3MTileset.html → documentation/CesiumNavigation.html} +52 -85
- package/{documention → documentation}/CesiumTerrainProvider.html +55 -15
- package/{documention/OpenWeatherImageryProvider.html → documentation/CircleWaveMaterialProperty.html} +75 -95
- package/{documention → documentation}/CollisionDetectionByRender.html +245 -88
- package/{documention → documentation}/CompatibleFunc.html +24 -33
- package/{documention → documentation}/CustomPrimitive.html +3 -5
- package/{documention → documentation}/CustomProjection.html +3 -3
- package/{documention → documentation}/CustomTilingScheme.html +35 -36
- package/{documention → documentation}/CutFillAnalysis.html +59 -27
- package/{documention → documentation}/CuttingTool.html +198 -103
- package/{documention → documentation}/Deferred.html +2 -2
- package/{documention → documentation}/DrawElement.html +418 -34
- package/{documention → documentation}/DrawTool.html +81 -29
- package/documentation/EditTool.html +2819 -0
- package/{documention → documentation}/FirstPersonPerspective.html +18 -10
- package/{documention → documentation}/FloodAnalysis.html +93 -23
- package/{documention → documentation}/FloodAnalysisReflection.html +18 -44
- package/documentation/FlowParticle.html +863 -0
- package/{documention → documentation}/Fluid.html +473 -74
- package/{documention → documentation}/FluidFoam.html +36 -16
- package/{documention → documentation}/FluidReflection.html +68 -15
- package/{documention → documentation}/FluidShadow.html +67 -14
- package/{documention → documentation}/FluidSourceCollection.html +14 -7
- package/{documention → documentation}/FluidSpecular.html +33 -14
- package/documentation/FluidSurfaceDistortion.html +682 -0
- package/documentation/FluidSurfaceFoam.html +1006 -0
- package/{documention → documentation}/FollowPerspective.html +15 -7
- package/{documention → documentation}/GeoJSONLayerUtil.html +38 -10
- package/documentation/GeoJSONLayerView.html +1353 -0
- package/{documention → documentation}/GlobeIndependentTranslucency.html +89 -6
- package/{documention → documentation}/GodPerspective.html +14 -6
- package/{documention → documentation}/Graphic.html +1053 -1042
- package/{documention → documentation}/GraphicTransformTool.html +65 -23
- package/{documention → documentation}/GraphicsLayer.html +359 -156
- package/{documention → documentation}/GraphicsLayerUtil.html +28 -10
- package/documentation/GraphicsLayerView.html +759 -0
- package/{documention/EditTool.html → documentation/HashMap.html} +253 -418
- package/{documention → documentation}/HeightLimited.html +54 -21
- package/documentation/IGSFeatureLayerUtil.html +840 -0
- package/documentation/IGSFeatureLayerView.html +1348 -0
- package/documentation/IGSMapImageLayerUtil.html +855 -0
- package/{documention/IGSFeatureLayerUtil.html → documentation/IGSMapImageLayerView.html} +68 -46
- package/documentation/IGSTileLayerView.html +658 -0
- package/{documention → documentation}/ISSceneLayerUtil.html +3 -3
- package/{documention → documentation}/KeyboardCameraController.html +54 -6
- package/documentation/LightningStorm.html +2073 -0
- package/documentation/MapGISClusterPrimitiveCollection.html +1050 -0
- package/{documention → documentation}/MapGISDynamicLabelCollection.html +370 -178
- package/{documention → documentation}/MapGISFeatureGridCollection.html +123 -89
- package/{documention → documentation}/MapGISImageServerImageryProvider.html +93 -71
- package/{documention → documentation}/MapGISImageServerSingleImageryProvider.html +140 -92
- package/{documention → documentation}/MapGISM3DSet.html +49 -33
- package/{documention → documentation}/MapGISMapServerImageryProvider.html +78 -87
- package/{documention → documentation}/MapGISMapServerSingleImageryProvider.html +111 -43
- package/{documention → documentation}/MapGISTerrainProvider.html +268 -208
- package/{documention → documentation}/MapGISTerrainService.html +124 -82
- package/{documention → documentation}/MapGISTileAvailability.html +104 -47
- package/{documention → documentation}/MapGISTileServerImageryProvider.html +76 -83
- package/{documention → documentation}/MapGISVectorTileImageryProvider.html +135 -115
- package/{documention → documentation}/MeasureAreaTool.html +53 -14
- package/{documention → documentation}/MeasureLengthTool.html +17 -14
- package/{documention → documentation}/MeasureSlopeTool.html +73 -34
- package/{documention/FlowParticle.html → documentation/ModelEditor.html} +132 -116
- package/{documention → documentation}/ModelFilterTool.html +27 -32
- package/{documention → documentation}/ModelTransformTool.html +195 -110
- package/{documention → documentation}/NavigationControl.html +25 -5
- package/{documention → documentation}/NavigationTool.html +36 -14
- package/{documention → documentation}/NormalPerspective.html +33 -7
- package/documentation/OpenWeatherImageryProvider.html +1133 -0
- package/{documention → documentation}/PointFluidSource.html +22 -13
- package/{documention → documentation}/PolylineTrailLinkMaterialProperty.html +104 -20
- package/{documention → documentation}/Popup.html +246 -63
- package/{documention/CesiumNavigation.html → documentation/PostProcessShaderBuilder.html} +10 -54
- package/{documention → documentation}/PostProcessStageLibrary.html +3127 -121
- package/{documention → documentation}/Promise.html +6 -6
- package/{documention → documentation}/ProviderBaseUrlRegExp.html +20 -4
- package/{documention → documentation}/Puddle.html +30 -9
- package/{documention → documentation}/RadarMaterialProperty.html +73 -18
- package/{documention → documentation}/ReImg.html +164 -15
- package/{documention → documentation}/RenderUtil.html +158 -6
- package/{documention → documentation}/ResetViewNavigationControl.html +28 -8
- package/{documention → documentation}/RiverGeometry.html +7 -7
- package/{documention → documentation}/RoamParticle.html +86 -79
- package/{documention → documentation}/RouteAnimationControl.html +37 -15
- package/{documention → documentation}/RouteAnimationLabel.html +39 -12
- package/{documention → documentation}/RouteAnimationModel.html +43 -16
- package/{documention → documentation}/RouteAnimationPath.html +156 -18
- package/{documention → documentation}/RouteAnimationPerspective.html +12 -3
- package/{documention → documentation}/RouteAnimationTool.html +244 -24
- package/documentation/S3MTileset.html +570 -0
- package/{documention → documentation}/SSR.html +20 -39
- package/{documention → documentation}/SceneView.html +615 -419
- package/documentation/SceneViewUtil.html +1253 -0
- package/documentation/Screenshot.html +964 -0
- package/{documention → documentation}/SelectTool.html +31 -77
- package/{documention → documentation}/ShadowRateAnalysis.html +236 -54
- package/{documention → documentation}/ShadowRateDrawCommand.html +18 -6
- package/{documention → documentation}/SingleImageryProvider.html +32 -10
- package/{documention → documentation}/SketchEditor.html +280 -127
- package/documentation/SkyLineAnalysis.html +576 -0
- package/{documention → documentation}/StableParticle.html +165 -46
- package/{documention → documentation}/Style.html +249 -249
- package/{documention → documentation}/TerrainAnalyse.html +391 -105
- package/{documention → documentation}/TerrainExcavateTool.html +99 -3
- package/{documention → documentation}/TerrainProfile.html +198 -56
- package/{documention → documentation}/ThemeManager.html +93 -42
- package/{documention → documentation}/Tooltip.html +35 -18
- package/documentation/TransformTool.html +1010 -0
- package/{documention → documentation}/TriangulationTool.html +122 -83
- package/documentation/UnderfluidCaustic.html +843 -0
- package/documentation/UnderfluidDistortion.html +600 -0
- package/documentation/UnderfluidFog.html +843 -0
- package/documentation/UnderfluidGodRay.html +843 -0
- package/documentation/UnderwaterCaustic.html +867 -0
- package/documentation/UnderwaterDistortion.html +578 -0
- package/documentation/UnderwaterFog.html +867 -0
- package/documentation/UnderwaterGodRay.html +821 -0
- package/{documention → documentation}/UrlTemplateImageryProvider.html +21 -9
- package/{documention → documentation}/UserInterfaceControl.html +28 -9
- package/documentation/VectorTileLayerUtil.html +1364 -0
- package/{documention → documentation}/VisiblityAnalysis.html +15 -12
- package/{documention → documentation}/VolumeCloud.html +113 -21
- package/{documention → documentation}/VolumeFluidSource.html +24 -8
- package/{documention → documentation}/WFSLayerUtil.html +39 -10
- package/documentation/WFSLayerView.html +1353 -0
- package/documentation/WMSLayerUtil.html +879 -0
- package/documentation/WMTSLayerUtil.html +877 -0
- package/documentation/WaterDepth.html +583 -0
- package/{documention → documentation}/WaterReflection.html +29 -26
- package/documentation/WaterSurface.html +2555 -0
- package/{documention/Underwater.html → documentation/WaterSurfaceDistortion.html} +79 -81
- package/documentation/WaterSurfaceFoam.html +1029 -0
- package/documentation/WaterSurfaceSSR.html +867 -0
- package/{documention → documentation}/WebMapServiceImageryProvider.html +8 -12
- package/{documention → documentation}/WebMapServiceSingleImageryProvider.html +94 -32
- package/{documention → documentation}/WebMapTileServiceImageryProvider.html +10 -15
- package/documentation/WebTileLayerUtil.html +877 -0
- package/{documention → documentation}/Wind3D.html +133 -54
- package/{documention → documentation}/ZoomNavigationControl.html +145 -9
- package/documentation/fonts/glyphicons-halflings-regular.svg +543 -0
- package/{documention → documentation}/global.html +14130 -2719
- package/{documention → documentation}/index.html +1 -1
- package/{documention → documentation}/initializeOptions.html +2 -2
- 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
- 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
- package/{documention → documentation}/module.exports_module.exports.html +2 -2
- package/{documention → documentation}/nav.html +3267 -1392
- package/documentation/nav.json +320 -0
- package/documentation/styles/adminlte/AdminLTE.min.css +4966 -0
- package/documentation/styles/adminlte/skin-blue.min.css +135 -0
- package/documentation/styles/bootstrap.min.css +7005 -0
- package/documentation/styles/common.css +173 -0
- package/documentation/styles/examples.css +119 -0
- package/{documention → documentation}/styles/font-awesome.css +692 -687
- package/documentation/styles/header.css +558 -0
- package/documentation/styles/jaguar.css +551 -0
- package/{documention → documentation}/styles/prettify-tomorrow.css +59 -28
- package/{documention → documentation}/styles/style.customize.css +83 -99
- package/package.json +42 -22
- package/dist/es5/webclient-cesium-plugin.min.js +0 -77
- package/dist/es5/webclient-common.min.js +0 -159
- package/dist/webclient-cesium-plugin-es6.min.js +0 -77
- package/documention/CircleWaveMaterialProperty.html +0 -382
- package/documention/DynamicEntityVisualizer.html +0 -348
- package/documention/DynamicLabelLayer.html +0 -1841
- package/documention/GroundPrimitiveLayer.html +0 -1675
- package/documention/HashMap.html +0 -4197
- package/documention/ModelEditor.html +0 -374
- package/documention/SceneViewCesium.html +0 -5544
- package/documention/Screenshot.html +0 -773
- package/documention/SketchEditorCesium.html +0 -1571
- package/documention/createColorTexture.html +0 -369
- package/documention/fonts/glyphicons-halflings-regular.svg +0 -288
- package/documention/isCounterClockwise.html +0 -760
- package/documention/scripts/app.min.js +0 -1
- package/documention/scripts/jquery.min.map +0 -1
- package/documention/scripts/search.js +0 -20
- package/documention/scripts/sideBar.js +0 -228
- package/documention/scripts/underscore-min.map +0 -1
- package/documention/styles/adminlte/AdminLTE.min.css +0 -7
- package/documention/styles/adminlte/skin-blue.min.css +0 -1
- package/documention/styles/anchor.png +0 -0
- package/documention/styles/app.min.css +0 -1
- package/documention/styles/bootstrap.min.css +0 -6
- package/documention/styles/c.png +0 -0
- package/documention/styles/common.css +0 -175
- package/documention/styles/examples.css +0 -116
- package/documention/styles/header.css +0 -556
- package/documention/styles/iframe.css +0 -29
- package/documention/styles/jaguar.css +0 -553
- package/documention/styles/m.png +0 -0
- package/documention/styles/reset.css +0 -44
- package/documention/styles/up-arrow.png +0 -0
- package/documention/tutorial-1./345/277/253/351/200/237/345/205/245/351/227/250.html +0 -162
- /package/{documention → documentation}/fonts/fontawesome-webfont.woff2 +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.eot +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.ttf +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff +0 -0
- /package/{documention → documentation}/fonts/glyphicons-halflings-regular.woff2 +0 -0
- /package/{documention → documentation}/scripts/adminlte/app.min.js +0 -0
- /package/{documention → documentation}/scripts/bootstrap.min.js +0 -0
- /package/{documention → documentation}/scripts/jquery.min.js +0 -0
- /package/{documention → documentation}/scripts/linenumber.js +0 -0
- /package/{documention → documentation}/scripts/main.js +0 -0
- /package/{documention → documentation}/scripts/prettify/Apache-License-2.0.txt +0 -0
- /package/{documention → documentation}/scripts/prettify/lang-css.js +0 -0
- /package/{documention → documentation}/scripts/prettify/prettify.js +0 -0
- /package/{documention → documentation}/scripts/underscore-min.js +0 -0
- /package/{documention → documentation}/styles/adminlte/font-awesome.min.css +0 -0
- /package/{documention → documentation}/styles/prettify-jsdoc.css +0 -0
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
<div class="nameContainer">
|
|
84
84
|
<h4 class="name" id="SketchEditor">
|
|
85
85
|
|
|
86
|
-
new SketchEditor<span class="signature">(options)</span>
|
|
86
|
+
new SketchEditor<span class="signature">(<span class="optional">options</span>)</span>
|
|
87
87
|
</h4>
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
<div class="tag-source">
|
|
91
|
-
sketchEditor/SketchEditor.js, line
|
|
91
|
+
sketchEditor/SketchEditor.js, line 34
|
|
92
92
|
</div>
|
|
93
93
|
|
|
94
94
|
</div>
|
|
@@ -99,12 +99,8 @@
|
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
<div class="description">
|
|
102
|
-
<p>Cesium
|
|
103
|
-
|
|
104
|
-
<br>[ES5引入方式]:<br/>
|
|
105
|
-
const { SketchEditor } = zondy.tool.sketch <br/>
|
|
106
|
-
[ES6引入方式]:<br/>
|
|
107
|
-
import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/></p>
|
|
102
|
+
<p>Cesium 引擎草图编辑类,用于在三维场景中创建、选中、编辑、分割和转换草图几何。
|
|
103
|
+
继承自 <a href='http://10.10.130.72:8086/static/modules/common/api/common-mapgis/SketchEditor3D.html' target='_blank'>zondy.SketchEditor3D</a>。</p>
|
|
108
104
|
</div>
|
|
109
105
|
|
|
110
106
|
|
|
@@ -125,6 +121,8 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
125
121
|
<th>Type</th>
|
|
126
122
|
|
|
127
123
|
|
|
124
|
+
<th>Default</th>
|
|
125
|
+
|
|
128
126
|
|
|
129
127
|
<th class="last">Description</th>
|
|
130
128
|
</tr>
|
|
@@ -148,10 +146,23 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
148
146
|
</td>
|
|
149
147
|
|
|
150
148
|
|
|
149
|
+
<td class="default">
|
|
150
|
+
|
|
151
|
+
{}
|
|
152
|
+
|
|
153
|
+
</td>
|
|
154
|
+
|
|
151
155
|
|
|
152
156
|
<td class="description last">
|
|
153
157
|
|
|
154
|
-
|
|
158
|
+
|
|
159
|
+
<span class="optional"> 可选</span>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
<p>构造参数。</p>
|
|
155
166
|
|
|
156
167
|
|
|
157
168
|
<table class="params">
|
|
@@ -182,7 +193,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
182
193
|
<td class="type">
|
|
183
194
|
|
|
184
195
|
|
|
185
|
-
<span class="param-type"
|
|
196
|
+
<span class="param-type">MapView</span>
|
|
186
197
|
|
|
|
187
198
|
|
|
188
199
|
<span class="param-type"><a href="SceneView.html">SceneView</a></span>
|
|
@@ -206,7 +217,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
206
217
|
|
|
207
218
|
|
|
208
219
|
|
|
209
|
-
<p
|
|
220
|
+
<p>Cesium 三维场景视图对象。</p></td>
|
|
210
221
|
</tr>
|
|
211
222
|
|
|
212
223
|
|
|
@@ -240,7 +251,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
240
251
|
|
|
241
252
|
|
|
242
253
|
|
|
243
|
-
<p
|
|
254
|
+
<p>草图图层对象,用于承载绘制完成的草图要素。</p></td>
|
|
244
255
|
</tr>
|
|
245
256
|
|
|
246
257
|
|
|
@@ -274,7 +285,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
274
285
|
|
|
275
286
|
|
|
276
287
|
|
|
277
|
-
<p
|
|
288
|
+
<p>草图符号样式。</p></td>
|
|
278
289
|
</tr>
|
|
279
290
|
|
|
280
291
|
|
|
@@ -308,7 +319,43 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
308
319
|
|
|
309
320
|
|
|
310
321
|
|
|
311
|
-
<p
|
|
322
|
+
<p>草图捕获配置项。</p></td>
|
|
323
|
+
</tr>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
<tr>
|
|
328
|
+
|
|
329
|
+
<td class="name"><code>snapAndReferFeatures</code></td>
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
<td class="type">
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
<span class="param-type">Array.<Feature></span>
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
</td>
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
<td class="default">
|
|
343
|
+
|
|
344
|
+
[]
|
|
345
|
+
|
|
346
|
+
</td>
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
<td class="description last">
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
<span class="optional"> 可选</span>
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
<p>捕获和线造区边界参考要素集合。</p></td>
|
|
312
359
|
</tr>
|
|
313
360
|
|
|
314
361
|
|
|
@@ -344,15 +391,14 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
344
391
|
|
|
345
392
|
|
|
346
393
|
|
|
347
|
-
<p
|
|
394
|
+
<p>草图图形弧线类型。绘制线、区、矩形时生效;贴地和贴场景模式下 <code>ArcType.none</code> 会按大地线处理。
|
|
348
395
|
可选类型为:<br>
|
|
349
396
|
1、ArcType.none:不考虑弧度<br>
|
|
350
397
|
2、ArcType.geodesic:大地线(或称为大圆线)<br>
|
|
351
398
|
3、ArcType.rhumb:等角航线<br>
|
|
352
399
|
目前绘制线、区、矩形时,该属性生效<br>
|
|
353
400
|
请注意当绘制几何的高程模式设置为OnTheGround(贴地)和OnTheScene(贴场景)时,arcType支持设置为ArcType.geodesic和ArcType.rhumb,
|
|
354
|
-
当设置为ArcType.none时,内部会将该属性设置为ArcType.geodesic
|
|
355
|
-
*</p></td>
|
|
401
|
+
当设置为ArcType.none时,内部会将该属性设置为ArcType.geodesic</p></td>
|
|
356
402
|
</tr>
|
|
357
403
|
|
|
358
404
|
|
|
@@ -393,13 +439,6 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
393
439
|
|
|
394
440
|
|
|
395
441
|
|
|
396
|
-
<h5>Fires</h5>
|
|
397
|
-
<ul>
|
|
398
|
-
<li>SketchEditor#event:草图绘制完成事件</li>
|
|
399
|
-
|
|
400
|
-
<li>SketchEditor#event:草图被选中事件</li>
|
|
401
|
-
</ul>
|
|
402
|
-
|
|
403
442
|
|
|
404
443
|
|
|
405
444
|
|
|
@@ -410,6 +449,25 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
410
449
|
|
|
411
450
|
|
|
412
451
|
|
|
452
|
+
<h5>Example</h5>
|
|
453
|
+
|
|
454
|
+
<p class="code-caption">创建 Cesium 草图编辑器</p>
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
<pre class="prettyprint"><code>// ES5 引入方式
|
|
459
|
+
const { SketchEditor } = zondy.cesium.tool.sketch
|
|
460
|
+
|
|
461
|
+
// ES6 引入方式
|
|
462
|
+
import { SketchEditor, SceneView } from '@mapgis/webclient-cesium-plugin'
|
|
463
|
+
|
|
464
|
+
const sketchEditor = new SketchEditor({
|
|
465
|
+
view: sceneView,
|
|
466
|
+
layer: graphicsLayer
|
|
467
|
+
})</code></pre>
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
413
471
|
</dd>
|
|
414
472
|
|
|
415
473
|
|
|
@@ -506,7 +564,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
506
564
|
|
|
507
565
|
|
|
508
566
|
<div class="tag-source">
|
|
509
|
-
sketchEditor/SketchEditor.js, line
|
|
567
|
+
sketchEditor/SketchEditor.js, line 81
|
|
510
568
|
</div>
|
|
511
569
|
|
|
512
570
|
</div>
|
|
@@ -517,7 +575,8 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
517
575
|
|
|
518
576
|
|
|
519
577
|
<div class="description">
|
|
520
|
-
<p
|
|
578
|
+
<p>向当前线或区草图中插入新的顶点。</p>
|
|
579
|
+
<p>在 Cesium 三维场景中,如果编辑器提供当前绘制高度,会先将该高度写入新增点的 Z 坐标。</p>
|
|
521
580
|
</div>
|
|
522
581
|
|
|
523
582
|
|
|
@@ -564,7 +623,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
564
623
|
|
|
565
624
|
<td class="description last">
|
|
566
625
|
|
|
567
|
-
<p
|
|
626
|
+
<p>新增或插入的顶点。</p></td>
|
|
568
627
|
</tr>
|
|
569
628
|
|
|
570
629
|
|
|
@@ -587,7 +646,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
587
646
|
|
|
588
647
|
<td class="description last">
|
|
589
648
|
|
|
590
|
-
<p
|
|
649
|
+
<p>新增顶点的索引值,索引值从 0 开始。</p></td>
|
|
591
650
|
</tr>
|
|
592
651
|
|
|
593
652
|
|
|
@@ -652,7 +711,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
652
711
|
|
|
653
712
|
|
|
654
713
|
</td>
|
|
655
|
-
<td class="description last"
|
|
714
|
+
<td class="description last">更新后的草图几何。</td>
|
|
656
715
|
</tr>
|
|
657
716
|
|
|
658
717
|
</tbody>
|
|
@@ -674,7 +733,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
674
733
|
|
|
675
734
|
|
|
676
735
|
<div class="tag-source">
|
|
677
|
-
sketchEditor/SketchEditor.js, line
|
|
736
|
+
sketchEditor/SketchEditor.js, line 164
|
|
678
737
|
</div>
|
|
679
738
|
|
|
680
739
|
</div>
|
|
@@ -685,7 +744,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
685
744
|
|
|
686
745
|
|
|
687
746
|
<div class="description">
|
|
688
|
-
<p
|
|
747
|
+
<p>启动线拓扑造区流程。</p>
|
|
689
748
|
</div>
|
|
690
749
|
|
|
691
750
|
|
|
@@ -732,7 +791,7 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
732
791
|
|
|
733
792
|
<td class="description last">
|
|
734
793
|
|
|
735
|
-
<p
|
|
794
|
+
<p>捕获参考几何对象数组。</p></td>
|
|
736
795
|
</tr>
|
|
737
796
|
|
|
738
797
|
|
|
@@ -783,71 +842,29 @@ import { SketchEditor } from "@mapgis/webclient-leaflet-plugin" <br/><
|
|
|
783
842
|
|
|
784
843
|
|
|
785
844
|
|
|
786
|
-
<pre class="prettyprint"><code>//
|
|
787
|
-
const { Polygon
|
|
788
|
-
const { SceneView} = zondy.cesium
|
|
845
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
846
|
+
const { Polygon } = zondy.geometry
|
|
847
|
+
const { SceneView } = zondy.cesium
|
|
789
848
|
const { SketchEditor } = zondy.cesium.tool.sketch
|
|
849
|
+
|
|
790
850
|
[ES6引入方式]:
|
|
791
|
-
import { SceneView, SketchEditor } from
|
|
792
|
-
import { Polygon
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
851
|
+
import { SceneView, SketchEditor } from '@mapgis/webclient-cesium-plugin'
|
|
852
|
+
import { Polygon } from '@mapgis/webclient-common'
|
|
853
|
+
|
|
854
|
+
const map = new Map()
|
|
855
|
+
const sceneView = new SceneView({
|
|
856
|
+
viewId: 'mapgis-3d-viewer',
|
|
857
|
+
map
|
|
797
858
|
})
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
[
|
|
802
|
-
[114.0, 29.0],
|
|
803
|
-
[117.0, 29.0],
|
|
804
|
-
[117.0, 35.0],
|
|
805
|
-
[114.0, 35.0],
|
|
806
|
-
[114.0, 29.0]
|
|
807
|
-
]
|
|
808
|
-
]
|
|
809
|
-
}),
|
|
810
|
-
new Polygon({
|
|
811
|
-
coordinates: [
|
|
812
|
-
[
|
|
813
|
-
[113.0, 29.0],
|
|
814
|
-
[116.0, 29.0],
|
|
815
|
-
[116.0, 35.0],
|
|
816
|
-
[113.0, 35.0],
|
|
817
|
-
[113.0, 29.0]
|
|
818
|
-
]
|
|
819
|
-
]
|
|
820
|
-
})
|
|
821
|
-
]
|
|
822
|
-
testFeatures = [
|
|
823
|
-
new Feature({
|
|
824
|
-
id: '11114',
|
|
825
|
-
geometry: this.testGeometries[0],
|
|
826
|
-
symbol: new SimpleFillSymbol({
|
|
827
|
-
color: new Color(0, 255, 255, 0.5),
|
|
828
|
-
outline: new SimpleLineSymbol({
|
|
829
|
-
color: new Color(0, 255, 255, 0.8),
|
|
830
|
-
width: 2
|
|
831
|
-
})
|
|
832
|
-
})
|
|
833
|
-
}),
|
|
834
|
-
new Feature({
|
|
835
|
-
id: '11115',
|
|
836
|
-
geometry: this.testGeometries[1],
|
|
837
|
-
symbol: new SimpleFillSymbol({
|
|
838
|
-
color: new Color(0, 255, 255, 0.5),
|
|
839
|
-
outline: new SimpleLineSymbol({
|
|
840
|
-
color: new Color(0, 255, 255, 0.8),
|
|
841
|
-
width: 2
|
|
842
|
-
})
|
|
843
|
-
})
|
|
859
|
+
const testGeometries = [
|
|
860
|
+
new Polygon({
|
|
861
|
+
coordinates: [[[114.0, 29.0], [117.0, 29.0], [117.0, 35.0], [114.0, 35.0], [114.0, 29.0]]]
|
|
844
862
|
}),
|
|
863
|
+
new Polygon({
|
|
864
|
+
coordinates: [[[113.0, 29.0], [116.0, 29.0], [116.0, 35.0], [113.0, 35.0], [113.0, 29.0]]]
|
|
865
|
+
})
|
|
845
866
|
]
|
|
846
|
-
|
|
847
|
-
graphics: this.testFeatures
|
|
848
|
-
})
|
|
849
|
-
map.add(testLayer)
|
|
850
|
-
var sketchEditor = new SketchEditor({
|
|
867
|
+
const sketchEditor = new SketchEditor({
|
|
851
868
|
view: sceneView,
|
|
852
869
|
layer: new GraphicsLayer()
|
|
853
870
|
})
|
|
@@ -868,7 +885,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
868
885
|
|
|
869
886
|
|
|
870
887
|
<div class="tag-source">
|
|
871
|
-
sketchEditor/SketchEditor.js, line
|
|
888
|
+
sketchEditor/SketchEditor.js, line 117
|
|
872
889
|
</div>
|
|
873
890
|
|
|
874
891
|
</div>
|
|
@@ -879,7 +896,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
879
896
|
|
|
880
897
|
|
|
881
898
|
<div class="description">
|
|
882
|
-
<p
|
|
899
|
+
<p>移除当前草图图形的指定顶点。</p>
|
|
883
900
|
</div>
|
|
884
901
|
|
|
885
902
|
|
|
@@ -926,7 +943,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
926
943
|
|
|
927
944
|
<td class="description last">
|
|
928
945
|
|
|
929
|
-
<p
|
|
946
|
+
<p>需要移除的顶点索引值,索引值从 0 开始。</p></td>
|
|
930
947
|
</tr>
|
|
931
948
|
|
|
932
949
|
|
|
@@ -991,7 +1008,152 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
991
1008
|
|
|
992
1009
|
|
|
993
1010
|
</td>
|
|
994
|
-
<td class="description last"
|
|
1011
|
+
<td class="description last">更新后的草图几何。</td>
|
|
1012
|
+
</tr>
|
|
1013
|
+
|
|
1014
|
+
</tbody>
|
|
1015
|
+
</table>
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
|
|
1020
|
+
</dd>
|
|
1021
|
+
|
|
1022
|
+
|
|
1023
|
+
|
|
1024
|
+
<dt>
|
|
1025
|
+
<div class="nameContainer">
|
|
1026
|
+
<h4 class="name" id="setSnapAndReferFeatures">
|
|
1027
|
+
|
|
1028
|
+
setSnapAndReferFeatures<span class="signature">(features)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
1029
|
+
</h4>
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
<div class="tag-source">
|
|
1033
|
+
sketchEditor/SketchEditor.js, line 202
|
|
1034
|
+
</div>
|
|
1035
|
+
|
|
1036
|
+
</div>
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
</dt>
|
|
1040
|
+
<dd>
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
<div class="description">
|
|
1044
|
+
<p>设置捕获和线造区边界参考几何要素集合。</p>
|
|
1045
|
+
</div>
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
|
|
1053
|
+
|
|
1054
|
+
|
|
1055
|
+
<table class="params">
|
|
1056
|
+
<thead>
|
|
1057
|
+
<tr>
|
|
1058
|
+
|
|
1059
|
+
<th>Name</th>
|
|
1060
|
+
|
|
1061
|
+
|
|
1062
|
+
<th>Type</th>
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
<th class="last">Description</th>
|
|
1067
|
+
</tr>
|
|
1068
|
+
</thead>
|
|
1069
|
+
|
|
1070
|
+
<tbody>
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
<tr>
|
|
1074
|
+
|
|
1075
|
+
<td class="name"><code>features</code></td>
|
|
1076
|
+
|
|
1077
|
+
|
|
1078
|
+
<td class="type">
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
<span class="param-type">Array.<Feature></span>
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
|
|
1085
|
+
</td>
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
<td class="description last">
|
|
1090
|
+
|
|
1091
|
+
<p>参考要素集合。传入非数组时不会更新当前配置。</p></td>
|
|
1092
|
+
</tr>
|
|
1093
|
+
|
|
1094
|
+
|
|
1095
|
+
</tbody>
|
|
1096
|
+
</table>
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
<dl class="details">
|
|
1101
|
+
|
|
1102
|
+
|
|
1103
|
+
|
|
1104
|
+
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
|
|
1113
|
+
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
|
|
1122
|
+
</dl>
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
|
|
1128
|
+
|
|
1129
|
+
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
<h5>Returns:</h5>
|
|
1135
|
+
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
<table class="params">
|
|
1139
|
+
<thead>
|
|
1140
|
+
<tr>
|
|
1141
|
+
|
|
1142
|
+
<th>Type</th>
|
|
1143
|
+
<th class="last">Description</th>
|
|
1144
|
+
</tr>
|
|
1145
|
+
</thead>
|
|
1146
|
+
<tbody>
|
|
1147
|
+
|
|
1148
|
+
<tr>
|
|
1149
|
+
|
|
1150
|
+
<td class="type">
|
|
1151
|
+
|
|
1152
|
+
void
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
</td>
|
|
1156
|
+
<td class="description last"></td>
|
|
995
1157
|
</tr>
|
|
996
1158
|
|
|
997
1159
|
</tbody>
|
|
@@ -1013,7 +1175,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1013
1175
|
|
|
1014
1176
|
|
|
1015
1177
|
<div class="tag-source">
|
|
1016
|
-
sketchEditor/SketchEditor.js, line
|
|
1178
|
+
sketchEditor/SketchEditor.js, line 160
|
|
1017
1179
|
</div>
|
|
1018
1180
|
|
|
1019
1181
|
</div>
|
|
@@ -1024,7 +1186,7 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1024
1186
|
|
|
1025
1187
|
|
|
1026
1188
|
<div class="description">
|
|
1027
|
-
<p
|
|
1189
|
+
<p>分割草图对象或区几何对象。</p>
|
|
1028
1190
|
</div>
|
|
1029
1191
|
|
|
1030
1192
|
|
|
@@ -1177,40 +1339,30 @@ sketchEditor.drawPolylineToPolygon(testGeometries)</code></pre>
|
|
|
1177
1339
|
|
|
1178
1340
|
|
|
1179
1341
|
|
|
1180
|
-
<pre class="prettyprint"><code>//
|
|
1342
|
+
<pre class="prettyprint"><code>// ES5引入方式
|
|
1181
1343
|
const { Polygon, LineString } = zondy.geometry
|
|
1182
|
-
const { SceneView} = zondy.cesium
|
|
1344
|
+
const { SceneView } = zondy.cesium
|
|
1183
1345
|
const { SketchEditor } = zondy.cesium.tool.sketch
|
|
1184
1346
|
[ES6引入方式]:
|
|
1185
|
-
import { SceneView, SketchEditor } from
|
|
1186
|
-
import { Polygon, LineString } from
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1347
|
+
import { SceneView, SketchEditor } from '@mapgis/webclient-cesium-plugin'
|
|
1348
|
+
import { Polygon, LineString } from '@mapgis/webclient-common'
|
|
1349
|
+
|
|
1350
|
+
const map = new Map()
|
|
1351
|
+
const sceneView = new SceneView({
|
|
1352
|
+
viewId: 'mapgis-3d-viewer',
|
|
1353
|
+
map
|
|
1191
1354
|
})
|
|
1192
|
-
|
|
1355
|
+
const sketchEditor = new SketchEditor({
|
|
1193
1356
|
view: sceneView,
|
|
1194
1357
|
layer: new GraphicsLayer()
|
|
1195
1358
|
})
|
|
1196
1359
|
const polygon = new Polygon({
|
|
1197
|
-
coordinates: [
|
|
1198
|
-
[
|
|
1199
|
-
[108, 29],
|
|
1200
|
-
[116, 29],
|
|
1201
|
-
[116, 33],
|
|
1202
|
-
[108, 33],
|
|
1203
|
-
[108, 29]
|
|
1204
|
-
]
|
|
1205
|
-
]
|
|
1360
|
+
coordinates: [[[108, 29], [116, 29], [116, 33], [108, 33], [108, 29]]]
|
|
1206
1361
|
})
|
|
1207
1362
|
const polyline = new LineString({
|
|
1208
|
-
coordinates: [
|
|
1209
|
-
[100, 30],
|
|
1210
|
-
[120, 30]
|
|
1211
|
-
]
|
|
1363
|
+
coordinates: [[100, 30], [120, 30]]
|
|
1212
1364
|
})
|
|
1213
|
-
const
|
|
1365
|
+
const polygons = sketchEditor.split(polygon, polyline)</code></pre>
|
|
1214
1366
|
|
|
1215
1367
|
|
|
1216
1368
|
|
|
@@ -1227,7 +1379,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
1227
1379
|
|
|
1228
1380
|
|
|
1229
1381
|
<div class="tag-source">
|
|
1230
|
-
sketchEditor/SketchEditor.js, line
|
|
1382
|
+
sketchEditor/SketchEditor.js, line 99
|
|
1231
1383
|
</div>
|
|
1232
1384
|
|
|
1233
1385
|
</div>
|
|
@@ -1238,7 +1390,8 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
1238
1390
|
|
|
1239
1391
|
|
|
1240
1392
|
<div class="description">
|
|
1241
|
-
<p
|
|
1393
|
+
<p>更新当前线或区草图的指定顶点。</p>
|
|
1394
|
+
<p>在 Cesium 三维场景中,如果编辑器提供当前绘制高度,会先将该高度写入新顶点的 Z 坐标。</p>
|
|
1242
1395
|
</div>
|
|
1243
1396
|
|
|
1244
1397
|
|
|
@@ -1285,7 +1438,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
1285
1438
|
|
|
1286
1439
|
<td class="description last">
|
|
1287
1440
|
|
|
1288
|
-
<p
|
|
1441
|
+
<p>新的顶点。</p></td>
|
|
1289
1442
|
</tr>
|
|
1290
1443
|
|
|
1291
1444
|
|
|
@@ -1308,7 +1461,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
1308
1461
|
|
|
1309
1462
|
<td class="description last">
|
|
1310
1463
|
|
|
1311
|
-
<p
|
|
1464
|
+
<p>需要更新的顶点索引值,索引值从 0 开始。</p></td>
|
|
1312
1465
|
</tr>
|
|
1313
1466
|
|
|
1314
1467
|
|
|
@@ -1373,7 +1526,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
1373
1526
|
|
|
1374
1527
|
|
|
1375
1528
|
</td>
|
|
1376
|
-
<td class="description last"
|
|
1529
|
+
<td class="description last">更新后的草图几何。</td>
|
|
1377
1530
|
</tr>
|
|
1378
1531
|
|
|
1379
1532
|
</tbody>
|
|
@@ -1398,7 +1551,7 @@ const newSketchEditors = SketchEditor.split(polygon,polyline)</code></pre>
|
|
|
1398
1551
|
|
|
1399
1552
|
|
|
1400
1553
|
<footer>
|
|
1401
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri
|
|
1554
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:30 GMT+0800 (中国标准时间)
|
|
1402
1555
|
</footer>
|
|
1403
1556
|
</div>
|
|
1404
1557
|
</div>
|