@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
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
<div class="tag-source">
|
|
93
|
-
engineExtensions/tools/TerrainExcavateTool.js, line
|
|
93
|
+
engineExtensions/tools/TerrainExcavateTool.js, line 32
|
|
94
94
|
</div>
|
|
95
95
|
|
|
96
96
|
</div>
|
|
@@ -605,6 +605,54 @@ terrainPlan.updateData(positions);</code></pre>
|
|
|
605
605
|
|
|
606
606
|
|
|
607
607
|
|
|
608
|
+
|
|
609
|
+
</dl>
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
</dd>
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
<dt>
|
|
618
|
+
<div class="nameContainer">
|
|
619
|
+
<h4 class="name" id="enableExtraction">enableExtraction<span class="type-signature type boolean">Boolean</span> </h4>
|
|
620
|
+
</div>
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
</dt>
|
|
624
|
+
<dd>
|
|
625
|
+
|
|
626
|
+
<div class="description">
|
|
627
|
+
<p>是否启用地形开挖抽出功能</p>
|
|
628
|
+
</div>
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
<dl class="details">
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
|
|
648
|
+
<dt class="tag-default">Default Value:</dt>
|
|
649
|
+
false</li></ul></dd>
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
|
|
608
656
|
|
|
609
657
|
</dl>
|
|
610
658
|
|
|
@@ -693,6 +741,54 @@ terrainPlan.updateData(positions);</code></pre>
|
|
|
693
741
|
|
|
694
742
|
|
|
695
743
|
|
|
744
|
+
<dt class="tag-default">Default Value:</dt>
|
|
745
|
+
0</li></ul></dd>
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
|
|
753
|
+
</dl>
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
|
|
757
|
+
</dd>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
<dt>
|
|
762
|
+
<div class="nameContainer">
|
|
763
|
+
<h4 class="name" id="extractHeight">extractHeight<span class="type-signature type number">Number</span> </h4>
|
|
764
|
+
</div>
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
</dt>
|
|
768
|
+
<dd>
|
|
769
|
+
|
|
770
|
+
<div class="description">
|
|
771
|
+
<p>地形开挖抽出高度</p>
|
|
772
|
+
</div>
|
|
773
|
+
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
<dl class="details">
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
|
|
782
|
+
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
696
792
|
<dt class="tag-default">Default Value:</dt>
|
|
697
793
|
0</li></ul></dd>
|
|
698
794
|
|
|
@@ -967,7 +1063,7 @@ terrainPlan.updateData(positions);</code></pre>
|
|
|
967
1063
|
|
|
968
1064
|
|
|
969
1065
|
<div class="tag-source">
|
|
970
|
-
engineExtensions/tools/TerrainExcavateTool.js, line
|
|
1066
|
+
engineExtensions/tools/TerrainExcavateTool.js, line 76
|
|
971
1067
|
</div>
|
|
972
1068
|
|
|
973
1069
|
</div>
|
|
@@ -1109,7 +1205,7 @@ terrainPlan.updateData(positions);</code></pre>
|
|
|
1109
1205
|
|
|
1110
1206
|
|
|
1111
1207
|
<footer>
|
|
1112
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri
|
|
1208
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:31 GMT+0800 (中国标准时间)
|
|
1113
1209
|
</footer>
|
|
1114
1210
|
</div>
|
|
1115
1211
|
</div>
|
|
@@ -71,8 +71,6 @@
|
|
|
71
71
|
|
|
72
72
|
</h2>
|
|
73
73
|
|
|
74
|
-
<div class="class-description"><p>TerrainProfile</p></div>
|
|
75
|
-
|
|
76
74
|
</header>
|
|
77
75
|
|
|
78
76
|
<article>
|
|
@@ -85,12 +83,12 @@
|
|
|
85
83
|
<div class="nameContainer">
|
|
86
84
|
<h4 class="name" id="TerrainProfile">
|
|
87
85
|
|
|
88
|
-
new TerrainProfile<span class="signature">(viewer,
|
|
86
|
+
new TerrainProfile<span class="signature">(viewer, options)</span>
|
|
89
87
|
</h4>
|
|
90
88
|
|
|
91
89
|
|
|
92
90
|
<div class="tag-source">
|
|
93
|
-
engineExtensions/analysis/TerrainProfile.js, line
|
|
91
|
+
engineExtensions/analysis/TerrainProfile.js, line 10
|
|
94
92
|
</div>
|
|
95
93
|
|
|
96
94
|
</div>
|
|
@@ -100,6 +98,14 @@
|
|
|
100
98
|
<dd>
|
|
101
99
|
|
|
102
100
|
|
|
101
|
+
<div class="description">
|
|
102
|
+
<p>三维地形剖面分析工具。</p>
|
|
103
|
+
<p><code>TerrainProfile</code> 用于沿一条折线对地形或场景进行高程采样,并将采样结果以场景剖切面、
|
|
104
|
+
贴地线和 echart 剖面图的形式展示出来。适用于地形高程趋势查看、线路断面分析以及模型与地形的联合剖面展示等场景。</p>
|
|
105
|
+
<p>当未传入 <code>options.positions</code> 时,实例会通过内部绘制工具交互式获取剖面线;当传入 <code>options.positions</code> 时,
|
|
106
|
+
调用 <code>profile</code> 后会直接使用给定坐标点集开始分析。若 <code>resultShowType</code> 为 <code>1</code> 或 <code>2</code>,则需要提前传入可用的 <code>options.echart</code> 图表对象。</p>
|
|
107
|
+
</div>
|
|
108
|
+
|
|
103
109
|
|
|
104
110
|
|
|
105
111
|
|
|
@@ -134,7 +140,7 @@
|
|
|
134
140
|
<td class="type">
|
|
135
141
|
|
|
136
142
|
|
|
137
|
-
<span class="param-type">Viewer</span>
|
|
143
|
+
<span class="param-type"><a href="Cesium.Viewer.html">Cesium.Viewer</a></span>
|
|
138
144
|
|
|
139
145
|
|
|
140
146
|
|
|
@@ -144,12 +150,8 @@
|
|
|
144
150
|
|
|
145
151
|
<td class="description last">
|
|
146
152
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<p>场景视图对象</p></td>
|
|
153
|
+
<p>Cesium 三维场景视图对象。通常可通过 <code>new Cesium.Viewer(...)</code> 创建获得,
|
|
154
|
+
也可在 <code>SceneView</code>的'底层引擎视图对象创建完毕事件(innerView-created)'回调的event.innerView参数中获取。</p></td>
|
|
153
155
|
</tr>
|
|
154
156
|
|
|
155
157
|
|
|
@@ -172,14 +174,7 @@
|
|
|
172
174
|
|
|
173
175
|
<td class="description last">
|
|
174
176
|
|
|
175
|
-
|
|
176
|
-
<span class="optional"> 可选</span>
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
<p>包含以下属性的对象</p>
|
|
177
|
+
<p>初始化参数对象。可传入空对象 <code>{}</code> 以使用默认配置。</p>
|
|
183
178
|
|
|
184
179
|
|
|
185
180
|
<table class="params">
|
|
@@ -231,7 +226,7 @@
|
|
|
231
226
|
|
|
232
227
|
|
|
233
228
|
|
|
234
|
-
<p>echart
|
|
229
|
+
<p>echart 图表对象。当 <code>resultShowType</code> 为 <code>1</code> 或 <code>2</code> 时必须传入,用于展示剖面图并驱动图表与场景联动。</p></td>
|
|
235
230
|
</tr>
|
|
236
231
|
|
|
237
232
|
|
|
@@ -267,7 +262,7 @@
|
|
|
267
262
|
|
|
268
263
|
|
|
269
264
|
|
|
270
|
-
<p
|
|
265
|
+
<p>剖切垂直面的颜色,仅在启用垂直面显示时生效。</p></td>
|
|
271
266
|
</tr>
|
|
272
267
|
|
|
273
268
|
|
|
@@ -289,7 +284,7 @@
|
|
|
289
284
|
|
|
290
285
|
<td class="default">
|
|
291
286
|
|
|
292
|
-
|
|
287
|
+
500
|
|
293
288
|
|
|
294
289
|
</td>
|
|
295
290
|
|
|
@@ -303,7 +298,7 @@
|
|
|
303
298
|
|
|
304
299
|
|
|
305
300
|
|
|
306
|
-
<p
|
|
301
|
+
<p>剖切垂直面的附加高度,单位与场景高程一致,内部会在采样点高程基础上向上抬升该值。</p></td>
|
|
307
302
|
</tr>
|
|
308
303
|
|
|
309
304
|
|
|
@@ -339,7 +334,7 @@
|
|
|
339
334
|
|
|
340
335
|
|
|
341
336
|
|
|
342
|
-
<p
|
|
337
|
+
<p>图表联动时场景中垂直指示线的颜色。</p></td>
|
|
343
338
|
</tr>
|
|
344
339
|
|
|
345
340
|
|
|
@@ -375,7 +370,7 @@
|
|
|
375
370
|
|
|
376
371
|
|
|
377
372
|
|
|
378
|
-
<p
|
|
373
|
+
<p>场景中贴地剖面线的颜色。</p></td>
|
|
379
374
|
</tr>
|
|
380
375
|
|
|
381
376
|
|
|
@@ -411,7 +406,7 @@
|
|
|
411
406
|
|
|
412
407
|
|
|
413
408
|
|
|
414
|
-
<p
|
|
409
|
+
<p>图表联动时场景中指示点的颜色。</p></td>
|
|
415
410
|
</tr>
|
|
416
411
|
|
|
417
412
|
|
|
@@ -447,7 +442,7 @@
|
|
|
447
442
|
|
|
448
443
|
|
|
449
444
|
|
|
450
|
-
<p
|
|
445
|
+
<p>插值采样精度。值越小,沿剖面线插入的采样点通常越密,分析耗时也可能更高。</p></td>
|
|
451
446
|
</tr>
|
|
452
447
|
|
|
453
448
|
|
|
@@ -483,7 +478,7 @@
|
|
|
483
478
|
|
|
484
479
|
|
|
485
480
|
|
|
486
|
-
<p
|
|
481
|
+
<p>是否在场景中显示剖切垂直面。</p></td>
|
|
487
482
|
</tr>
|
|
488
483
|
|
|
489
484
|
|
|
@@ -519,7 +514,7 @@
|
|
|
519
514
|
|
|
520
515
|
|
|
521
516
|
|
|
522
|
-
<p
|
|
517
|
+
<p>剖面分析类型。<code>0</code> 表示仅分析地形;<code>1</code> 表示对地形和模型场景进行兼容采样。</p></td>
|
|
523
518
|
</tr>
|
|
524
519
|
|
|
525
520
|
|
|
@@ -555,7 +550,7 @@
|
|
|
555
550
|
|
|
556
551
|
|
|
557
552
|
|
|
558
|
-
<p
|
|
553
|
+
<p>地形采样级别。<code>0</code> 表示尽可能使用最精细级别;<code>1-20</code> 为自定义采样级别,数值越大通常越精细。</p></td>
|
|
559
554
|
</tr>
|
|
560
555
|
|
|
561
556
|
|
|
@@ -591,7 +586,7 @@
|
|
|
591
586
|
|
|
592
587
|
|
|
593
588
|
|
|
594
|
-
<p
|
|
589
|
+
<p>在 <code>profileType</code> 为场景采样时,是否对场景执行最精细高程采样。设为 <code>true</code> 时要求采样区域对应模型缓存叶子节点数据可用。</p></td>
|
|
595
590
|
</tr>
|
|
596
591
|
|
|
597
592
|
|
|
@@ -627,7 +622,7 @@
|
|
|
627
622
|
|
|
628
623
|
|
|
629
624
|
|
|
630
|
-
<p
|
|
625
|
+
<p>结果展示方式。<code>0</code> 表示仅在场景中绘制结果;<code>1</code> 表示仅在 echart 图表中展示结果;<code>2</code> 表示同时在场景和图表中展示结果。</p></td>
|
|
631
626
|
</tr>
|
|
632
627
|
|
|
633
628
|
|
|
@@ -640,7 +635,7 @@
|
|
|
640
635
|
<td class="type">
|
|
641
636
|
|
|
642
637
|
|
|
643
|
-
<span class="param-type">Array
|
|
638
|
+
<span class="param-type">Array.<Cesium.Cartesian3></span>
|
|
644
639
|
|
|
645
640
|
|
|
646
641
|
|
|
@@ -661,7 +656,7 @@
|
|
|
661
656
|
|
|
662
657
|
|
|
663
658
|
|
|
664
|
-
<p
|
|
659
|
+
<p>预设的剖面折线坐标数组,至少需要两个点。未传入时,<code>profile</code> 会启动交互绘制以获取坐标点集。</p></td>
|
|
665
660
|
</tr>
|
|
666
661
|
|
|
667
662
|
|
|
@@ -697,7 +692,7 @@
|
|
|
697
692
|
|
|
698
693
|
|
|
699
694
|
|
|
700
|
-
<p
|
|
695
|
+
<p>单次分析超时时间,单位为秒。超时后会调用 <code>profile</code> 传入的失败回调,并屏蔽后续异步分析结果处理。</p></td>
|
|
701
696
|
</tr>
|
|
702
697
|
|
|
703
698
|
|
|
@@ -750,21 +745,28 @@
|
|
|
750
745
|
|
|
751
746
|
<h5>Example</h5>
|
|
752
747
|
|
|
748
|
+
<p class="code-caption">交互式地形剖面分析</p>
|
|
749
|
+
|
|
753
750
|
|
|
754
751
|
|
|
755
|
-
<pre class="prettyprint"><code>// ES5引入方式
|
|
752
|
+
<pre class="prettyprint"><code>// ES5 引入方式
|
|
756
753
|
const { TerrainProfile } = zondy.cesium
|
|
757
|
-
|
|
754
|
+
|
|
755
|
+
// ES6 引入方式
|
|
758
756
|
import { TerrainProfile } from "@mapgis/webclient-cesium-plugin"
|
|
759
757
|
|
|
760
758
|
const webGlobe = new Cesium.WebSceneControl('cesiumContainer', {});
|
|
761
759
|
const viewer = webGlobe.viewer;
|
|
762
|
-
|
|
763
|
-
if(!Cesium.defined(terrainProfile)){
|
|
764
|
-
terrainProfile = new TerrainProfile(viewer,{
|
|
760
|
+
let terrainProfile
|
|
761
|
+
if (!Cesium.defined(terrainProfile)) {
|
|
762
|
+
terrainProfile = new TerrainProfile(viewer, {
|
|
763
|
+
polygonColor: Cesium.Color.RED.withAlpha(0.5),
|
|
764
|
+
polygonHeight: 0,
|
|
765
|
+
polyLineColor: Cesium.Color.BLUE.withAlpha(1),
|
|
766
|
+
resultShowType: 0
|
|
767
|
+
})
|
|
765
768
|
}
|
|
766
|
-
|
|
767
|
-
}</code></pre>
|
|
769
|
+
terrainProfile.profile()</code></pre>
|
|
768
770
|
|
|
769
771
|
|
|
770
772
|
|
|
@@ -796,12 +798,12 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
796
798
|
<div class="nameContainer">
|
|
797
799
|
<h4 class="name" id="destroy">
|
|
798
800
|
|
|
799
|
-
destroy<span class="signature">()</span>
|
|
801
|
+
destroy<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
800
802
|
</h4>
|
|
801
803
|
|
|
802
804
|
|
|
803
805
|
<div class="tag-source">
|
|
804
|
-
engineExtensions/analysis/TerrainProfile.js, line
|
|
806
|
+
engineExtensions/analysis/TerrainProfile.js, line 724
|
|
805
807
|
</div>
|
|
806
808
|
|
|
807
809
|
</div>
|
|
@@ -812,7 +814,10 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
812
814
|
|
|
813
815
|
|
|
814
816
|
<div class="description">
|
|
815
|
-
<p
|
|
817
|
+
<p>销毁剖面分析实例并清理关联资源。</p>
|
|
818
|
+
<p>该方法会销毁绘制句柄、提示框并移除场景中的贴地线;若当前实例配置了 echart,
|
|
819
|
+
还会同步注销图表联动事件、隐藏图表容器,并清理图表联动指示线及相关分析实体。调用后当前实例会被标记为已销毁,
|
|
820
|
+
后续异步采样返回时也不会再继续执行结果绘制逻辑。</p>
|
|
816
821
|
</div>
|
|
817
822
|
|
|
818
823
|
|
|
@@ -857,6 +862,35 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
857
862
|
|
|
858
863
|
|
|
859
864
|
|
|
865
|
+
<h5>Returns:</h5>
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
<table class="params">
|
|
870
|
+
<thead>
|
|
871
|
+
<tr>
|
|
872
|
+
|
|
873
|
+
<th>Type</th>
|
|
874
|
+
<th class="last">Description</th>
|
|
875
|
+
</tr>
|
|
876
|
+
</thead>
|
|
877
|
+
<tbody>
|
|
878
|
+
|
|
879
|
+
<tr>
|
|
880
|
+
|
|
881
|
+
<td class="type">
|
|
882
|
+
|
|
883
|
+
void
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
</td>
|
|
887
|
+
<td class="description last"></td>
|
|
888
|
+
</tr>
|
|
889
|
+
|
|
890
|
+
</tbody>
|
|
891
|
+
</table>
|
|
892
|
+
|
|
893
|
+
|
|
860
894
|
|
|
861
895
|
|
|
862
896
|
</dd>
|
|
@@ -867,12 +901,12 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
867
901
|
<div class="nameContainer">
|
|
868
902
|
<h4 class="name" id="profile">
|
|
869
903
|
|
|
870
|
-
profile<span class="signature">(start
|
|
904
|
+
profile<span class="signature">(<span class="optional">start</span>, <span class="optional">success</span>, <span class="optional">fail</span>)</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
871
905
|
</h4>
|
|
872
906
|
|
|
873
907
|
|
|
874
908
|
<div class="tag-source">
|
|
875
|
-
engineExtensions/analysis/TerrainProfile.js, line
|
|
909
|
+
engineExtensions/analysis/TerrainProfile.js, line 270
|
|
876
910
|
</div>
|
|
877
911
|
|
|
878
912
|
</div>
|
|
@@ -883,7 +917,10 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
883
917
|
|
|
884
918
|
|
|
885
919
|
<div class="description">
|
|
886
|
-
<p
|
|
920
|
+
<p>启动一次剖面分析。</p>
|
|
921
|
+
<p>当初始化时未传入 <code>options.positions</code> 或点数不足两个时,该方法会先启动交互绘制以获取剖面线;
|
|
922
|
+
否则会直接对预设坐标点集执行插值和高程采样。分析完成后可按配置在场景中绘制贴地线、垂直面,
|
|
923
|
+
并在 echart 中展示剖面曲线;当采样超过 <code>options.timeout</code> 指定时长时,会触发失败回调。</p>
|
|
887
924
|
</div>
|
|
888
925
|
|
|
889
926
|
|
|
@@ -930,7 +967,14 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
930
967
|
|
|
931
968
|
<td class="description last">
|
|
932
969
|
|
|
933
|
-
|
|
970
|
+
|
|
971
|
+
<span class="optional"> 可选</span>
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
<p>开始分析前的回调函数。通常可用于更新界面状态或提示用户当前正在进行采样。</p></td>
|
|
934
978
|
</tr>
|
|
935
979
|
|
|
936
980
|
|
|
@@ -953,7 +997,14 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
953
997
|
|
|
954
998
|
<td class="description last">
|
|
955
999
|
|
|
956
|
-
|
|
1000
|
+
|
|
1001
|
+
<span class="optional"> 可选</span>
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
<p>分析成功后的回调函数。在采样完成且结果绘制结束后触发。</p></td>
|
|
957
1008
|
</tr>
|
|
958
1009
|
|
|
959
1010
|
|
|
@@ -976,7 +1027,14 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
976
1027
|
|
|
977
1028
|
<td class="description last">
|
|
978
1029
|
|
|
979
|
-
|
|
1030
|
+
|
|
1031
|
+
<span class="optional"> 可选</span>
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
<p>分析失败回调函数。当前主要在分析超时时触发,建议在启用超时控制时始终传入。</p></td>
|
|
980
1038
|
</tr>
|
|
981
1039
|
|
|
982
1040
|
|
|
@@ -1019,7 +1077,61 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
1019
1077
|
|
|
1020
1078
|
|
|
1021
1079
|
|
|
1080
|
+
<h5>Returns:</h5>
|
|
1081
|
+
|
|
1082
|
+
|
|
1083
|
+
|
|
1084
|
+
<table class="params">
|
|
1085
|
+
<thead>
|
|
1086
|
+
<tr>
|
|
1087
|
+
|
|
1088
|
+
<th>Type</th>
|
|
1089
|
+
<th class="last">Description</th>
|
|
1090
|
+
</tr>
|
|
1091
|
+
</thead>
|
|
1092
|
+
<tbody>
|
|
1093
|
+
|
|
1094
|
+
<tr>
|
|
1095
|
+
|
|
1096
|
+
<td class="type">
|
|
1097
|
+
|
|
1098
|
+
void
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
</td>
|
|
1102
|
+
<td class="description last"></td>
|
|
1103
|
+
</tr>
|
|
1104
|
+
|
|
1105
|
+
</tbody>
|
|
1106
|
+
</table>
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
<h5>Example</h5>
|
|
1112
|
+
|
|
1113
|
+
<p class="code-caption">直接传入坐标点执行剖面分析</p>
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
<pre class="prettyprint"><code>const terrainProfile = new TerrainProfile(viewer, {
|
|
1118
|
+
positions,
|
|
1119
|
+
resultShowType: 0
|
|
1120
|
+
})
|
|
1121
|
+
|
|
1122
|
+
terrainProfile.profile(
|
|
1123
|
+
() => {
|
|
1124
|
+
console.log('开始分析')
|
|
1125
|
+
},
|
|
1126
|
+
() => {
|
|
1127
|
+
console.log('分析完成')
|
|
1128
|
+
},
|
|
1129
|
+
() => {
|
|
1130
|
+
console.warn('分析超时')
|
|
1131
|
+
}
|
|
1132
|
+
)</code></pre>
|
|
1022
1133
|
|
|
1134
|
+
|
|
1023
1135
|
|
|
1024
1136
|
</dd>
|
|
1025
1137
|
|
|
@@ -1029,12 +1141,12 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
1029
1141
|
<div class="nameContainer">
|
|
1030
1142
|
<h4 class="name" id="stopDrawing">
|
|
1031
1143
|
|
|
1032
|
-
stopDrawing<span class="signature">()</span>
|
|
1144
|
+
stopDrawing<span class="signature">()</span><span class="glyphicon glyphicon-circle-arrow-right"></span><span class="type-signature returnType">{void}</span>
|
|
1033
1145
|
</h4>
|
|
1034
1146
|
|
|
1035
1147
|
|
|
1036
1148
|
<div class="tag-source">
|
|
1037
|
-
engineExtensions/analysis/TerrainProfile.js, line
|
|
1149
|
+
engineExtensions/analysis/TerrainProfile.js, line 248
|
|
1038
1150
|
</div>
|
|
1039
1151
|
|
|
1040
1152
|
</div>
|
|
@@ -1045,8 +1157,9 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
1045
1157
|
|
|
1046
1158
|
|
|
1047
1159
|
<div class="description">
|
|
1048
|
-
<p
|
|
1049
|
-
|
|
1160
|
+
<p>停止当前剖面线绘制交互。</p>
|
|
1161
|
+
<p>当 <code>profile</code> 处于交互绘制阶段且尚未完成采样时,可调用该方法主动中断绘制流程。
|
|
1162
|
+
该方法只会清理当前绘制事件和提示框,不会销毁已经创建的分析实例,也不会清除已完成的剖面结果。</p>
|
|
1050
1163
|
</div>
|
|
1051
1164
|
|
|
1052
1165
|
|
|
@@ -1091,6 +1204,35 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
1091
1204
|
|
|
1092
1205
|
|
|
1093
1206
|
|
|
1207
|
+
<h5>Returns:</h5>
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
|
|
1211
|
+
<table class="params">
|
|
1212
|
+
<thead>
|
|
1213
|
+
<tr>
|
|
1214
|
+
|
|
1215
|
+
<th>Type</th>
|
|
1216
|
+
<th class="last">Description</th>
|
|
1217
|
+
</tr>
|
|
1218
|
+
</thead>
|
|
1219
|
+
<tbody>
|
|
1220
|
+
|
|
1221
|
+
<tr>
|
|
1222
|
+
|
|
1223
|
+
<td class="type">
|
|
1224
|
+
|
|
1225
|
+
void
|
|
1226
|
+
|
|
1227
|
+
|
|
1228
|
+
</td>
|
|
1229
|
+
<td class="description last"></td>
|
|
1230
|
+
</tr>
|
|
1231
|
+
|
|
1232
|
+
</tbody>
|
|
1233
|
+
</table>
|
|
1234
|
+
|
|
1235
|
+
|
|
1094
1236
|
|
|
1095
1237
|
|
|
1096
1238
|
</dd>
|
|
@@ -1109,7 +1251,7 @@ if(!Cesium.defined(terrainProfile)){
|
|
|
1109
1251
|
|
|
1110
1252
|
|
|
1111
1253
|
<footer>
|
|
1112
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri
|
|
1254
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc</a> on Fri Sep 18 2026 14:59:31 GMT+0800 (中国标准时间)
|
|
1113
1255
|
</footer>
|
|
1114
1256
|
</div>
|
|
1115
1257
|
</div>
|