@kq_npm/client3d_webgl_vue 2.4.5-beta → 2.4.6-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/index.js +165 -25
- package/measure/index.js +164 -24
- package/package.json +1 -1
- package/scenceview/index.js +1 -1
package/index.js
CHANGED
|
@@ -1521,7 +1521,7 @@ class LayerManager {
|
|
|
1521
1521
|
|
|
1522
1522
|
case "geojson":
|
|
1523
1523
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
1524
|
-
promise = ds.load(url, this._geojsonStyle).then(ds => {
|
|
1524
|
+
promise = ds.load(url, layerData.geojsonStyle || this._geojsonStyle).then(ds => {
|
|
1525
1525
|
ds.entities.values.forEach(entity => {
|
|
1526
1526
|
if (entity.polygon) {
|
|
1527
1527
|
entity.polyline = {
|
|
@@ -3972,6 +3972,53 @@ class MeasureViewModel {
|
|
|
3972
3972
|
|
|
3973
3973
|
azimuthMeasure() {
|
|
3974
3974
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
3975
|
+
} //更新距离测量单位
|
|
3976
|
+
|
|
3977
|
+
|
|
3978
|
+
updateDistanceUnit(distanceTotal, unit) {
|
|
3979
|
+
if (this._measureHandler.measureResults) {
|
|
3980
|
+
this._measureHandler.measureResults.forEach(measureResult => {
|
|
3981
|
+
let labels = measureResult.labels._labels;
|
|
3982
|
+
|
|
3983
|
+
if (labels.length === 1) {
|
|
3984
|
+
if (labels[0].text) labels[0].text = this.convertValueUnit(distanceTotal, unit);
|
|
3985
|
+
} else {
|
|
3986
|
+
let positions = measureResult.polyline.positions;
|
|
3987
|
+
let dist = 0;
|
|
3988
|
+
|
|
3989
|
+
for (let i = 0; i < labels.length; i++) {
|
|
3990
|
+
if (labels[i].show && labels[i].text && labels[i].text) {
|
|
3991
|
+
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
3992
|
+
labels[i].text = this.convertValueUnit(dist, unit);
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
}
|
|
3996
|
+
}, this);
|
|
3997
|
+
}
|
|
3998
|
+
} //测量距离数值单位换算
|
|
3999
|
+
|
|
4000
|
+
|
|
4001
|
+
convertValueUnit(value, unit) {
|
|
4002
|
+
let newValue = "";
|
|
4003
|
+
|
|
4004
|
+
switch (unit) {
|
|
4005
|
+
case "m":
|
|
4006
|
+
newValue = value.toFixed(2) + " m";
|
|
4007
|
+
break;
|
|
4008
|
+
|
|
4009
|
+
case "km":
|
|
4010
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
4011
|
+
break;
|
|
4012
|
+
|
|
4013
|
+
case "n mile":
|
|
4014
|
+
newValue = (value / 1852).toFixed(2) + " n mile";
|
|
4015
|
+
break;
|
|
4016
|
+
|
|
4017
|
+
default:
|
|
4018
|
+
break;
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
return newValue;
|
|
3975
4022
|
} //清除全部测量结果
|
|
3976
4023
|
|
|
3977
4024
|
|
|
@@ -4024,14 +4071,14 @@ const _hoisted_11 = {
|
|
|
4024
4071
|
class: "title"
|
|
4025
4072
|
};
|
|
4026
4073
|
const _hoisted_12 = {
|
|
4027
|
-
|
|
4028
|
-
class: "result"
|
|
4074
|
+
class: "panel"
|
|
4029
4075
|
};
|
|
4030
4076
|
const _hoisted_13 = {
|
|
4031
|
-
class: "
|
|
4077
|
+
class: "title"
|
|
4032
4078
|
};
|
|
4033
4079
|
const _hoisted_14 = {
|
|
4034
|
-
|
|
4080
|
+
key: 0,
|
|
4081
|
+
class: "result"
|
|
4035
4082
|
};
|
|
4036
4083
|
const _hoisted_15 = {
|
|
4037
4084
|
class: "tit"
|
|
@@ -4052,13 +4099,19 @@ const _hoisted_20 = {
|
|
|
4052
4099
|
class: "res"
|
|
4053
4100
|
};
|
|
4054
4101
|
const _hoisted_21 = {
|
|
4102
|
+
class: "tit"
|
|
4103
|
+
};
|
|
4104
|
+
const _hoisted_22 = {
|
|
4105
|
+
class: "res"
|
|
4106
|
+
};
|
|
4107
|
+
const _hoisted_23 = {
|
|
4055
4108
|
key: 1,
|
|
4056
4109
|
class: "result"
|
|
4057
4110
|
};
|
|
4058
|
-
const
|
|
4111
|
+
const _hoisted_24 = {
|
|
4059
4112
|
class: "tit"
|
|
4060
4113
|
};
|
|
4061
|
-
const
|
|
4114
|
+
const _hoisted_25 = {
|
|
4062
4115
|
class: "res"
|
|
4063
4116
|
};
|
|
4064
4117
|
|
|
@@ -4085,12 +4138,32 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4085
4138
|
|
|
4086
4139
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
4087
4140
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
4088
|
-
let
|
|
4141
|
+
let distanceValue = null;
|
|
4142
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("");
|
|
4089
4143
|
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("0");
|
|
4090
4144
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
4091
4145
|
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("space");
|
|
4092
4146
|
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([]);
|
|
4093
|
-
let viewModel = null;
|
|
4147
|
+
let viewModel = null; // 距离测量单位
|
|
4148
|
+
|
|
4149
|
+
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([{
|
|
4150
|
+
label: "m",
|
|
4151
|
+
value: "m"
|
|
4152
|
+
}, {
|
|
4153
|
+
label: "km",
|
|
4154
|
+
value: "km"
|
|
4155
|
+
}, {
|
|
4156
|
+
label: "n mile",
|
|
4157
|
+
value: "n mile"
|
|
4158
|
+
}]); // 面积测量单位
|
|
4159
|
+
|
|
4160
|
+
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([{
|
|
4161
|
+
label: "m²",
|
|
4162
|
+
value: "m²"
|
|
4163
|
+
}, {
|
|
4164
|
+
label: "km²",
|
|
4165
|
+
value: "km²"
|
|
4166
|
+
}]);
|
|
4094
4167
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
4095
4168
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
4096
4169
|
if (scenceView) {
|
|
@@ -4100,7 +4173,10 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4100
4173
|
|
|
4101
4174
|
viewModel.measureEvent.addEventListener(function (res) {
|
|
4102
4175
|
if (measureType.value === 'distance') {
|
|
4103
|
-
if (res.distance)
|
|
4176
|
+
if (res.distance) {
|
|
4177
|
+
distanceValue = res.distance;
|
|
4178
|
+
result.value = formatDistance(res.distance);
|
|
4179
|
+
}
|
|
4104
4180
|
} else if (measureType.value === 'height' && res) {
|
|
4105
4181
|
result.value = {
|
|
4106
4182
|
spaceDistance: res.distance ? res.distance.toFixed(2) : 0,
|
|
@@ -4141,14 +4217,14 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4141
4217
|
}
|
|
4142
4218
|
|
|
4143
4219
|
function formatDistance(dis) {
|
|
4144
|
-
var unit = "m";
|
|
4145
|
-
|
|
4146
4220
|
if (dis > 5000) {
|
|
4147
4221
|
dis = dis / 1000;
|
|
4148
|
-
|
|
4222
|
+
distanceUnit.value = "km";
|
|
4223
|
+
} else {
|
|
4224
|
+
distanceUnit.value = "m";
|
|
4149
4225
|
}
|
|
4150
4226
|
|
|
4151
|
-
return dis.toFixed(2) + " " +
|
|
4227
|
+
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
4152
4228
|
}
|
|
4153
4229
|
|
|
4154
4230
|
function formatArea(area) {
|
|
@@ -4165,6 +4241,46 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4165
4241
|
function formatAzimuth(azimuth) {
|
|
4166
4242
|
var unit = "°";
|
|
4167
4243
|
return azimuth.toFixed(4) + " " + unit;
|
|
4244
|
+
}
|
|
4245
|
+
/**
|
|
4246
|
+
* @description 监听单位变化操作
|
|
4247
|
+
* @param {string} unit - 单位
|
|
4248
|
+
*/
|
|
4249
|
+
|
|
4250
|
+
|
|
4251
|
+
function onChangeUnit(unit) {
|
|
4252
|
+
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
4253
|
+
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
4254
|
+
}
|
|
4255
|
+
/**
|
|
4256
|
+
* @description 测量距离数值单位换算
|
|
4257
|
+
* @param {string} value - 原始数值
|
|
4258
|
+
* @param {string} unit - 单位
|
|
4259
|
+
* @returns {string} 新数值
|
|
4260
|
+
*/
|
|
4261
|
+
|
|
4262
|
+
|
|
4263
|
+
function convertValueUnitTotal(value, unit) {
|
|
4264
|
+
let newValue = "";
|
|
4265
|
+
|
|
4266
|
+
switch (unit) {
|
|
4267
|
+
case "m":
|
|
4268
|
+
newValue = value.toFixed(2) + " m";
|
|
4269
|
+
break;
|
|
4270
|
+
|
|
4271
|
+
case "km":
|
|
4272
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
4273
|
+
break;
|
|
4274
|
+
|
|
4275
|
+
case "n mile":
|
|
4276
|
+
newValue = (value / 1852).toFixed(2) + " n mile";
|
|
4277
|
+
break;
|
|
4278
|
+
|
|
4279
|
+
default:
|
|
4280
|
+
break;
|
|
4281
|
+
}
|
|
4282
|
+
|
|
4283
|
+
return newValue;
|
|
4168
4284
|
} // 销毁
|
|
4169
4285
|
|
|
4170
4286
|
|
|
@@ -4338,27 +4454,51 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
4338
4454
|
/* TEXT */
|
|
4339
4455
|
)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("p", Measurevue_type_script_setup_true_lang_js_hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).measureTips), 1
|
|
4340
4456
|
/* TEXT */
|
|
4341
|
-
))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", Measurevue_type_script_setup_true_lang_js_hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).
|
|
4457
|
+
))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", Measurevue_type_script_setup_true_lang_js_hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).unit), 1
|
|
4458
|
+
/* TEXT */
|
|
4459
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_select, {
|
|
4460
|
+
key: 0,
|
|
4461
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(distanceUnit),
|
|
4462
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
|
|
4463
|
+
onChange: onChangeUnit
|
|
4464
|
+
}, {
|
|
4465
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(distanceUnits), item => {
|
|
4466
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_option, {
|
|
4467
|
+
key: item.value,
|
|
4468
|
+
label: item.label,
|
|
4469
|
+
value: item.value
|
|
4470
|
+
}, null, 8
|
|
4471
|
+
/* PROPS */
|
|
4472
|
+
, ["label", "value"]);
|
|
4473
|
+
}), 128
|
|
4474
|
+
/* KEYED_FRAGMENT */
|
|
4475
|
+
))]),
|
|
4476
|
+
_: 1
|
|
4477
|
+
/* STABLE */
|
|
4478
|
+
|
|
4479
|
+
}, 8
|
|
4480
|
+
/* PROPS */
|
|
4481
|
+
, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_12, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_13, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).measureResult), 1
|
|
4342
4482
|
/* TEXT */
|
|
4343
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div",
|
|
4483
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", _hoisted_14, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_15, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).spaceDistance), 1
|
|
4344
4484
|
/* TEXT */
|
|
4345
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4485
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_16, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).spaceDistance) + " m", 1
|
|
4346
4486
|
/* TEXT */
|
|
4347
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4487
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_17, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).horizontalDistance), 1
|
|
4348
4488
|
/* TEXT */
|
|
4349
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4489
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_18, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).horizontalDistance) + " m", 1
|
|
4350
4490
|
/* TEXT */
|
|
4351
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4491
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_19, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).verticalDistance), 1
|
|
4352
4492
|
/* TEXT */
|
|
4353
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4493
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_20, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).verticalDistance) + " m", 1
|
|
4354
4494
|
/* TEXT */
|
|
4355
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4495
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_21, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).angle), 1
|
|
4356
4496
|
/* TEXT */
|
|
4357
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4497
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_22, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).angle) + " °", 1
|
|
4358
4498
|
/* TEXT */
|
|
4359
|
-
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div",
|
|
4499
|
+
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", _hoisted_23, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_24, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType)]), 1
|
|
4360
4500
|
/* TEXT */
|
|
4361
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
4501
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result)), 1
|
|
4362
4502
|
/* TEXT */
|
|
4363
4503
|
)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)], 2
|
|
4364
4504
|
/* CLASS */
|
package/measure/index.js
CHANGED
|
@@ -129,6 +129,53 @@ class MeasureViewModel {
|
|
|
129
129
|
|
|
130
130
|
azimuthMeasure() {
|
|
131
131
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
132
|
+
} //更新距离测量单位
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
updateDistanceUnit(distanceTotal, unit) {
|
|
136
|
+
if (this._measureHandler.measureResults) {
|
|
137
|
+
this._measureHandler.measureResults.forEach(measureResult => {
|
|
138
|
+
let labels = measureResult.labels._labels;
|
|
139
|
+
|
|
140
|
+
if (labels.length === 1) {
|
|
141
|
+
if (labels[0].text) labels[0].text = this.convertValueUnit(distanceTotal, unit);
|
|
142
|
+
} else {
|
|
143
|
+
let positions = measureResult.polyline.positions;
|
|
144
|
+
let dist = 0;
|
|
145
|
+
|
|
146
|
+
for (let i = 0; i < labels.length; i++) {
|
|
147
|
+
if (labels[i].show && labels[i].text && labels[i].text) {
|
|
148
|
+
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
149
|
+
labels[i].text = this.convertValueUnit(dist, unit);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}, this);
|
|
154
|
+
}
|
|
155
|
+
} //测量距离数值单位换算
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
convertValueUnit(value, unit) {
|
|
159
|
+
let newValue = "";
|
|
160
|
+
|
|
161
|
+
switch (unit) {
|
|
162
|
+
case "m":
|
|
163
|
+
newValue = value.toFixed(2) + " m";
|
|
164
|
+
break;
|
|
165
|
+
|
|
166
|
+
case "km":
|
|
167
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
168
|
+
break;
|
|
169
|
+
|
|
170
|
+
case "n mile":
|
|
171
|
+
newValue = (value / 1852).toFixed(2) + " n mile";
|
|
172
|
+
break;
|
|
173
|
+
|
|
174
|
+
default:
|
|
175
|
+
break;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return newValue;
|
|
132
179
|
} //清除全部测量结果
|
|
133
180
|
|
|
134
181
|
|
|
@@ -181,14 +228,14 @@ const _hoisted_11 = {
|
|
|
181
228
|
class: "title"
|
|
182
229
|
};
|
|
183
230
|
const _hoisted_12 = {
|
|
184
|
-
|
|
185
|
-
class: "result"
|
|
231
|
+
class: "panel"
|
|
186
232
|
};
|
|
187
233
|
const _hoisted_13 = {
|
|
188
|
-
class: "
|
|
234
|
+
class: "title"
|
|
189
235
|
};
|
|
190
236
|
const _hoisted_14 = {
|
|
191
|
-
|
|
237
|
+
key: 0,
|
|
238
|
+
class: "result"
|
|
192
239
|
};
|
|
193
240
|
const _hoisted_15 = {
|
|
194
241
|
class: "tit"
|
|
@@ -209,13 +256,19 @@ const _hoisted_20 = {
|
|
|
209
256
|
class: "res"
|
|
210
257
|
};
|
|
211
258
|
const _hoisted_21 = {
|
|
259
|
+
class: "tit"
|
|
260
|
+
};
|
|
261
|
+
const _hoisted_22 = {
|
|
262
|
+
class: "res"
|
|
263
|
+
};
|
|
264
|
+
const _hoisted_23 = {
|
|
212
265
|
key: 1,
|
|
213
266
|
class: "result"
|
|
214
267
|
};
|
|
215
|
-
const
|
|
268
|
+
const _hoisted_24 = {
|
|
216
269
|
class: "tit"
|
|
217
270
|
};
|
|
218
|
-
const
|
|
271
|
+
const _hoisted_25 = {
|
|
219
272
|
class: "res"
|
|
220
273
|
};
|
|
221
274
|
|
|
@@ -242,12 +295,32 @@ const __default__ = {
|
|
|
242
295
|
|
|
243
296
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
244
297
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(false);
|
|
245
|
-
let
|
|
298
|
+
let distanceValue = null;
|
|
299
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("");
|
|
246
300
|
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("0");
|
|
247
301
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
248
302
|
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)("space");
|
|
249
303
|
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([]);
|
|
250
|
-
let viewModel = null;
|
|
304
|
+
let viewModel = null; // 距离测量单位
|
|
305
|
+
|
|
306
|
+
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([{
|
|
307
|
+
label: "m",
|
|
308
|
+
value: "m"
|
|
309
|
+
}, {
|
|
310
|
+
label: "km",
|
|
311
|
+
value: "km"
|
|
312
|
+
}, {
|
|
313
|
+
label: "n mile",
|
|
314
|
+
value: "n mile"
|
|
315
|
+
}]); // 面积测量单位
|
|
316
|
+
|
|
317
|
+
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)([{
|
|
318
|
+
label: "m²",
|
|
319
|
+
value: "m²"
|
|
320
|
+
}, {
|
|
321
|
+
label: "km²",
|
|
322
|
+
value: "km²"
|
|
323
|
+
}]);
|
|
251
324
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
252
325
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
253
326
|
if (scenceView) {
|
|
@@ -257,7 +330,10 @@ const __default__ = {
|
|
|
257
330
|
|
|
258
331
|
viewModel.measureEvent.addEventListener(function (res) {
|
|
259
332
|
if (measureType.value === 'distance') {
|
|
260
|
-
if (res.distance)
|
|
333
|
+
if (res.distance) {
|
|
334
|
+
distanceValue = res.distance;
|
|
335
|
+
result.value = formatDistance(res.distance);
|
|
336
|
+
}
|
|
261
337
|
} else if (measureType.value === 'height' && res) {
|
|
262
338
|
result.value = {
|
|
263
339
|
spaceDistance: res.distance ? res.distance.toFixed(2) : 0,
|
|
@@ -298,14 +374,14 @@ const __default__ = {
|
|
|
298
374
|
}
|
|
299
375
|
|
|
300
376
|
function formatDistance(dis) {
|
|
301
|
-
var unit = "m";
|
|
302
|
-
|
|
303
377
|
if (dis > 5000) {
|
|
304
378
|
dis = dis / 1000;
|
|
305
|
-
|
|
379
|
+
distanceUnit.value = "km";
|
|
380
|
+
} else {
|
|
381
|
+
distanceUnit.value = "m";
|
|
306
382
|
}
|
|
307
383
|
|
|
308
|
-
return dis.toFixed(2) + " " +
|
|
384
|
+
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
309
385
|
}
|
|
310
386
|
|
|
311
387
|
function formatArea(area) {
|
|
@@ -322,6 +398,46 @@ const __default__ = {
|
|
|
322
398
|
function formatAzimuth(azimuth) {
|
|
323
399
|
var unit = "°";
|
|
324
400
|
return azimuth.toFixed(4) + " " + unit;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @description 监听单位变化操作
|
|
404
|
+
* @param {string} unit - 单位
|
|
405
|
+
*/
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
function onChangeUnit(unit) {
|
|
409
|
+
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
410
|
+
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* @description 测量距离数值单位换算
|
|
414
|
+
* @param {string} value - 原始数值
|
|
415
|
+
* @param {string} unit - 单位
|
|
416
|
+
* @returns {string} 新数值
|
|
417
|
+
*/
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
function convertValueUnitTotal(value, unit) {
|
|
421
|
+
let newValue = "";
|
|
422
|
+
|
|
423
|
+
switch (unit) {
|
|
424
|
+
case "m":
|
|
425
|
+
newValue = value.toFixed(2) + " m";
|
|
426
|
+
break;
|
|
427
|
+
|
|
428
|
+
case "km":
|
|
429
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
430
|
+
break;
|
|
431
|
+
|
|
432
|
+
case "n mile":
|
|
433
|
+
newValue = (value / 1852).toFixed(2) + " n mile";
|
|
434
|
+
break;
|
|
435
|
+
|
|
436
|
+
default:
|
|
437
|
+
break;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
return newValue;
|
|
325
441
|
} // 销毁
|
|
326
442
|
|
|
327
443
|
|
|
@@ -495,27 +611,51 @@ const __default__ = {
|
|
|
495
611
|
/* TEXT */
|
|
496
612
|
)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).measureTips), 1
|
|
497
613
|
/* TEXT */
|
|
498
|
-
))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).
|
|
614
|
+
))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).unit), 1
|
|
615
|
+
/* TEXT */
|
|
616
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_select, {
|
|
617
|
+
key: 0,
|
|
618
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(distanceUnit),
|
|
619
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
|
|
620
|
+
onChange: onChangeUnit
|
|
621
|
+
}, {
|
|
622
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(distanceUnits), item => {
|
|
623
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createBlock)(_component_kq_option, {
|
|
624
|
+
key: item.value,
|
|
625
|
+
label: item.label,
|
|
626
|
+
value: item.value
|
|
627
|
+
}, null, 8
|
|
628
|
+
/* PROPS */
|
|
629
|
+
, ["label", "value"]);
|
|
630
|
+
}), 128
|
|
631
|
+
/* KEYED_FRAGMENT */
|
|
632
|
+
))]),
|
|
633
|
+
_: 1
|
|
634
|
+
/* STABLE */
|
|
635
|
+
|
|
636
|
+
}, 8
|
|
637
|
+
/* PROPS */
|
|
638
|
+
, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("div", _hoisted_12, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_13, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).measureResult), 1
|
|
499
639
|
/* TEXT */
|
|
500
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div",
|
|
640
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", _hoisted_14, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_15, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).spaceDistance), 1
|
|
501
641
|
/* TEXT */
|
|
502
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
642
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_16, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).spaceDistance) + " m", 1
|
|
503
643
|
/* TEXT */
|
|
504
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
644
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_17, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).horizontalDistance), 1
|
|
505
645
|
/* TEXT */
|
|
506
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
646
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_18, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).horizontalDistance) + " m", 1
|
|
507
647
|
/* TEXT */
|
|
508
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
648
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_19, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).verticalDistance), 1
|
|
509
649
|
/* TEXT */
|
|
510
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
650
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_20, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).verticalDistance) + " m", 1
|
|
511
651
|
/* TEXT */
|
|
512
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
652
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_21, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).angle), 1
|
|
513
653
|
/* TEXT */
|
|
514
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
654
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_22, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result).angle) + " °", 1
|
|
515
655
|
/* TEXT */
|
|
516
|
-
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div",
|
|
656
|
+
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementBlock)("div", _hoisted_23, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_24, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(measureType)]), 1
|
|
517
657
|
/* TEXT */
|
|
518
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p",
|
|
658
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(result)), 1
|
|
519
659
|
/* TEXT */
|
|
520
660
|
)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true)], 2
|
|
521
661
|
/* CLASS */
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"2.4.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"2.4.6-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","xe-utils":"^3.5.4"}}
|
package/scenceview/index.js
CHANGED
|
@@ -1046,7 +1046,7 @@ class LayerManager {
|
|
|
1046
1046
|
|
|
1047
1047
|
case "geojson":
|
|
1048
1048
|
var ds = new Cesium.Kq3dGeoJsonDataSource(name);
|
|
1049
|
-
promise = ds.load(url, this._geojsonStyle).then(ds => {
|
|
1049
|
+
promise = ds.load(url, layerData.geojsonStyle || this._geojsonStyle).then(ds => {
|
|
1050
1050
|
ds.entities.values.forEach(entity => {
|
|
1051
1051
|
if (entity.polygon) {
|
|
1052
1052
|
entity.polyline = {
|