@mapgis/webclient-cesium-plugin 17.2.4 → 17.2.6

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.
@@ -497,6 +497,16 @@
497
497
  <td class="name"><code><p>移除所有裁剪面</p></code></td>
498
498
  </tr>
499
499
 
500
+ <tr class="deep-level-0">
501
+ <td class="name"><code><a href="#showCuttingPlane">showCuttingPlane</a></code></td>
502
+ <td class="name">
503
+ <code>
504
+
505
+ </code>
506
+ </td>
507
+ <td class="name"><code><p>显示或隐藏所有辅助剖切面(体)</p></code></td>
508
+ </tr>
509
+
500
510
  </tbody>
501
511
  </table>
502
512
  </div>
@@ -2231,7 +2241,25 @@
2231
2241
  <h5>示例</h5>
2232
2242
 
2233
2243
 
2234
- <pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList);
2235
2244
  113.0406, 30.0378,
2236
2245
  113.0595, 30.0378,
2237
2246
  113.0595, 30.0297,
2238
2247
  113.0762, 30.0297,
2239
2248
  113.0762, 30.0179,
2240
2249
  113.0595, 30.0179,
2241
2250
  113.0595, 30.0099,
2242
2251
  113.0406, 30.0099
2243
2252
  //裁剪方向,false:原方向,true反方向
2244
2253
  unionClippingRegions: false,
2245
2254
  //配置裁剪体的颜色,以及透明度
2246
2255
  color: new Cesium.Cesium.Color(1, 1, 1, 0.2),
2247
2256
  //是否显示裁剪体
2248
2257
  showCuttingPlane: true
2258
+ <pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList);
2259
+ var positions = [
2260
+ 113.0406, 30.0378,
2261
+ 113.0595, 30.0378,
2262
+ 113.0595, 30.0297,
2263
+ 113.0762, 30.0297,
2264
+ 113.0762, 30.0179,
2265
+ 113.0595, 30.0179,
2266
+ 113.0595, 30.0099,
2267
+ 113.0406, 30.0099
2268
+ ];
2269
+ cutTool.createModelCuttingPolygon(positions, -1000, 500, {
2270
+ //裁剪方向,false:原方向,true反方向
2271
+ unionClippingRegions: false,
2272
+ //配置裁剪体的颜色,以及透明度
2273
+ color: new Cesium.Color(1, 1, 1, 0.2),
2274
+ //是否显示裁剪体
2275
+ showCuttingPlane: true
2276
+ })</code></pre>
2249
2277
 
2250
2278
 
2251
2279
 
@@ -2892,8 +2920,163 @@
2892
2920
  <h5>示例</h5>
2893
2921
 
2894
2922
 
2895
- <pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList);
2923
+ <pre class="prettyprint"><code>var cutTool = new Cesium.CuttingTool(viewer, layerList);
2924
+
2925
+ cutTool.removeAll();</code></pre>
2926
+
2927
+
2928
+
2929
+ </div>
2930
+
2931
+ <div class="member">
2932
+
2933
+
2934
+
2935
+ <h4 class="name" id="showCuttingPlane">
2936
+ <a class="href-link" href="#showCuttingPlane">#</a>
2937
+
2938
+ <span class="code-name" id="showCuttingPlane" style="font-size:30px">
2939
+
2940
+ showCuttingPlane<span class="signature">(showPlane<span class="signature-attributes">opt</span>)</span>
2941
+
2942
+ </span>
2943
+ </h4>
2944
+
2945
+
2946
+
2947
+ <div class="description">
2948
+ <p>显示或隐藏所有辅助剖切面(体)</p>
2949
+ </div>
2950
+
2951
+
2952
+
2953
+
2954
+
2955
+
2956
+
2957
+
2958
+
2959
+
2960
+ <h4>参数</h4>
2961
+
2962
+ <div class="table-container">
2963
+ <table class="params table">
2964
+ <thead>
2965
+ <tr>
2966
+
2967
+ <th>名称</th>
2968
+
2969
+
2970
+ <th>类型</th>
2971
+
2972
+
2973
+ <th style="min-width: 100px;">默认值</th>
2974
+
2975
+
2976
+ <th class="last">描述</th>
2977
+ </tr>
2978
+ </thead>
2979
+
2980
+ <tbody>
2981
+
2982
+
2983
+
2984
+ <tr class="deep-level-0">
2985
+
2986
+ <td class="name"><code>showPlane</code></td>
2987
+
2988
+
2989
+ <td class="type">
2990
+
2991
+
2992
+ <span class="param-type">
2993
+
2994
+ Boolean
2896
2995
 
