@kq_npm/client3d_webgl_vue 2.8.8-beta → 2.9.0-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.
@@ -1019,12 +1019,6 @@ const __default__ = {
1019
1019
  // namePlaceholder: language.value.unnamedLayer,
1020
1020
  // urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<servername>/info.xml',
1021
1021
  // description: language.value.imagertyObTerrainTileFiledescription
1022
- // }, {
1023
- // type: 'stkterrain',
1024
- // name: language.value.StkTerrainTileFile,
1025
- // namePlaceholder: language.value.unnamedLayer,
1026
- // urlPlaceholder: language.value.format +':http://<host>:<port>/xxx/<foldername>/',
1027
- // description: language.value.imagertyStkTerrainTileFiledescription
1028
1022
  // },
1029
1023
  {
1030
1024
  type: 'kqgis3dserver',
@@ -1080,38 +1074,43 @@ const __default__ = {
1080
1074
  namePlaceholder: language.value.unnamedLayer,
1081
1075
  urlPlaceholder: language.value.format + ':http://<host>:<port>/tileset.json',
1082
1076
  description: language.value.imagerty3DTilesFiledescription
1077
+ }, {
1078
+ type: 'stkterrain',
1079
+ name: language.value.StkTerrainTileFile,
1080
+ namePlaceholder: language.value.unnamedLayer,
1081
+ urlPlaceholder: language.value.format + ':http://<host>:<port>/xxx/<foldername>/',
1082
+ description: language.value.imagertyStkTerrainTileFiledescription
1083
+ }, {
1084
+ type: 'geojson',
1085
+ name: language.value.GeoJson,
1086
+ namePlaceholder: language.value.unnamedLayer,
1087
+ urlPlaceholder: language.value.format + ': http://<host>:<port>/xxx.geojson',
1088
+ description: language.value.imagertyGeoJsondescription
1089
+ }, {
1090
+ type: 'mvt',
1091
+ name: language.value.MVT + '(未实现)',
1092
+ namePlaceholder: language.value.unnamedLayer,
1093
+ urlPlaceholder: language.value.format + ':http://<host>:<port>/mvt/style.json',
1094
+ description: language.value.imagertyMVTdescription
1083
1095
  }
1084
1096
  /*, {
1085
- type: 'wfs',
1086
- name: language.value.OGCWFS,
1087
- namePlaceholder: language.value.wfsLayer,
1088
- urlPlaceholder: language.value.format +':http://<host>:<port>/ArcGIS/rest/services/<servername>/wfs',
1089
- description: language.value.imagertyOGCWFSdescription
1090
- }, {
1091
- type: 'mvt',
1092
- name: language.value.MVT,
1093
- namePlaceholder: language.value.unnamedLayer,
1094
- urlPlaceholder: language.value.format +':http://<host>:<port>/mvt/tiles/{z}/{x}/{y}.mvt',
1095
- stylePlaceholder: language.value.format +':http://<host>:<port>/mvt/style.json',
1096
- description: language.value.imagertyMVTdescription
1097
- }, {
1098
- type: 'geojson',
1099
- name: language.value.GeoJson,
1100
- namePlaceholder: language.value.unnamedLayer,
1101
- urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.geojson',
1102
- description: language.value.imagertyGeoJsondescription
1097
+ type: 'wfs',
1098
+ name: language.value.OGCWFS,
1099
+ namePlaceholder: language.value.wfsLayer,
1100
+ urlPlaceholder: language.value.format +':http://<host>:<port>/ArcGIS/rest/services/<servername>/wfs',
1101
+ description: language.value.imagertyOGCWFSdescription
1103
1102
  }, {
1104
- type: 'kml',
1105
- name: language.value.KML,
1106
- namePlaceholder: language.value.unnamedLayer,
1107
- urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
1108
- description: language.value.imagertyKMLdescription
1103
+ type: 'kml',
1104
+ name: language.value.KML,
1105
+ namePlaceholder: language.value.unnamedLayer,
1106
+ urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.kml',
1107
+ description: language.value.imagertyKMLdescription
1109
1108
  }, {
1110
- type: 'czml',
1111
- name: language.value.CZML,
1112
- namePlaceholder: language.value.unnamedLayer,
1113
- urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
1114
- description: language.value.imagertyCZMLdescription
1109
+ type: 'czml',
1110
+ name: language.value.CZML,
1111
+ namePlaceholder: language.value.unnamedLayer,
1112
+ urlPlaceholder: language.value.format +': http://<host>:<port>/xxx/<servername>/xxx.czml',
1113
+ description: language.value.imagertyCZMLdescription
1115
1114
  }*/
1116
1115
  ];
1117
1116
  dataSourceType.value = dataSourceTypeList.value[0];
@@ -1535,8 +1534,8 @@ AddData.install = (Vue, opts) => {
1535
1534
  /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
1536
1535
 
1537
1536
 
1538
- /**
1539
- * 坡向逻辑类
1537
+ /**
1538
+ * 坡向逻辑类
1540
1539
  **/
1541
1540
  class AspectAnalysisViewModel {
1542
1541
  // 坡向三维对象
@@ -2037,16 +2036,16 @@ class BaseterrainGalleryViewModel {
2037
2036
  subdomains: ["8", "9", "10", "11", "12"]
2038
2037
  });
2039
2038
  }
2040
- /**
2041
- * 无地形
2039
+ /**
2040
+ * 无地形
2042
2041
  */
2043
2042
 
2044
2043
 
2045
2044
  terrainNo() {
2046
2045
  this._baseterrainGallery.terrainNo = new window.Cesium.EllipsoidTerrainProvider();
2047
2046
  }
2048
- /**
2049
- * cesium全球地形
2047
+ /**
2048
+ * cesium全球地形
2050
2049
  */
2051
2050
 
2052
2051
 
@@ -2057,16 +2056,16 @@ class BaseterrainGalleryViewModel {
2057
2056
  requestWaterMask: true
2058
2057
  });
