@kq_npm/client3d_webgl_vue 0.3.2-beta → 0.3.4-beta

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/flight/index.js CHANGED
@@ -576,7 +576,7 @@ const __default__ = {
576
576
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
577
577
  size: 24
578
578
  }, {
579
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Download))]),
579
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Upload))]),
580
580
  _: 1
581
581
  /* STABLE */
582
582
 
@@ -310,6 +310,11 @@ const __default__ = {
310
310
  props: {
311
311
  // 每个地图相关组件的必须参数 非必传 指定组件绑定的map对象的div的id
312
312
  mapTarget: String,
313
+ // 是否显示淹没模式下拉选择框
314
+ isShowMode: {
315
+ type: Boolean,
316
+ default: true
317
+ },
313
318
  // 设置参数
314
319
  settingParams: {
315
320
  type: Object
@@ -477,7 +482,8 @@ const __default__ = {
477
482
  "label-position": "left"
478
483
  }, {
479
484
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
480
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
485
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [__props.isShowMode ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_form_item, {
486
+ key: 0,
481
487
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).floodMode
482
488
  }, {
483
489
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_select, {
@@ -507,7 +513,7 @@ const __default__ = {
507
513
 
508
514
  }, 8
509
515
  /* PROPS */
510
- , ["label"])]),
516
+ , ["label"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]),
511
517
  _: 1
512
518
  /* STABLE */
513
519
 
@@ -146,24 +146,26 @@ class GpuSpatialQueryViewModel {
146
146
  const tile = tileset._selectedTiles[n];
147
147
  const content = tile.content;
148
148
 
149
- for (let i = 0; i < content.featuresLength; i++) {
150
- const feature = content.getFeature(i);
151
- let bFind = false;
149
+ if (content) {
150
+ for (let i = 0; i < content.featuresLength; i++) {
151
+ const feature = content.getFeature(i);
152
+ let bFind = false;
152
153
 
153
- if (feature.pickId) {
154
- const id = feature.pickId.key;
154
+ if (feature.pickId) {
155
+ const id = feature.pickId.key;
155
156
 
156
- for (let j = 0; j < queryIds.length; j++) {
157
- if (queryIds[j] == id) {
158
- bFind = true;
157
+ for (let j = 0; j < queryIds.length; j++) {
158
+ if (queryIds[j] == id) {
159
+ bFind = true;
160
+ }
159
161
  }
160
162
  }
161
- }
162
163
 
163
- if (bFind) {
164
- feature.color = Cesium.Color.AQUA;
165
- } else {
166
- feature.color = Cesium.Color.WHITE;
164
+ if (bFind) {
165
+ feature.color = Cesium.Color.AQUA;
166
+ } else {
167
+ feature.color = Cesium.Color.WHITE;
168
+ }
167
169
  }
168
170
  }
169
171
  }
package/index.js CHANGED
@@ -2825,7 +2825,6 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
2825
2825
  } else if (measureType.value === 'area') {
2826
2826
  if (res.area) result.value = formatArea(res.area);
2827
2827
  } else if (measureType.value === 'azimuth') {
2828
- console.log(222, res);
2829
2828
  if (res.azimuth) result.value = formatAzimuth(res.azimuth);
2830
2829
  }
2831
2830
  });
@@ -3608,7 +3607,7 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
3608
3607
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
3609
3608
  size: 24
3610
3609
  }, {
3611
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Download))]),
3610
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Upload))]),
3612
3611
  _: 1
3613
3612
  /* STABLE */
3614
3613
 
