@kq_npm/client3d_webgl_vue 2.8.9-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.
- package/adddata/index.js +33 -34
- package/adddata/style/adddata.css +1 -1
- package/flight/index.js +61 -7
- package/index.js +212 -76
- package/isolineanalysis/index.js +2 -2
- package/measure/index.js +93 -25
- package/measure/style/measure.css +1 -1
- package/modelselect/index.js +17 -6
- package/package.json +1 -1
- package/roller/index.js +4 -2
- package/roller/style/roller.css +1 -1
- package/scenceview/index.js +212 -76
- package/style.css +1 -1
package/scenceview/index.js
CHANGED
|
@@ -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
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
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
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
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
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
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];
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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).
|
|
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).
|
|
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) {
|
|
@@ -10842,19 +10937,16 @@ 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 "
|
|
10856
|
-
|
|
10857
|
-
|
|
10944
|
+
case "height":
|
|
10945
|
+
viewModel.heightMeasure();
|
|
10946
|
+
break;
|
|
10947
|
+
|
|
10948
|
+
case "coordinate":
|
|
10949
|
+
viewModel.coordinateMeasure();
|
|
10858
10950
|
break;
|
|
10859
10951
|
|
|
10860
10952
|
default:
|
|
@@ -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('
|
|
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[
|
|
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) == '
|
|
10961
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).
|
|
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_.
|
|
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_.
|
|
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_.
|
|
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_.
|
|
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[
|
|
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)
|
|
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)
|
|
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
|
|
11043
11152
|
/* 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
|
|
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
|
|
11154
|
+
/* TEXT */
|
|
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(
|
|
11117
|
-
let id = pickedObject.getProperty(
|
|
11118
|
-
|
|
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:
|
|
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 =
|
|
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,
|
|
@@ -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";
|