2059
2058
  }
2060
- /**
2061
- * 清理地图
2059
+ /**
2060
+ * 清理地图
2062
2061
  */
2063
2062
 
2064
2063
 
2065
2064
  clear() {
2066
2065
  this.setTerrainType(2);
2067
2066
  }
2068
- /**
2069
- * 注销
2067
+ /**
2068
+ * 注销
2070
2069
  */
2071
2070
 
2072
2071
 
@@ -2240,7 +2239,7 @@ const __default__ = {
2240
2239
  span: 24
2241
2240
  }, {
2242
2241
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, null, {
2243
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-row @click=\"clickHandler(0)\" :class=\"currentIndex == 0 ? 'active' : ''\">\n <kq-col :span=\"5\">\n <img :src=\"TDT_TERRAiIN_URL\" alt=\"\" />\n </kq-col>\n <kq-col :span=\"19\">{{ language.tiandituTerrain }} </kq-col>\n </kq-row> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
2242
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-row @click=\"clickHandler(0)\" :class=\"currentIndex == 0 ? 'active' : ''\">\r\n <kq-col :span=\"5\">\r\n <img :src=\"TDT_TERRAiIN_URL\" alt=\"\" />\r\n </kq-col>\r\n <kq-col :span=\"19\">{{ language.tiandituTerrain }} </kq-col>\r\n </kq-row> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
2244
2243
  onClick: _cache[0] || (_cache[0] = $event => clickHandler(1)),
2245
2244
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentIndex) == 1 ? 'active' : '')
2246
2245
  }, {
@@ -3513,8 +3512,8 @@ const __default__ = {
3513
3512
 
3514
3513
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
3515
3514
  let viewModel = null;
3516
- /**
3517
- * 勾选图层逻辑
3515
+ /**
3516
+ * 勾选图层逻辑
3518
3517
  */
3519
3518
 
3520
3519
  function changeLayer(values) {
@@ -5157,6 +5156,18 @@ const __default__ = {
5157
5156
  showShadow: {
5158
5157
  type: Boolean,
5159
5158
  default: false
5159
+ },
5160
+ // 加载外部飞行路径数据方法
5161
+ loadFlightPath: {
5162
+ type: Function
5163
+ },
5164
+ // 外部保存飞行路径方法
5165
+ saveFlightPath: {
5166
+ type: Function
5167
+ },
5168
+ // 外部删除飞行路径方法
5169
+ deleteFlightPath: {
5170
+ type: Function
5160
5171
  }
5161
5172
  },
5162
5173
 
@@ -5197,7 +5208,17 @@ const __default__ = {
5197
5208
  pathList.forEach(path => {
5198
5209
  path.isPlaying = false;
5199
5210
  });
5200
- });
5211
+ }); //加载外部数据
5212
+
5213
+ if (props.loadFlightPath) {
5214
+ props.loadFlightPath(dataList => {
5215
+ dataList = JSON.parse(JSON.stringify(dataList));
5216
+ dataList.forEach(path => {
5217
+ path.isPlaying = false;
5218
+ pathList.push(path);
5219
+ });
5220
+ });
5221
+ }
5201
5222
  }
5202
5223
  });
5203
5224
  }); // 销毁
@@ -5252,7 +5273,11 @@ const __default__ = {
5252
5273
  pathPlayIndex = -1;
5253
5274
  }
5254
5275
 
5255
- pathList.splice(dropDownPath.index, 1);
5276
+ pathList.splice(dropDownPath.index, 1); // 外部删除数据
5277
+
5278
+ if (props.deleteFlightPath) {
5279
+ props.deleteFlightPath(dropDownPath.guid);
5280
+ }
5256
5281
  }
5257
5282
  } //路径播放
5258
5283
 
@@ -5400,15 +5425,33 @@ const __default__ = {
5400
5425
  if (dropDownPath) {
5401
5426
  var editPath = pathList[dropDownPath.index];
5402
5427
  editPath.name = pathName.value;
5403
- editPath.xmlString = xmlString;
5428
+ editPath.xmlString = xmlString; // 外部保存数据
5429
+
5430
+ if (props.saveFlightPath) {
5431
+ props.saveFlightPath({
5432
+ guid: editPath.guid,
5433
+ name: editPath.name,
5434
+ xmlString: editPath.xmlString
5435
+ });
5436
+ }
5404
5437
  }
5405
5438
  } else {
5406
5439
  //新增路径
5407
- pathList.push({
5440
+ var path = {
5441
+ guid: Cesium.createGuid(),
5408
5442
  name: pathName.value,
5409
5443
  xmlString: xmlString,
5410
5444
  isPlaying: false
5411
- });
5445
+ };
5446
+ pathList.push(path); // 外部保存数据
5447
+
5448
+ if (props.saveFlightPath) {
5449
+ props.saveFlightPath({
5450
+ guid: path.guid,
5451
+ name: path.name,
5452
+ xmlString: path.xmlString
5453
+ });
5454
+ }
5412
5455
  }