@@ -4059,24 +4058,26 @@ class GpuSpatialQueryViewModel {
4059
4058
  const tile = tileset._selectedTiles[n];
4060
4059
  const content = tile.content;
4061
4060
 
4062
- for (let i = 0; i < content.featuresLength; i++) {
4063
- const feature = content.getFeature(i);
4064
- let bFind = false;
4061
+ if (content) {
4062
+ for (let i = 0; i < content.featuresLength; i++) {
4063
+ const feature = content.getFeature(i);
4064
+ let bFind = false;
4065
4065
 
4066
- if (feature.pickId) {
4067
- const id = feature.pickId.key;
4066
+ if (feature.pickId) {
4067
+ const id = feature.pickId.key;
4068
4068
 
4069
- for (let j = 0; j < queryIds.length; j++) {
4070
- if (queryIds[j] == id) {
4071
- bFind = true;
4069
+ for (let j = 0; j < queryIds.length; j++) {
4070
+ if (queryIds[j] == id) {
4071
+ bFind = true;
4072
+ }
4072
4073
  }
4073
4074
  }
4074
- }
4075
4075
 
4076
- if (bFind) {
4077
- feature.color = Cesium.Color.AQUA;
4078
- } else {
4079
- feature.color = Cesium.Color.WHITE;
4076
+ if (bFind) {
4077
+ feature.color = Cesium.Color.AQUA;
4078
+ } else {
4079
+ feature.color = Cesium.Color.WHITE;
4080
+ }
4080
4081
  }
4081
4082
  }
4082
4083
  }
@@ -9855,6 +9856,11 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
9855
9856
  props: {
9856
9857
  // 每个地图相关组件的必须参数 非必传 指定组件绑定的map对象的div的id
9857
9858
  mapTarget: String,
9859
+ // 是否显示淹没模式下拉选择框
9860
+ isShowMode: {
9861
+ type: Boolean,
9862
+ default: true
9863
+ },
9858
9864
  // 设置参数
9859
9865
  settingParams: {
9860
9866
  type: Object
@@ -10022,7 +10028,8 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
10022
10028
  "label-position": "left"
10023
10029
  }, {
10024
10030
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_row, null, {
10025
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_form_item, {
10031
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [__props.isShowMode ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_form_item, {
10032
+ key: 0,
10026
10033
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).floodMode
10027
10034
  }, {
10028
10035
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_select, {
@@ -10052,7 +10059,7 @@ const FloodAnalysisvue_type_script_setup_true_lang_js_default_ = {
10052
10059
 
10053
10060
  }, 8
10054
10061
  /* PROPS */
10055
- , ["label"])]),
10062
+ , ["label"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]),
10056
10063
  _: 1
10057
10064
  /* STABLE */
10058
10065
 
@@ -10475,6 +10482,17 @@ class SlopeAnalysisViewModel {
10475
10482
  this._globaOptions.viewer.scene.globe.enableLighting = true;
10476
10483
  this._globaOptions._drawManager = scenceView._drawManager;
10477
10484
  var that = this;
10485
+ that._slopeAnalysis = new Cesium.Kq3dSlope({
10486
+ viewer: that._globaOptions.viewer,
10487
+ positions: [new Cesium.Cartesian3(528486.4951355414, 5591866.071664512, 3011848.5874731047), new Cesium.Cartesian3(511851.92328430264, 5590161.386242805, 3017839.604729828), new Cesium.Cartesian3(512863.7934440037, 5579087.150988879, 3037957.9974059854), new Cesium.Cartesian3(526764.7827270611, 5574253.865524863, 3044401.4321003747), new Cesium.Cartesian3(544782.217496756, 5578126.194618411, 3034189.5478781504), new Cesium.Cartesian3(546626.3798432688, 5588179.698741777, 3015426.663665117)],
10488
+ isFilter: false,
10489
+ colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
10490
+ colorTable: that._globaOptions.viewModel.colorTable
10491
+ });
10492
+
10493
+ that._slopeAnalysis.destroy();
10494
+
10495
+ that._slopeAnalysis = null;
10478
10496
  this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
10479
10497
  if (shape) {
10480
10498
  that._globaOptions.viewModel.positions = shape._controlPoints; // 实例化分析对象
@@ -10548,6 +10566,7 @@ class SlopeAnalysisViewModel {
10548
10566
  color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
10549
10567
  });
10550
10568
  } else {
10569
+ // this.clear();
10551
10570
  if (this._globaOptions._drawManager) {
10552
10571
  this._globaOptions._drawManager.startDraw("polygon", {
10553
10572
  clampToGround: true
@@ -11465,11 +11484,39 @@ class IsolineAnalysisViewModel {
11465
11484
  } // scenceView._viewer.imageryLayers.addImageryProvider(new Cesium.SingleTileImageryProvider({
11466
11485
  // url: './images/5e1e7ff00b274.jpg"'
11467
11486
  // }));
11468
- // options.positions = Cesium.Cartesian3.fromDegreesArray([86.207634, 28.056729, 86.102906, 28.00936, 86.08717, 27.91235, 86.125613, 27.819748, 86.198224, 27.795282, 86.296004, 27.781972, 86.350588, 27.789578, 86.392595, 27.844577, 86.45492, 27.953339, 86.447793, 28.072028, 86.391228, 28.124686, 86.307634, 28.121425, 86.224272, 28.086173, 86.207, 28.062356, 86.206765, 28.062273]);
11469
- // this._elevation = new Cesium.Kq3dContourAnalysis(options);
11470
11487
 
11471
11488
 
11489
+ options.positions = Cesium.Cartesian3.fromDegreesArray([86.207634, 28.056729, 86.102906, 28.00936]);
11490
+ this._elevation = new Cesium.Kq3dContourAnalysis(options);
11491
+
11492
+ this._elevation.destroy();
11493
+
11494
+ this._elevation = null;
11472
11495
  this._drawManager = scenceView._drawManager;
11496
+ var that = this;
11497
+ that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
11498
+ if (shape) {
11499
+ that._options.positions = shape._controlPoints;
11500
+
11501
+ that._drawManager.clear();
11502
+
11503
+ switch (that._options.filltype) {
11504
+ case 0:
11505
+ that._options.type = Cesium.Kq3dContourAnalysisType.LINE;
11506
+ break;
11507
+
11508
+ case 1:
11509
+ that._options.type = Cesium.Kq3dContourAnalysisType.SURFACE;
11510
+ break;
11511
+
11512
+ case 2:
11513
+ that._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
11514
+ break;
11515
+ }
11516
+
11517
+ that._elevation = new Cesium.Kq3dContourAnalysis(that._options);
11518
+ }
11519
+ });
11473
11520
  } // 设置等高面区间
11474
11521
 
11475
11522
 
@@ -11590,33 +11637,10 @@ class IsolineAnalysisViewModel {
11590
11637
 
11591
11638
 
11592
11639
  start() {
11593
- var that = this;
11594
- this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
11595
- if (shape) {
11596
- that._options.positions = shape._controlPoints;
11597
-
11598
- that._drawManager.clear();
11599
-
11600
- switch (that._options.filltype) {
11601
- case 0:
11602
- that._options.type = Cesium.Kq3dContourAnalysisType.LINE;
11603
- break;
11604
-
11605
- case 1:
11606
- that._options.type = Cesium.Kq3dContourAnalysisType.SURFACE;
11607
- break;
11640
+ var that = this; // 判断是否添加了地形
11608
11641
 
11609
- case 2:
11610
- that._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
11611
- break;
11612
- }
11613
-
11614
- that._elevation = new Cesium.Kq3dContourAnalysis(that._options);
11615
- }
11616
- }); // 判断是否添加了地形
11617
-
11618
- if (this._options.viewer.terrainProvider.availability) {
11619
- this._drawManager.startDraw("polygon", {
11642
+ if (that._options.viewer.terrainProvider.availability) {
11643
+ that._drawManager.startDraw("polygon", {
11620
11644
  clampToGround: true
11621
11645
  });
11622
11646
  } else {
@@ -11629,8 +11653,7 @@ class IsolineAnalysisViewModel {
11629
11653
 
11630
11654
 
11631
11655
  clear() {
11632
- this._drawManager.stopDraw();
11633
-
11656
+ this._drawManager && this._drawManager.stopDraw();
11634
11657
  this._elevation && this._elevation.destroy();
11635
11658
  this._elevation = null; //移除监听事件
11636
11659
 
@@ -11640,8 +11663,7 @@ class IsolineAnalysisViewModel {
11640
11663
 
11641
11664
 
11642
11665
  destroy() {
11643
- this._drawManager.stopDraw();
11644
-
11666
+ this._drawManager && this._drawManager.stopDraw();
11645
11667
  this._elevation && this._elevation.destroy();
11646
11668
  this._elevation = null; //移除监听事件
11647
11669
 
@@ -153,11 +153,39 @@ class IsolineAnalysisViewModel {
153
153
  } // scenceView._viewer.imageryLayers.addImageryProvider(new Cesium.SingleTileImageryProvider({
154
154
  // url: './images/5e1e7ff00b274.jpg"'
155
155
  // }));
156
- // options.positions = Cesium.Cartesian3.fromDegreesArray([86.207634, 28.056729, 86.102906, 28.00936, 86.08717, 27.91235, 86.125613, 27.819748, 86.198224, 27.795282, 86.296004, 27.781972, 86.350588, 27.789578, 86.392595, 27.844577, 86.45492, 27.953339, 86.447793, 28.072028, 86.391228, 28.124686, 86.307634, 28.121425, 86.224272, 28.086173, 86.207, 28.062356, 86.206765, 28.062273]);
157
- // this._elevation = new Cesium.Kq3dContourAnalysis(options);
158
156
 
159
157
 
158
+ options.positions = Cesium.Cartesian3.fromDegreesArray([86.207634, 28.056729, 86.102906, 28.00936]);
159
+ this._elevation = new Cesium.Kq3dContourAnalysis(options);
160
+
161
+ this._elevation.destroy();
162
+
163
+ this._elevation = null;
160
164
  this._drawManager = scenceView._drawManager;
165
+ var that = this;
166
+ that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
167
+ if (shape) {
168
+ that._options.positions = shape._controlPoints;
169
+
170
+ that._drawManager.clear();
171
+
172
+ switch (that._options.filltype) {
173
+ case 0:
174
+ that._options.type = Cesium.Kq3dContourAnalysisType.LINE;
175
+ break;
176
+
177
+ case 1:
178
+ that._options.type = Cesium.Kq3dContourAnalysisType.SURFACE;
179
+ break;
180
+
181
+ case 2:
182
+ that._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
183
+ break;
184
+ }
185
+
186
+ that._elevation = new Cesium.Kq3dContourAnalysis(that._options);
187
+ }
188
+ });
161
189
  } // 设置等高面区间
162
190
 
163
191
 
@@ -278,33 +306,10 @@ class IsolineAnalysisViewModel {
278
306
 
279
307
 
280
308
  start() {
281
- var that = this;
282
- this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
283
- if (shape) {
284
- that._options.positions = shape._controlPoints;
285
-
286
- that._drawManager.clear();
287
-
288
- switch (that._options.filltype) {
289
- case 0:
290
- that._options.type = Cesium.Kq3dContourAnalysisType.LINE;
291
- break;
292
-
293
- case 1:
294
- that._options.type = Cesium.Kq3dContourAnalysisType.SURFACE;
295
- break;
296
-
297
- case 2:
298
- that._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
299
- break;
300
- }
301
-
302
- that._elevation = new Cesium.Kq3dContourAnalysis(that._options);
303
- }
304
- }); // 判断是否添加了地形
309
+ var that = this; // 判断是否添加了地形
305
310
 
306
- if (this._options.viewer.terrainProvider.availability) {
307
- this._drawManager.startDraw("polygon", {
311
+ if (that._options.viewer.terrainProvider.availability) {
312
+ that._drawManager.startDraw("polygon", {
308
313
  clampToGround: true
309
314
  });
310
315
  } else {
@@ -317,8 +322,7 @@ class IsolineAnalysisViewModel {
317
322
 
318
323
 
319
324
  clear() {
320
- this._drawManager.stopDraw();
321
-
325
+ this._drawManager && this._drawManager.stopDraw();
322
326
  this._elevation && this._elevation.destroy();
323
327
  this._elevation = null; //移除监听事件
324
328
 
@@ -328,8 +332,7 @@ class IsolineAnalysisViewModel {
328
332
 
329
333
 
330
334
  destroy() {
331
- this._drawManager.stopDraw();
332
-
335
+ this._drawManager && this._drawManager.stopDraw();
333
336
  this._elevation && this._elevation.destroy();
334
337
  this._elevation = null; //移除监听事件
335
338
 
package/measure/index.js CHANGED
@@ -266,7 +266,6 @@ const __default__ = {
266
266
  } else if (measureType.value === 'area') {
267
267
  if (res.area) result.value = formatArea(res.area);
268
268
  } else if (measureType.value === 'azimuth') {
269
- console.log(222, res);
270
269
  if (res.azimuth) result.value = formatAzimuth(res.azimuth);
271
270
  }
272
271
  });
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.3.2-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.7","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.3.4-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.7","xe-utils":"^3.5.4"}}
@@ -140,6 +140,17 @@ class SlopeAnalysisViewModel {
140
140
  this._globaOptions.viewer.scene.globe.enableLighting = true;
141
141
  this._globaOptions._drawManager = scenceView._drawManager;
142
142
  var that = this;
143
+ that._slopeAnalysis = new Cesium.Kq3dSlope({
144
+ viewer: that._globaOptions.viewer,
145
+ positions: [new Cesium.Cartesian3(528486.4951355414, 5591866.071664512, 3011848.5874731047), new Cesium.Cartesian3(511851.92328430264, 5590161.386242805, 3017839.604729828), new Cesium.Cartesian3(512863.7934440037, 5579087.150988879, 3037957.9974059854), new Cesium.Cartesian3(526764.7827270611, 5574253.865524863, 3044401.4321003747), new Cesium.Cartesian3(544782.217496756, 5578126.194618411, 3034189.5478781504), new Cesium.Cartesian3(546626.3798432688, 5588179.698741777, 3015426.663665117)],
146
+ isFilter: false,
147
+ colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
148
+ colorTable: that._globaOptions.viewModel.colorTable
149
+ });
150
+
151
+ that._slopeAnalysis.destroy();
152
+
153
+ that._slopeAnalysis = null;
143
154
  this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
144
155
  if (shape) {
145
156
  that._globaOptions.viewModel.positions = shape._controlPoints; // 实例化分析对象
@@ -213,6 +224,7 @@ class SlopeAnalysisViewModel {
213
224
  color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
214
225
  });
215
226
  } else {
227
+ // this.clear();
216
228
  if (this._globaOptions._drawManager) {
217
229
  this._globaOptions._drawManager.startDraw("polygon", {
218
230
  clampToGround: true