@kq_npm/client3d_webgl_vue 3.3.0-beta → 3.3.1-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/adddata/index.js CHANGED
@@ -897,6 +897,27 @@ class AddDataViewModel {
897
897
  cb && cb(node);
898
898
  break;
899
899
 
900
+ case "mvt":
901
+ layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
902
+ name: name,
903
+ style: url
904
+ }));
905
+ this.flyToLayer(layer);
906
+ node = {
907
+ guid: layer.guid,
908
+ name: name,
909
+ visible: true,
910
+ serverType: "imagerylayer",
911
+ lsType: "ls",
912
+ url: url,
913
+ addType: type
914
+ };
915
+
916
+ this._layerManager.addTempLayerNode(node);
917
+
918
+ cb && cb(node);
919
+ break;
920
+
900
921
  case "wms":
901
922
  this._viewer.addWMSLayerGroup(url).then(group => {
902
923
  node = {
@@ -933,6 +954,7 @@ class AddDataViewModel {
933
954
  break;
934
955
 
935
956
  case "wmts":
957
+ case "kqgistileserver":
936
958
  this._viewer.addWMTSLayerGroup(url).then(group => {
937
959
  node = {
938
960
  guid: group.guid,
@@ -1332,9 +1354,9 @@ const __default__ = {
1332
1354
  description: language.value.imagertyDataflowServerdescription
1333
1355
  }, {
1334
1356
  type: "kqgistileserver",
1335
- name: language.value.KQGISTileServer + "(未实现)",
1357
+ name: language.value.KQGISTileServer,
1336
1358
  namePlaceholder: language.value.unnamedLayer,
1337
- urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
1359
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile/wmts",
1338
1360
  description: language.value.imagertyTileServerdescription
1339
1361
  }, {
1340
1362
  type: "arcgismapserver",
@@ -1370,11 +1392,11 @@ const __default__ = {
1370
1392
  type: "geojson",
1371
1393
  name: language.value.GeoJson,
1372
1394
  namePlaceholder: language.value.unnamedLayer,
1373
- urlPlaceholder: language.value.format + ": http://<host>:<port>/xxx.geojson",
1395
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
1374
1396
  description: language.value.imagertyGeoJsondescription
1375
1397
  }, {
1376
1398
  type: "mvt",
1377
- name: language.value.MVT + "(未实现)",
1399
+ name: language.value.MVT,
1378
1400
  namePlaceholder: language.value.unnamedLayer,
1379
1401
  urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
1380
1402
  description: language.value.imagertyMVTdescription
package/index.js CHANGED
@@ -2626,16 +2626,13 @@ class ScenceViewViewModel extends (mitt_default()) {
2626
2626
  } //销毁
2627
2627
 
2628
2628
 
2629
- destroy() {
2630
- if (this._removeEventListener) {
2631
- this._removeEventListener();
2632
-
2633
- this._removeEventListener = null;
2634
- }
2635
-
2636
- this._viewer = null;
2637
- this._drawManager = null;
2638
- this._layerManager = null;
2629
+ destroy() {// if (this._removeEventListener) {
2630
+ // this._removeEventListener();
2631
+ // this._removeEventListener = null;
2632
+ // }
2633
+ // this._viewer = null;
2634
+ // this._drawManager = null;
2635
+ // this._layerManager = null;
2639
2636
  } //创建底图
2640
2637
 
2641
2638
 
@@ -9477,6 +9474,7 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
9477
9474
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
9478
9475
 
9479
9476
 
9477
+
9480
9478
  //通视分析逻辑类
9481
9479
 
9482
9480
  class SightlineAnalysisViewModel {
@@ -9490,6 +9488,7 @@ class SightlineAnalysisViewModel {
9490
9488
  //创建的divpoint集合
9491
9489
  //拾取的点位集合
9492
9490
  //高亮的障碍物的id集合
9491
+ // 点位图标billboards集合
9493
9492
  constructor(scenceView, options) {
9494
9493
  _defineProperty(this, "_viewer", null);
9495
9494
 
@@ -9511,6 +9510,8 @@ class SightlineAnalysisViewModel {
9511
9510
 
9512
9511
  _defineProperty(this, "_highlightIds", []);
9513
9512
 
9513
+ _defineProperty(this, "_billboards", []);
9514
+
9514
9515
  this._viewer = scenceView._viewer;
9515
9516
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
9516
9517
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
@@ -9536,6 +9537,8 @@ class SightlineAnalysisViewModel {
9536
9537
  let that = this;
9537
9538
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
9538
9539
  if (shape && shape.type === "marker") {
9540
+ that.createBillboard(shape.position);
9541
+
9539
9542
  if (that._addType === 1) {
9540
9543
  that._sightlineAnalysis.setSeePoint(shape.position);
9541
9544
 
@@ -9552,6 +9555,18 @@ class SightlineAnalysisViewModel {
9552
9555
  that._drawManager.clear();
9553
9556
  }
9554
9557
  });
9558
+ } // 创建图标
9559
+
9560
+
9561
+ createBillboard(pos) {
9562
+ this._billboards.push(this._viewer.entities.add({
9563
+ position: pos,
9564
+ billboard: {
9565
+ image: this._addType === 1 ? const_image_namespaceObject.OBSERVATION_POINT : const_image_namespaceObject.TARGET_POINT,
9566
+ verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
9567
+ scale: 0.15
9568
+ }
9569
+ }));
9555
9570
  } //创建点位置
9556
9571
 
9557
9572
 
@@ -9648,7 +9663,7 @@ class SightlineAnalysisViewModel {
9648
9663
  this._addType = 1;
9649
9664
 
9650
9665
  this._drawManager.startDraw("point", {
9651
- image: null
9666
+ image: const_image_namespaceObject.OBSERVATION_POINT
9652
9667
  });
9653
9668
  } //添加目标点
9654
9669
 
@@ -9658,7 +9673,7 @@ class SightlineAnalysisViewModel {
9658
9673
  this._addType = 2;
9659
9674
 
9660
9675
  this._drawManager.startDraw("point", {
9661
- image: null
9676
+ image: const_image_namespaceObject.TARGET_POINT
9662
9677
  });
9663
9678
  } //清除显示结果
9664
9679
 
@@ -9670,6 +9685,15 @@ class SightlineAnalysisViewModel {
9670
9685
  }
9671
9686
 
9672
9687
  this._pointCollection = [];
9688
+ } // 清楚billboards
9689
+
9690
+
9691
+ clearBillboards() {
9692
+ for (var i = 0; i < this._billboards.length; i++) {
9693
+ this._viewer.entities.remove(this._billboards[i]);
9694
+ }
9695
+
9696
+ this._billboards = [];
9673
9697
  } //清除全部
9674
9698
 
9675
9699
 
@@ -9678,6 +9702,7 @@ class SightlineAnalysisViewModel {
9678
9702
 
9679
9703
  this.clearDisplay();
9680
9704
  this.clearHighlights();
9705
+ this.clearBillboards();
9681
9706
  this._sightlineAnalysis && this._sightlineAnalysis.remove();
9682
9707
  } //销毁
9683
9708
 
@@ -22319,6 +22344,27 @@ class AddDataViewModel {
22319
22344
  cb && cb(node);
22320
22345
  break;
22321
22346
 
22347
+ case "mvt":
22348
+ layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
22349
+ name: name,
22350
+ style: url
22351
+ }));
22352
+ this.flyToLayer(layer);
22353
+ node = {
22354
+ guid: layer.guid,
22355
+ name: name,
22356
+ visible: true,
22357
+ serverType: "imagerylayer",
22358
+ lsType: "ls",
22359
+ url: url,
22360
+ addType: type
22361
+ };
22362
+
22363
+ this._layerManager.addTempLayerNode(node);
22364
+
22365
+ cb && cb(node);
22366
+ break;
22367
+
22322
22368
  case "wms":
22323
22369
  this._viewer.addWMSLayerGroup(url).then(group => {
22324
22370
  node = {
@@ -22355,6 +22401,7 @@ class AddDataViewModel {
22355
22401
  break;
22356
22402
 
22357
22403
  case "wmts":
22404
+ case "kqgistileserver":
22358
22405
  this._viewer.addWMTSLayerGroup(url).then(group => {
22359
22406
  node = {
22360
22407
  guid: group.guid,
@@ -22754,9 +22801,9 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
22754
22801
  description: language.value.imagertyDataflowServerdescription
22755
22802
  }, {
22756
22803
  type: "kqgistileserver",
22757
- name: language.value.KQGISTileServer + "(未实现)",
22804
+ name: language.value.KQGISTileServer,
22758
22805
  namePlaceholder: language.value.unnamedLayer,
22759
- urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
22806
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile/wmts",
22760
22807
  description: language.value.imagertyTileServerdescription
22761
22808
  }, {
22762
22809
  type: "arcgismapserver",
@@ -22792,11 +22839,11 @@ const AddDatavue_type_script_setup_true_lang_js_default_ = {
22792
22839
  type: "geojson",
22793
22840
  name: language.value.GeoJson,
22794
22841
  namePlaceholder: language.value.unnamedLayer,
22795
- urlPlaceholder: language.value.format + ": http://<host>:<port>/xxx.geojson",
22842
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
22796
22843
  description: language.value.imagertyGeoJsondescription
22797
22844
  }, {
22798
22845
  type: "mvt",
22799
- name: language.value.MVT + "(未实现)",
22846
+ name: language.value.MVT,
22800
22847
  namePlaceholder: language.value.unnamedLayer,
22801
22848
  urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
22802
22849
  description: language.value.imagertyMVTdescription
@@ -23287,7 +23334,10 @@ class ParticleEffectViewModel {
23287
23334
  scenceView._viewer.clock.shouldAnimate = true;
23288
23335
  scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
23289
23336
  this._scene = scenceView._viewer.scene;
23290
- this._drawManager = scenceView._drawManager;
23337
+ this._drawManager = scenceView._drawManager; // 启动连续绘制
23338
+
23339
+ this._drawManager.enableMultiDraw(true);
23340
+
23291
23341
  _gravityScratch = new Cesium.Cartesian3();
23292
23342
  var that = this;
23293
23343
  that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
@@ -23390,6 +23440,8 @@ class ParticleEffectViewModel {
23390
23440
  clear() {
23391
23441
  this._drawManager.stopDraw();
23392
23442
 
23443
+ this._drawManager.clear();
23444
+
23393
23445
  for (let i = 0; i < this._particleSystemList.length; i++) {
23394
23446
  this._scene.primitives.remove(this._particleSystemList[i]);
23395
23447
  }
@@ -23399,7 +23451,10 @@ class ParticleEffectViewModel {
23399
23451
 
23400
23452
 
23401
23453
  destroy() {
23402
- this.clear(); //移除监听事件
23454
+ this.clear();
23455
+
23456
+ this._drawManager.enableMultiDraw(false); //移除监听事件
23457
+
23403
23458
 
23404
23459
  this._removeEventListener && this._removeEventListener();
23405
23460
  this._removeEventListener = null;
@@ -24430,6 +24485,8 @@ class WeatherEffectViewModel {
24430
24485
  clear() {
24431
24486
  this._drawManager.stopDraw();
24432
24487
 
24488
+ this._drawManager.clear();
24489
+
24433
24490
  this._particleSystem && this._scene.primitives.remove(this._particleSystem);
24434
24491
  this._particleSystem = null;
24435
24492
  } //销毁
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.3.0-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","css-vars-ponyfill":"^2.4.8","html2canvas":"^1.4.1","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"3.3.1-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","css-vars-ponyfill":"^2.4.8","html2canvas":"^1.4.1","xe-utils":"^3.5.4"}}
@@ -189,7 +189,10 @@ class ParticleEffectViewModel {
189
189
  scenceView._viewer.clock.shouldAnimate = true;
190
190
  scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
191
191
  this._scene = scenceView._viewer.scene;
192
- this._drawManager = scenceView._drawManager;
192
+ this._drawManager = scenceView._drawManager; // 启动连续绘制
193
+
194
+ this._drawManager.enableMultiDraw(true);
195
+
193
196
  _gravityScratch = new Cesium.Cartesian3();
194
197
  var that = this;
195
198
  that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
@@ -292,6 +295,8 @@ class ParticleEffectViewModel {
292
295
  clear() {
293
296
  this._drawManager.stopDraw();
294
297
 
298
+ this._drawManager.clear();
299
+
295
300
  for (let i = 0; i < this._particleSystemList.length; i++) {
296
301
  this._scene.primitives.remove(this._particleSystemList[i]);
297
302
  }
@@ -301,7 +306,10 @@ class ParticleEffectViewModel {
301
306
 
302
307
 
303
308
  destroy() {
304
- this.clear(); //移除监听事件
309
+ this.clear();
310
+
311
+ this._drawManager.enableMultiDraw(false); //移除监听事件
312
+
305
313
 
306
314
  this._removeEventListener && this._removeEventListener();
307
315
  this._removeEventListener = null;
@@ -821,6 +821,27 @@ class AddDataViewModel {
821
821
  cb && cb(node);
822
822
  break;
823
823
 
824
+ case "mvt":
825
+ layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
826
+ name: name,
827
+ style: url
828
+ }));
829
+ this.flyToLayer(layer);
830
+ node = {
831
+ guid: layer.guid,
832
+ name: name,
833
+ visible: true,
834
+ serverType: "imagerylayer",
835
+ lsType: "ls",
836
+ url: url,
837
+ addType: type
838
+ };
839
+
840
+ this._layerManager.addTempLayerNode(node);
841
+
842
+ cb && cb(node);
843
+ break;
844
+
824
845
  case "wms":
825
846
  this._viewer.addWMSLayerGroup(url).then(group => {
826
847
  node = {
@@ -857,6 +878,7 @@ class AddDataViewModel {
857
878
  break;
858
879
 
859
880
  case "wmts":
881
+ case "kqgistileserver":
860
882
  this._viewer.addWMTSLayerGroup(url).then(group => {
861
883
  node = {
862
884
  guid: group.guid,
@@ -1256,9 +1278,9 @@ const __default__ = {
1256
1278
  description: language.value.imagertyDataflowServerdescription
1257
1279
  }, {
1258
1280
  type: "kqgistileserver",
1259
- name: language.value.KQGISTileServer + "(未实现)",
1281
+ name: language.value.KQGISTileServer,
1260
1282
  namePlaceholder: language.value.unnamedLayer,
1261
- urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
1283
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile/wmts",
1262
1284
  description: language.value.imagertyTileServerdescription
1263
1285
  }, {
1264
1286
  type: "arcgismapserver",
@@ -1294,11 +1316,11 @@ const __default__ = {
1294
1316
  type: "geojson",
1295
1317
  name: language.value.GeoJson,
1296
1318
  namePlaceholder: language.value.unnamedLayer,
1297
- urlPlaceholder: language.value.format + ": http://<host>:<port>/xxx.geojson",
1319
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
1298
1320
  description: language.value.imagertyGeoJsondescription
1299
1321
  }, {
1300
1322
  type: "mvt",
1301
- name: language.value.MVT + "(未实现)",
1323
+ name: language.value.MVT,
1302
1324
  namePlaceholder: language.value.unnamedLayer,
1303
1325
  urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
1304
1326
  description: language.value.imagertyMVTdescription
@@ -14832,7 +14854,10 @@ class ParticleEffectViewModel {
14832
14854
  scenceView._viewer.clock.shouldAnimate = true;
14833
14855
  scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
14834
14856
  this._scene = scenceView._viewer.scene;
14835
- this._drawManager = scenceView._drawManager;
14857
+ this._drawManager = scenceView._drawManager; // 启动连续绘制
14858
+
14859
+ this._drawManager.enableMultiDraw(true);
14860
+
14836
14861
  _gravityScratch = new Cesium.Cartesian3();
14837
14862
  var that = this;
14838
14863
  that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
@@ -14935,6 +14960,8 @@ class ParticleEffectViewModel {
14935
14960
  clear() {
14936
14961
  this._drawManager.stopDraw();
14937
14962
 
14963
+ this._drawManager.clear();
14964
+
14938
14965
  for (let i = 0; i < this._particleSystemList.length; i++) {
14939
14966
  this._scene.primitives.remove(this._particleSystemList[i]);
14940
14967
  }
@@ -14944,7 +14971,10 @@ class ParticleEffectViewModel {
14944
14971
 
14945
14972
 
14946
14973
  destroy() {
14947
- this.clear(); //移除监听事件
14974
+ this.clear();
14975
+
14976
+ this._drawManager.enableMultiDraw(false); //移除监听事件
14977
+
14948
14978
 
14949
14979
  this._removeEventListener && this._removeEventListener();
14950
14980
  this._removeEventListener = null;
@@ -20039,9 +20069,12 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
20039
20069
 
20040
20070
 
20041
20071
  /* harmony default export */ var style_divpoint = (divpoint/* default.locals */.Z.locals || {});
20072
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
20073
+ var const_image_ = __webpack_require__(9702);
20042
20074
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
20043
20075
 
20044
20076
 
20077
+
20045
20078
  //通视分析逻辑类
20046
20079
 
20047
20080
  class SightlineAnalysisViewModel {
@@ -20055,6 +20088,7 @@ class SightlineAnalysisViewModel {
20055
20088
  //创建的divpoint集合
20056
20089
  //拾取的点位集合
20057
20090
  //高亮的障碍物的id集合
20091
+ // 点位图标billboards集合
20058
20092
  constructor(scenceView, options) {
20059
20093
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
20060
20094
 
@@ -20076,6 +20110,8 @@ class SightlineAnalysisViewModel {
20076
20110
 
20077
20111
  (0,defineProperty/* default */.Z)(this, "_highlightIds", []);
20078
20112
 
20113
+ (0,defineProperty/* default */.Z)(this, "_billboards", []);
20114
+
20079
20115
  this._viewer = scenceView._viewer;
20080
20116
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
20081
20117
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
@@ -20101,6 +20137,8 @@ class SightlineAnalysisViewModel {
20101
20137
  let that = this;
20102
20138
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
20103
20139
  if (shape && shape.type === "marker") {
20140
+ that.createBillboard(shape.position);
20141
+
20104
20142
  if (that._addType === 1) {
20105
20143
  that._sightlineAnalysis.setSeePoint(shape.position);
20106
20144
 
@@ -20117,6 +20155,18 @@ class SightlineAnalysisViewModel {
20117
20155
  that._drawManager.clear();
20118
20156
  }
20119
20157
  });
20158
+ } // 创建图标
20159
+
20160
+
20161
+ createBillboard(pos) {
20162
+ this._billboards.push(this._viewer.entities.add({
20163
+ position: pos,
20164
+ billboard: {
20165
+ image: this._addType === 1 ? const_image_.OBSERVATION_POINT : const_image_.TARGET_POINT,
20166
+ verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
20167
+ scale: 0.15
20168
+ }
20169
+ }));
20120
20170
  } //创建点位置
20121
20171
 
20122
20172
 
@@ -20213,7 +20263,7 @@ class SightlineAnalysisViewModel {
20213
20263
  this._addType = 1;
20214
20264
 
20215
20265
  this._drawManager.startDraw("point", {
20216
- image: null
20266
+ image: const_image_.OBSERVATION_POINT
20217
20267
  });
20218
20268
  } //添加目标点
20219
20269
 
@@ -20223,7 +20273,7 @@ class SightlineAnalysisViewModel {
20223
20273
  this._addType = 2;
20224
20274
 
20225
20275
  this._drawManager.startDraw("point", {
20226
- image: null
20276
+ image: const_image_.TARGET_POINT
20227
20277
  });
20228
20278
  } //清除显示结果
20229
20279
 
@@ -20235,6 +20285,15 @@ class SightlineAnalysisViewModel {
20235
20285
  }
20236
20286
 
20237
20287
  this._pointCollection = [];
20288
+ } // 清楚billboards
20289
+
20290
+
20291
+ clearBillboards() {
20292
+ for (var i = 0; i < this._billboards.length; i++) {
20293
+ this._viewer.entities.remove(this._billboards[i]);
20294
+ }
20295
+
20296
+ this._billboards = [];
20238
20297
  } //清除全部
20239
20298
 
20240
20299
 
@@ -20243,6 +20302,7 @@ class SightlineAnalysisViewModel {
20243
20302
 
20244
20303
  this.clearDisplay();
20245
20304
  this.clearHighlights();
20305
+ this.clearBillboards();
20246
20306
  this._sightlineAnalysis && this._sightlineAnalysis.remove();
20247
20307
  } //销毁
20248
20308
 
@@ -24354,6 +24414,8 @@ class WeatherEffectViewModel {
24354
24414
  clear() {
24355
24415
  this._drawManager.stopDraw();
24356
24416
 
24417
+ this._drawManager.clear();
24418
+
24357
24419
  this._particleSystem && this._scene.primitives.remove(this._particleSystem);
24358
24420
  this._particleSystem = null;
24359
24421
  } //销毁
@@ -27849,16 +27911,13 @@ class ScenceViewViewModel extends (mitt_default()) {
27849
27911
  } //销毁
27850
27912
 
27851
27913
 
27852
- destroy() {
27853
- if (this._removeEventListener) {
27854
- this._removeEventListener();
27855
-
27856
- this._removeEventListener = null;
27857
- }
27858
-
27859
- this._viewer = null;
27860
- this._drawManager = null;
27861
- this._layerManager = null;
27914
+ destroy() {// if (this._removeEventListener) {
27915
+ // this._removeEventListener();
27916
+ // this._removeEventListener = null;
27917
+ // }
27918
+ // this._viewer = null;
27919
+ // this._drawManager = null;
27920
+ // this._layerManager = null;
27862
27921
  } //创建底图
27863
27922
 
27864
27923
 
@@ -379,6 +379,13 @@ module.exports = require("core-js/modules/es.array.includes.js");
379
379
 
380
380
  /***/ }),
381
381
 
382
+ /***/ 9702:
383
+ /***/ (function(module) {
384
+
385
+ module.exports = require("@kq_npm/client_common_vue/_utils/const-image");
386
+
387
+ /***/ }),
388
+
382
389
  /***/ 826:
383
390
  /***/ (function(module) {
384
391
 
@@ -542,9 +549,12 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
542
549
 
543
550
 
544
551
  /* harmony default export */ var style_divpoint = (divpoint/* default.locals */.Z.locals || {});
552
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
553
+ var const_image_ = __webpack_require__(9702);
545
554
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
546
555
 
547
556
 
557
+
548
558
  //通视分析逻辑类
549
559
 
550
560
  class SightlineAnalysisViewModel {
@@ -558,6 +568,7 @@ class SightlineAnalysisViewModel {
558
568
  //创建的divpoint集合
559
569
  //拾取的点位集合
560
570
  //高亮的障碍物的id集合
571
+ // 点位图标billboards集合
561
572
  constructor(scenceView, options) {
562
573
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
563
574
 
@@ -579,6 +590,8 @@ class SightlineAnalysisViewModel {
579
590
 
580
591
  (0,defineProperty/* default */.Z)(this, "_highlightIds", []);
581
592
 
593
+ (0,defineProperty/* default */.Z)(this, "_billboards", []);
594
+
582
595
  this._viewer = scenceView._viewer;
583
596
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
584
597
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
@@ -604,6 +617,8 @@ class SightlineAnalysisViewModel {
604
617
  let that = this;
605
618
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
606
619
  if (shape && shape.type === "marker") {
620
+ that.createBillboard(shape.position);
621
+
607
622
  if (that._addType === 1) {
608
623
  that._sightlineAnalysis.setSeePoint(shape.position);
609
624
 
@@ -620,6 +635,18 @@ class SightlineAnalysisViewModel {
620
635
  that._drawManager.clear();
621
636
  }
622
637
  });
638
+ } // 创建图标
639
+
640
+
641
+ createBillboard(pos) {
642
+ this._billboards.push(this._viewer.entities.add({
643
+ position: pos,
644
+ billboard: {
645
+ image: this._addType === 1 ? const_image_.OBSERVATION_POINT : const_image_.TARGET_POINT,
646
+ verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
647
+ scale: 0.15
648
+ }
649
+ }));
623
650
  } //创建点位置
624
651
 
625
652
 
@@ -716,7 +743,7 @@ class SightlineAnalysisViewModel {
716
743
  this._addType = 1;
717
744
 
718
745
  this._drawManager.startDraw("point", {
719
- image: null
746
+ image: const_image_.OBSERVATION_POINT
720
747
  });
721
748
  } //添加目标点
722
749
 
@@ -726,7 +753,7 @@ class SightlineAnalysisViewModel {
726
753
  this._addType = 2;
727
754
 
728
755
  this._drawManager.startDraw("point", {
729
- image: null
756
+ image: const_image_.TARGET_POINT
730
757
  });
731
758
  } //清除显示结果
732
759
 
@@ -738,6 +765,15 @@ class SightlineAnalysisViewModel {
738
765
  }
739
766
 
740
767
  this._pointCollection = [];
768
+ } // 清楚billboards
769
+
770
+
771
+ clearBillboards() {
772
+ for (var i = 0; i < this._billboards.length; i++) {
773
+ this._viewer.entities.remove(this._billboards[i]);
774
+ }
775
+
776
+ this._billboards = [];
741
777
  } //清除全部
742
778
 
743
779
 
@@ -746,6 +782,7 @@ class SightlineAnalysisViewModel {
746
782
 
747
783
  this.clearDisplay();
748
784
  this.clearHighlights();
785
+ this.clearBillboards();
749
786
  this._sightlineAnalysis && this._sightlineAnalysis.remove();
750
787
  } //销毁
751
788
 
@@ -258,6 +258,8 @@ class WeatherEffectViewModel {
258
258
  clear() {
259
259
  this._drawManager.stopDraw();
260
260
 
261
+ this._drawManager.clear();
262
+
261
263
  this._particleSystem && this._scene.primitives.remove(this._particleSystem);
262
264
  this._particleSystem = null;
263
265
  } //销毁