5413
5456
 
5414
5457
  cancel();
@@ -5430,11 +5473,21 @@ const __default__ = {
5430
5473
  var name = file.name.split(".")[0];
5431
5474
  viewModel.fromXmlFile(file.raw).then(() => {
5432
5475
  var xmlString = viewModel.asXmlString();
5433
- pathList.push({
5476
+ var path = {
5477
+ guid: Cesium.createGuid(),
5434
5478
  name: name,
5435
5479
  xmlString: xmlString,
5436
5480
  isPlaying: false
5437
- });
5481
+ };
5482
+ pathList.push(path); // 外部保存数据
5483
+
5484
+ if (props.saveFlightPath) {
5485
+ props.saveFlightPath({
5486
+ guid: path.guid,
5487
+ name: path.name,
5488
+ xmlString: path.xmlString
5489
+ });
5490
+ }
5438
5491
  });
5439
5492
  } //导出文件
5440
5493
 
@@ -9297,7 +9350,7 @@ const __default__ = {
9297
9350
 
9298
9351
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
9299
9352
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
9300
- label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isolineMinHeight
9353
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isolineMaxHeight
9301
9354
  }, {
9302
9355
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
9303
9356
  style: {
@@ -10125,7 +10178,7 @@ const __default__ = {
10125
10178
 
10126
10179
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
10127
10180
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
10128
- label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isolineMinHeight
10181
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isolineMaxHeight
10129
10182
  }, {
10130
10183
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
10131
10184
  style: {
@@ -10491,6 +10544,16 @@ class MeasureViewModel {
10491
10544
 
10492
10545
  azimuthMeasure() {
10493
10546
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
10547
+ } //坐标测量
10548
+
10549
+
10550
+ coordinateMeasure() {
10551
+ this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
10552
+ } //结束测量
10553
+
10554
+
10555
+ stopMeasure() {
10556
+ this._measureHandler.stopMeasure();
10494
10557
  } //更新距离测量单位
10495
10558
 
10496
10559
 
@@ -10608,6 +10671,7 @@ const _hoisted_9 = {
10608
10671
  class: "kq-measure3d-result-panel"
10609
10672
  };
10610
10673
  const _hoisted_10 = {
10674
+ key: 0,
10611
10675
  class: "panel"
10612
10676
  };
10613
10677
  const _hoisted_11 = {
@@ -10657,6 +10721,28 @@ const _hoisted_24 = {
10657
10721
  const _hoisted_25 = {
10658
10722
  class: "res"
10659
10723
  };
10724
+ const _hoisted_26 = {
10725
+ class: "tit"
10726
+ };
10727
+ const _hoisted_27 = {
10728
+ class: "res"
10729
+ };
10730
+ const _hoisted_28 = {
10731
+ class: "tit"
10732
+ };
10733
+ const _hoisted_29 = {
10734
+ class: "res"
10735
+ };
10736
+ const _hoisted_30 = {
10737
+ key: 2,
10738
+ class: "result"
10739
+ };
10740
+ const _hoisted_31 = {
10741
+ class: "tit"
10742
+ };
10743
+ const _hoisted_32 = {
10744
+ class: "res"
10745
+ };
10660
10746
 
10661
10747
 
10662
10748
 
@@ -10728,9 +10814,18 @@ const __default__ = {
10728
10814
  angle: res.angle ? res.angle.toFixed(2) : 0
10729
10815
  };
10730
10816
  } else if (measureType.value === 'area') {
10731
- if (res.area) result.value = formatArea(res.area);
10817
+ if (res && res.area) result.value = formatArea(res.area);
10732
10818
  } else if (measureType.value === 'azimuth') {
10733
- if (res.azimuth) result.value = formatAzimuth(res.azimuth);
10819
+ if (res && res.azimuth) result.value = formatAzimuth(res.azimuth);
10820
+ } else if (measureType.value === 'coordinate') {
10821
+ if (res && res.coordinate) {
10822
+ result.value = {
10823
+ longitude: res.coordinate.longitude ? res.coordinate.longitude.toFixed(5) : 0,
10824
+ latitude: res.coordinate.latitude ? res.coordinate.latitude.toFixed(5) : 0,
10825
+ height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
10826
+ };
10827
+ viewModel.stopMeasure();
10828
+ }
10734
10829
  }
10735
10830
  });
10736
10831
  viewModel.activeEvent.addEventListener(function (active) {
@@ -10785,9 +10880,9 @@ const __default__ = {
10785
10880
  var unit = "°";
10786
10881
  return azimuth.toFixed(4) + " " + unit;
10787
10882
  }
10788
- /**
10789
- * @description 监听单位变化操作
10790
- * @param {string} unit - 单位
10883
+ /**
10884
+ * @description 监听单位变化操作
10885
+ * @param {string} unit - 单位
10791
10886
  */
10792
10887
 
10793
10888
 
@@ -10795,11 +10890,11 @@ const __default__ = {
10795
10890
  result.value = convertValueUnitTotal(distanceValue, unit);
10796
10891
  viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
10797
10892
  }
10798
- /**
10799
- * @description 测量距离数值单位换算
10800
- * @param {string} value - 原始数值
10801
- * @param {string} unit - 单位
10802
- * @returns {string} 新数值
10893
+ /**
10894
+ * @description 测量距离数值单位换算
10895
+ * @param {string} value - 原始数值
10896
+ * @param {string} unit - 单位
10897
+ * @returns {string} 新数值
10803
10898
  */
10804
10899
 
10805
10900
 
@@ -10842,27 +10937,24 @@ const __default__ = {
10842
10937
  viewModel.distanceMeasure(mode.value);
10843
10938
  break;
10844
10939
 
10845
- case "height":
10846
- mode.value = "space";
10847
- viewModel.heightMeasure();
10848
- break;
10849
-
10850
10940
  case "area":
10851
10941
  viewModel.areaMeasure(mode.value);
10852
10942
  break;
10853
- azimuth;
10854
10943
 
10855
- case "azimuth":
10856
- mode.value = "space";
10857
- viewModel.azimuthMeasure();
10944
+ case "height":
10945
+ viewModel.heightMeasure();
10946
+ break;
10947
+
10948
+ case "coordinate":
10949
+ viewModel.coordinateMeasure();
10858
10950
  break;
10859
10951
 
10860
10952
  default:
10861
10953
  break;
10862
10954
  }
10863
10955
  }
10864
- /**
10865
- * 清除测量
10956
+ /**
10957
+ * 清除测量
10866
10958
  */
10867
10959
 
10868
10960
 
@@ -10938,7 +11030,25 @@ const __default__ = {
10938
11030
  }, 8
10939
11031
  /* PROPS */
10940
11032
  , ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
10941
- onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('height'), ["stop"])),
11033
+ onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
11034
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'area' ? 'is-active' : null),
11035
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
11036
+ }, {
11037
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
11038
+ size: 24
11039
+ }, {
11040
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureArea))]),
11041
+ _: 1
11042
+ /* STABLE */
11043
+
11044
+ })]),
11045
+ _: 1
11046
+ /* STABLE */
11047
+
11048
+ }, 8
11049
+ /* PROPS */
11050
+ , ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
11051
+ onClick: _cache[3] || (_cache[3] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('height'), ["stop"])),
10942
11052
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'height' ? 'is-active' : null),
10943
11053
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
10944
11054
  }, {
@@ -10955,15 +11065,15 @@ const __default__ = {
10955
11065
 
10956
11066
  }, 8
10957
11067
  /* PROPS */
10958
- , ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
10959
- onClick: _cache[3] || (_cache[3] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
10960
- class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'area' ? 'is-active' : null),
10961
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
11068
+ , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
11069
+ onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
11070
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'coordinate' ? 'is-active' : null),
11071
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
10962
11072
  }, {
10963
11073
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
10964
11074
  size: 24
10965
11075
  }, {
10966
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureArea))]),
11076
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconGroundSurvey))]),
10967
11077
  _: 1