2996
+ </span>
2997
+
2998
+
2999
+
3000
+
3001
+ </td>
3002
+
3003
+
3004
+ <td class="default">
3005
+
3006
+ true
3007
+
3008
+ </td>
3009
+
3010
+
3011
+ <td class="description last"><p>显示或隐藏所有辅助剖切面(体),true为显示所有辅助剖切面(体),false为隐藏所有辅助剖切面(体)</p></td>
3012
+ </tr>
3013
+
3014
+
3015
+
3016
+
3017
+ </tbody>
3018
+ </table>
3019
+ </div>
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+
3026
+ <dl class="details">
3027
+
3028
+
3029
+
3030
+
3031
+
3032
+
3033
+
3034
+
3035
+
3036
+
3037
+
3038
+
3039
+
3040
+
3041
+
3042
+
3043
+
3044
+
3045
+
3046
+
3047
+
3048
+
3049
+
3050
+
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+ </dl>
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+
3079
+
2897
3080
 
2898
3081
 
2899
3082
  </div>
@@ -160,7 +160,7 @@
160
160
  <h5>示例</h5>
161
161
 
162
162
 
163
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement();
163
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement();
164
164
  // 修改绘制类型,支持,贴地,贴模型等参数设置</code></pre>
165
165
 
166
166
 
@@ -715,11 +715,11 @@
715
715
  <h5>示例</h5>
716
716
 
717
717
 
718
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
718
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement(viewer);
719
719
  drawElement.startDrawingCircle({
720
720
  color: new Cesium.Color(0.2, 0.4, 0.3, 1.0),
721
721
  callback: function (result) {
722
- let circle = new Cesium.DrawElement.CirclePrimitive({
722
+ var circle = new Cesium.DrawElement.CirclePrimitive({
723
723
  center: result.center,
724
724
  radius: result.radius,
725
725
  height: result.height,
@@ -914,11 +914,11 @@ drawElement.startDrawingCircle({
914
914
  <h5>示例</h5>
915
915
 
916
916
 
917
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
917
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement(viewer);
918
918
  drawElement.startDrawingExtent({
919
919
  color: new Cesium.Color(0.3, 0.8, 0.7),
920
920
  callback: function (result) {
921
- let redRectangle = new Cesium.DrawElement.ExtentPrimitive({
921
+ var redRectangle = new Cesium.DrawElement.ExtentPrimitive({
922
922
  extent: result.extent,
923
923
  height: result.height,
924
924
  material: Cesium.Material.fromType('Color', {
@@ -1111,7 +1111,7 @@ drawElement.startDrawingExtent({
1111
1111
  <h5>示例</h5>
1112
1112
 
1113
1113
 
1114
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1114
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement(viewer);
1115
1115
  drawElement.startDrawingMarker({
1116
1116
  addDefaultMark: true,
1117
1117
  color: new Cesium.Color(0.5, 0.2, 0.8, 1.0),
@@ -1122,7 +1122,7 @@ drawElement.startDrawingMarker({
1122
1122
  addDefaultMark: false,
1123
1123
  color: new Cesium.Color(0.5, 0.2, 0.8, 1.0),
1124
1124
  callback: function (result) {
1125
- let pointGeometry = viewer.entities.add({
1125
+ var pointGeometry = viewer.entities.add({
1126
1126
  position: result.position,
1127
1127
  point: {
1128
1128
  color: Cesium.Color.SKYBLUE,
@@ -1315,12 +1315,12 @@ drawElement.startDrawingMarker({
1315
1315
  <h5>示例</h5>
1316
1316
 
1317
1317
 
1318
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1318
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement(viewer);
1319
1319
  drawElement.startDrawingPolygon({
1320
1320
  color: new Cesium.Color(0.5, 0.8, 0.3),
1321
1321
  callback: function (result) {
1322
1322
  //alert(position);
1323
- let polygon = new Cesium.DrawElement.PolygonPrimitive({
1323
+ var polygon = new Cesium.DrawElement.PolygonPrimitive({
1324
1324
  positions: result.positions,
1325
1325
  //material: Cesium.Material.fromType('Checkerboard') //materialEnd
1326
1326
  material: Cesium.Material.fromType('Color', {
@@ -1513,11 +1513,11 @@ drawElement.startDrawingPolygon({
1513
1513
  <h5>示例</h5>
1514
1514
 
1515
1515
 
1516
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1516
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement(viewer);
1517
1517
  drawElement.startDrawingPolyline({
1518
1518
  color: new Cesium.Color(0.3, 0.7, 0.8, 1.0),
1519
1519
  callback: function (result) {
1520
- let polyline = new Cesium.DrawElement.PolylinePrimitive({
1520
+ var polyline = new Cesium.DrawElement.PolylinePrimitive({
1521
1521
  positions: result.positions,
1522
1522
  width: 1,
1523
1523
  geodesic: true
@@ -1624,7 +1624,7 @@ drawElement.startDrawingPolyline({
1624
1624
  <h5>示例</h5>
1625
1625
 
1626
1626
 
1627
- <pre class="prettyprint"><code>let drawElement = new Cesium.DrawElement(viewer);
1627
+ <pre class="prettyprint"><code>var drawElement = new Cesium.DrawElement(viewer);
1628
1628
  drawElement.stopDrawing();</code></pre>
1629
1629
 
1630
1630