10968
11078
  /* STABLE */
10969
11079
 
@@ -10973,7 +11083,7 @@ const __default__ = {
10973
11083
 
10974
11084
  }, 8
10975
11085
  /* PROPS */
10976
- , ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-button @click.stop=\"startMeasure('azimuth')\" :class=\"isActive == 'azimuth' ? 'is-active' : null\" :title=\"language.azimuthMeasure\">\n <kq-icon :size=\"24\">\n <IconMeasureAzimuth />\n </kq-icon>\n </kq-button> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
11086
+ , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
10977
11087
  type: "danger",
10978
11088
  plain: "",
10979
11089
  onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
@@ -10997,12 +11107,11 @@ const __default__ = {
10997
11107
  /* TEXT */
10998
11108
  )) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips), 1
10999
11109
  /* TEXT */
11000
- ))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).unit), 1
11110
+ ))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).unit), 1
11001
11111
  /* TEXT */
11002
- ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
11003
- key: 0,
11112
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
11004
11113
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnit),
11005
- "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
11114
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
11006
11115
  onChange: onChangeUnit
11007
11116
  }, {
11008
11117
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnits), item => {
@@ -11021,7 +11130,7 @@ const __default__ = {
11021
11130
 
11022
11131
  }, 8
11023
11132
  /* PROPS */
11024
- , ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_12, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_13, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureResult), 1
11133
+ , ["modelValue"])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_12, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_13, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureResult), 1
11025
11134
  /* TEXT */
11026
11135
  ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_14, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_15, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).spaceDistance), 1
11027
11136
  /* TEXT */
@@ -11039,9 +11148,21 @@ const __default__ = {
11039
11148
  /* TEXT */
11040
11149
  ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_22, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).angle) + " °", 1
11041
11150
  /* TEXT */
11042
- )])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_23, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_24, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1
11151
+ )])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'coordinate' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_23, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_24, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).longitude), 1
11152
+ /* TEXT */
11153
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).longitude), 1
11043
11154
  /* TEXT */
11044
- ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1
11155
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_26, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).latitude), 1
11156
+ /* TEXT */
11157
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_27, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).latitude), 1
11158
+ /* TEXT */
11159
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_28, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height), 1
11160
+ /* TEXT */
11161
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_29, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).height) + " m", 1
11162
+ /* TEXT */
11163
+ )])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_30, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_31, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1
11164
+ /* TEXT */
11165
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1
11045
11166
  /* TEXT */
11046
11167
  )]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 2
11047
11168
  /* CLASS */
@@ -11099,6 +11220,8 @@ class ModelSelectViewModel {
11099
11220
 
11100
11221
  (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_highlight", null);
11101
11222
 
11223
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_modeFiled", 'id');
11224
+
11102
11225
  this._viewer = scenceView._viewer;
11103
11226
  this._drawManager = scenceView._drawManager;
11104
11227
  this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
@@ -11113,13 +11236,13 @@ class ModelSelectViewModel {
11113
11236
  if (pickedObject instanceof Cesium.Cesium3DTileFeature) {
11114
11237
  let properties = pickedObject.getPropertyNames() || [];
11115
11238
 
11116
- if (properties.indexOf("id") > -1) {
11117
- let id = pickedObject.getProperty("id");
11118
- that.clear();
11239
+ if (properties.indexOf(that._modeFiled) > -1) {
11240
+ let id = pickedObject.getProperty(that._modeFiled); // that.clear();
11241
+
11119
11242
  that._highlight = new Cesium.Kq3dHighlight({
11120
11243
  viewer: that._viewer,
11121
11244
  tileset: pickedObject.tileset,
11122
- attrName: "id",
11245
+ attrName: that._modeFiled,
11123
11246
  attrValue: [id],
11124
11247
  color: [Cesium.Color.RED]
11125
11248
  });
@@ -11217,7 +11340,11 @@ const __default__ = {
11217
11340
  /* harmony default export */ var ModelSelectvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
11218
11341
  props: {
11219
11342
  //指定组件绑定的viewer对象的div的id
11220
- mapTarget: String
11343
+ mapTarget: String,
11344
+ modeFiled: {
11345
+ default: 'id',
11346
+ type: String
11347
+ }
11221
11348
  },
11222
11349
 
11223
11350
  setup(__props, {
@@ -11255,6 +11382,10 @@ const __default__ = {
11255
11382
  });
11256
11383
  });
11257
11384
 
11385
+ function setModeFiled(val) {
11386
+ viewModel._modeFiled = val;
11387
+ }
11388
+
11258
11389
  function pick() {
11259
11390
  viewModel && viewModel.pick();
11260
11391
  }
@@ -11292,7 +11423,8 @@ const __default__ = {
11292
11423
  expose({
11293
11424
  pick,
11294
11425
  clear,
11295
- pickCallFunc
11426
+ pickCallFunc,
11427
+ setModeFiled
11296
11428
  });
11297
11429
  return (_ctx, _cache) => {
11298
11430
  const _component_KqTree = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("KqTree");
@@ -14412,7 +14544,7 @@ const __default__ = {
14412
14544
 
14413
14545
 
14414
14546
  function reset() {
14415
- formItem.mode = 0;
14547
+ formItem.mode = null;
14416
14548
  viewModel && viewModel.reset();
14417
14549
  } // 销毁
14418
14550
 
@@ -14469,7 +14601,9 @@ const __default__ = {
14469
14601
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode,
14470
14602
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).mode = $event),
14471
14603
  onChange: changeMode,
14472
- placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).noRoller + '...'
14604
+ placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).noRoller + '...',
14605
+ clearable: "",
14606
+ onClear: reset
14473
14607
  }, {
14474
14608
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
14475
14609
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).lrRoller,
@@ -16826,19 +16960,19 @@ SightlineAnalysis.install = (Vue, opts) => {
16826
16960
 
16827
16961
  //天际线分析逻辑类
16828
16962
  class SkylineAnalysisViewModel {
16829
- /**
16830
- * 天际线分析逻辑类
16831
- * @param {Object} _skylineAnalysis 天际线分析三维对象
16832
- * @param {Object} _skylineAnalysisChart 二维天际线折线图表(外部生成)
16833
- * @param {String} _skylineAnalysisChartTitle 二维天际线折线图表标题(中英文适配)
16834
- * @param {Object} _options 天际线分析存储参数对象
16835
- * @param {Object} _showLimitHeightBody 限高体是否显示
16963
+ /**
16964
+ * 天际线分析逻辑类
16965
+ * @param {Object} _skylineAnalysis 天际线分析三维对象
16966
+ * @param {Object} _skylineAnalysisChart 二维天际线折线图表(外部生成)
16967
+ * @param {String} _skylineAnalysisChartTitle 二维天际线折线图表标题(中英文适配)
16968
+ * @param {Object} _options 天际线分析存储参数对象
16969
+ * @param {Object} _showLimitHeightBody 限高体是否显示
16836
16970
  */
16837
16971
 
16838
- /**
16839
- * 天际线分析逻辑类构造函数
16840
- * @param {*} viewer 三维对象
16841
- * @param {*} option 天际线分析参数对象
16972
+ /**
16973
+ * 天际线分析逻辑类构造函数
16974
+ * @param {*} viewer 三维对象
16975
+ * @param {*} option 天际线分析参数对象
16842
16976
  */
16843
16977
  constructor(viewer, option) {
16844
16978
  (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_skylineAnalysis", null);
@@ -16876,8 +17010,8 @@ class SkylineAnalysisViewModel {
16876
17010
 
16877
17011
  this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
16878
17012
  }
16879
- /**
16880
- * 提取天际线
17013
+ /**
17014
+ * 提取天际线
16881
17015
  */
16882
17016
 
16883
17017
 
@@ -16906,8 +17040,8 @@ class SkylineAnalysisViewModel {
16906
17040
  throw "请添加模型后提取!";
16907
17041
  }
16908
17042
  }
16909
- /**
16910
- * 绘制限高体
17043
+ /**
17044
+ * 绘制限高体
16911
17045
  */
16912
17046
 
16913
17047
 
@@ -16937,8 +17071,8 @@ class SkylineAnalysisViewModel {
16937
17071
  throw "请添加模型后绘制!";
16938
17072
  }
16939
17073
  }
16940
- /**
16941
- * 展示二维天际线
17074
+ /**
17075
+ * 展示二维天际线
16942
17076
  */
16943
17077
 
16944
17078
 
@@ -16981,8 +17115,8 @@ class SkylineAnalysisViewModel {
16981
17115
  };
16982
17116
  this._skylineAnalysisChart && this._skylineAnalysisChart.setOption(option);
16983
17117
  }
16984
- /**
16985
- * 清除限高体
17118
+ /**
17119
+ * 清除限高体
16986
17120
  */
16987
17121
 
16988
17122
 
@@ -16999,9 +17133,9 @@ class SkylineAnalysisViewModel {
16999
17133
  this._skylineAnalysis.removeCzmlJsonDataSource();
17000
17134
  }
17001
17135
  }
17002
- /**
17003
- * 设置天际线颜色
17004
- * @param {String} lineColor 天际线颜色
17136
+ /**
17137
+ * 设置天际线颜色
17138
+ * @param {String} lineColor 天际线颜色
17005
17139
  */
17006
17140
 
17007
17141
 
@@ -17010,10 +17144,10 @@ class SkylineAnalysisViewModel {
17010
17144
  this._options.lineColor = window.Cesium.Color.fromCssColorString(lineColor);
17011
17145
  if (this._skylineAnalysis) this._skylineAnalysis.lineColor = this._options.lineColor;
17012
17146
  }
17013
- /**
17014
- * 设置限高体颜色
17015
- * @param {String} faceColor 限高体轮廓颜色
17016
- * @param {String} alpha 限高体轮廓颜色透明度
17147
+ /**
17148
+ * 设置限高体颜色
17149
+ * @param {String} faceColor 限高体轮廓颜色
17150
+ * @param {String} alpha 限高体轮廓颜色透明度
17017
17151
  */
17018
17152
 
17019
17153
 
@@ -17022,9 +17156,9 @@ class SkylineAnalysisViewModel {
17022
17156
  this._options.faceColor = window.Cesium.Color.fromCssColorString(faceColor).withAlpha(alpha || 1);
17023
17157
  if (this._skylineAnalysis && this._showLimitHeightBody) this._skylineAnalysis.faceColor = this._options.faceColor;
17024
17158
  }
17025
- /**
17026
- * 设置天际线半径
17027
- * @param {String} radius 天际线半径
17159
+ /**
17160
+ * 设置天际线半径
17161
+ * @param {String} radius 天际线半径
17028
17162
  */
17029
17163
 
17030
17164
 
@@ -17033,10 +17167,10 @@ class SkylineAnalysisViewModel {
17033
17167
  this._options.radius = radius;
17034
17168
  if (this._skylineAnalysis) this._skylineAnalysis.radius = radius;
17035
17169
  }
17036
- /**
17037
- * 设置限高体透明度
17038
- * @param {String} faceColor 限高体轮廓颜色
17039
- * @param {String} alpha 限高体轮廓颜色透明度
17170
+ /**
17171
+ * 设置限高体透明度
17172
+ * @param {String} faceColor 限高体轮廓颜色
17173
+ * @param {String} alpha 限高体轮廓颜色透明度
17040
17174
  */
17041
17175
 
17042
17176
 
@@ -17045,10 +17179,10 @@ class SkylineAnalysisViewModel {
17045
17179
  this._options.faceColor = window.Cesium.Color.fromCssColorString(faceColor).withAlpha(alpha || 1);
17046
17180
  if (this._skylineAnalysis && this._showLimitHeightBody) this._skylineAnalysis.faceColor = this._options.faceColor;
17047
17181
  }
17048
- /**
17049
- * 设置限高体轮廓颜色
17050
- * @param {String} faceOutlineColor 限高体轮廓颜色
17051
- * @param {String} alpha 限高体轮廓颜色透明度
17182
+ /**
17183
+ * 设置限高体轮廓颜色
17184
+ * @param {String} faceOutlineColor 限高体轮廓颜色
17185
+ * @param {String} alpha 限高体轮廓颜色透明度
17052
17186
  */
17053
17187
 
17054
17188
 
@@ -17060,8 +17194,8 @@ class SkylineAnalysisViewModel {
17060
17194
  this._skylineAnalysis.faceOutlineColor = this._options.faceOutlineColor;
17061
17195
  }
17062
17196
  }
17063
- /*
17064
- * 清除
17197
+ /*
17198
+ * 清除
17065
17199
  */
17066
17200
 
17067
17201
 
@@ -17074,8 +17208,8 @@ class SkylineAnalysisViewModel {
17074
17208
  this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
17075
17209
  }
17076
17210
  }
17077
- /**
17078
- * 注销
17211
+ /**
17212
+ * 注销
17079
17213
  */
17080
17214
 
17081
17215
 
@@ -18662,14 +18796,14 @@ var StatusBarViewModel = __webpack_require__(6311);
18662
18796
 
18663
18797
 
18664
18798
 
18665
- /**
18666
- * 支持传入属性:
18667
- * hideResolution - 隐藏分辨率
18668
- * hideScale - 隐藏比例尺
18669
- * hideLonLat - 隐藏经纬度
18670
- * hideEyeAlt - 隐藏视点高
18671
- * hideCopyright - 隐藏版权信息
18672
- * copyrightText - 版权信息文字
18799
+ /**
18800
+ * 支持传入属性:
18801
+ * hideResolution - 隐藏分辨率
18802
+ * hideScale - 隐藏比例尺
18803
+ * hideLonLat - 隐藏经纬度
18804
+ * hideEyeAlt - 隐藏视点高
18805
+ * hideCopyright - 隐藏版权信息
18806
+ * copyrightText - 版权信息文字
18673
18807
  */
18674
18808
 
18675
18809
  const __default__ = {
@@ -21403,11 +21537,11 @@ var underground = __webpack_require__(8521);
21403
21537
  // EXTERNAL MODULE: ./src/webgl/statusbar/index.js + 5 modules
21404
21538
  var statusbar = __webpack_require__(6466);
21405
21539
  ;// CONCATENATED MODULE: ./src/webgl/components.js
21406
- /**
21407
- * Author: 朱鹏超
21408
- * Date: 2022-11-23
21409
- * Description: client3d_webgl_vue 组件入口
21410
- * LastEditors: 朱鹏超
21540
+ /**
21541
+ * Author: 朱鹏超
21542
+ * Date: 2022-11-23
21543
+ * Description: client3d_webgl_vue 组件入口
21544
+ * LastEditors: 朱鹏超
21411
21545
  */
21412
21546
 
21413
21547
  // 三维地图快捷工具
@@ -22484,6 +22618,8 @@ class LayerManager {
22484
22618
  layers: layerData.id + "",
22485
22619
  ...params
22486
22620
  }));
22621
+ if (layerData.style && layer) layer.style = layerData.style;
22622
+ if (layerData.shader && layer) layer.kq3dCustomShader = layerData.shader;
22487
22623
  this._guidMapping[layerData.guid] = layer.guid;
22488
22624
  layerData.visible = true;
22489
22625
  layerData.serverType = "imagerylayer";
@@ -22790,11 +22926,11 @@ class LayerManager {
22790
22926
  serverType: "3dtiles"
22791
22927
  });
22792
22928
  }
22793
- /**
22794
- * 设置多个图层的显示与隐藏 且控制树的勾选
22795
- * @param ids 图层的GUID数组
22796
- * @param visible true, false
22797
- * @param eventTarget 触发方法的对象。该方法有执行其他监听事件,为防止方法死循环,该参数会传给监听事件
22929
+ /**
22930
+ * 设置多个图层的显示与隐藏 且控制树的勾选
22931
+ * @param ids 图层的GUID数组
22932
+ * @param visible true, false
22933
+ * @param eventTarget 触发方法的对象。该方法有执行其他监听事件,为防止方法死循环,该参数会传给监听事件
22798
22934
  */
22799
22935
 
22800
22936
 
@@ -23072,8 +23208,8 @@ class LayerManager {
23072
23208
 
23073
23209
  return checkedKeys;
23074
23210
  }
23075
- /**
23076
- * 获取勾选图层的图层数据,如果是有融合图层,则只返回融合图层的子图层
23211
+ /**
23212
+ * 获取勾选图层的图层数据,如果是有融合图层,则只返回融合图层的子图层
23077
23213
  */
23078
23214
 
23079
23215
 
@@ -23347,12 +23483,12 @@ class LayerManager {
23347
23483
 
23348
23484
  this._viewer.terrainProvider = terrainProvider;
23349
23485
  }
23350
- /**
23351
- * 删除临时添加数据
23352
- * 移除渲染图层
23353
- * 删除 _layerTreeData的临时图层数据
23354
- * 删除 _layerListData的临时图层数据
23355
- * @param guid
23486
+ /**
23487
+ * 删除临时添加数据
23488
+ * 移除渲染图层
23489
+ * 删除 _layerTreeData的临时图层数据
23490
+ * 删除 _layerListData的临时图层数据
23491
+ * @param guid
23356
23492
  */
23357
23493
 
23358
23494
 
@@ -23438,10 +23574,10 @@ class LayerManager {
23438
23574
  }
23439
23575
 
23440
23576
  }
23441
- /**
23442
- * 根据guid获取子节点guid集合
23443
- * @param data
23444
- * @param guid
23577
+ /**
23578
+ * 根据guid获取子节点guid集合
23579
+ * @param data
23580
+ * @param guid
23445
23581
  */
23446
23582
 
23447
23583
  function getChildrenByGuid(data, guid, guids, addChildren = false) {
@@ -23459,10 +23595,10 @@ function getChildrenByGuid(data, guid, guids, addChildren = false) {
23459
23595
  }
23460
23596
  }
23461
23597
  }
23462
- /**
23463
- * 根据guid删除树节点数据,包含子节点也删除
23464
- * @param data
23465
- * @param guid
23598
+ /**
23599
+ * 根据guid删除树节点数据,包含子节点也删除
23600
+ * @param data
23601
+ * @param guid
23466
23602
  */
23467
23603
 
23468
23604
 
@@ -23707,11 +23843,11 @@ class ScenceViewViewModel extends (mitt_default()) {
23707
23843
 
23708
23844
  return layer;
23709
23845
  }
23710
- /**
23711
- * 操作底图显隐的方法
23712
- * @param layerKey 存储图层信息的key
23713
- * @param layerInfo 创建图层的参数信息对象
23714
- * @param visible 显隐
23846
+ /**
23847
+ * 操作底图显隐的方法
23848
+ * @param layerKey 存储图层信息的key
23849
+ * @param layerInfo 创建图层的参数信息对象
23850
+ * @param visible 显隐
23715
23851
  */
23716
23852
 
23717
23853
 
@@ -23838,10 +23974,10 @@ class ScenceViewViewModel extends (mitt_default()) {
23838
23974
 
23839
23975
  return layer;
23840
23976
  }
23841
- /**
23842
- * 操作在线底图,添加显示隐藏图层
23843
- * @param {Object} layerConfig 图层数据
23844
- * @param {boolean} visible 显隐
23977
+ /**
23978
+ * 操作在线底图,添加显示隐藏图层
23979
+ * @param {Object} layerConfig 图层数据
23980
+ * @param {boolean} visible 显隐
23845
23981
  */
23846
23982
 
23847
23983
 
@@ -23866,8 +24002,8 @@ class ScenceViewViewModel extends (mitt_default()) {
23866
24002
  }
23867
24003
  }
23868
24004
  }
23869
- /**
23870
- * 移除所有在线底图在地图中的显示
24005
+ /**
24006
+ * 移除所有在线底图在地图中的显示
23871
24007
  */
23872
24008
 
23873
24009
 
@@ -23944,17 +24080,17 @@ const __default__ = {
23944
24080
  },
23945
24081
  options: Object,
23946
24082
 
23947
- /**
23948
- * 图层数据源
23949
- * 事例:
23950
- * {
23951
- name: null,// 服务名称
23952
- url: null,//服务地址
23953
- token: null,//服务token
23954
- type: "kqmapserver", //服务类型 kqmapserver或者kq3dserver
23955
- isShowAllLayers: true,
23956
- defaultShowLayerNames: []
23957
- }
24083
+ /**
24084
+ * 图层数据源
24085
+ * 事例:
24086
+ * {
24087
+ name: null,// 服务名称
24088
+ url: null,//服务地址
24089
+ token: null,//服务token
24090
+ type: "kqmapserver", //服务类型 kqmapserver或者kq3dserver
24091
+ isShowAllLayers: true,
24092
+ defaultShowLayerNames: []
24093
+ }
23958
24094
  */
23959
24095
  service: Object,
23960
24096
  // ScenceView初始化的参数对象,包含初始化范围和layer信息。
@@ -23966,9 +24102,9 @@ const __default__ = {
23966
24102
  default: true
23967
24103
  },
23968
24104
 
23969
- /**
23970
- * 例:"top-left","top-right","bottom-left","bottom-right","left","right","bottom"
23971
- * {top:'16px',left:'16px'}, {top:16,left:16}
24105
+ /**
24106
+ * 例:"top-left","top-right","bottom-left","bottom-right","left","right","bottom"
24107
+ * {top:'16px',left:'16px'}, {top:16,left:16}
23972
24108
  */
23973
24109
  toolButtonsPosition: [String, Object],
23974
24110
  showLogo: {
@@ -23989,12 +24125,12 @@ const __default__ = {
23989
24125
  const {
23990
24126
  proxy
23991
24127
  } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
23992
- /**
23993
- * 支持传入属性:
23994
- * target - viewer对象渲染的div的id
23995
- * options - 三维球初始化属性设置
23996
- * scenceUrl - 场景地址
23997
- * showToolButtons - 是否显示工具栏按钮
24128
+ /**
24129
+ * 支持传入属性:
24130
+ * target - viewer对象渲染的div的id
24131
+ * options - 三维球初始化属性设置
24132
+ * scenceUrl - 场景地址
24133
+ * showToolButtons - 是否显示工具栏按钮
23998
24134
  */
23999
24135
 
24000
24136
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
@@ -24030,8 +24166,8 @@ const __default__ = {
24030
24166
  viewModel = new ScenceViewViewModel(props, _language);
24031
24167
  viewModel.initViewer();
24032
24168
  });
24033
- /**
24034
- * 获取ScenceView的逻辑类
24169
+ /**
24170
+ * 获取ScenceView的逻辑类
24035
24171
  */
24036
24172
 
24037
24173
  function getViewModel() {