@kq_npm/client3d_webgl_vue 4.5.16 → 4.5.17-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 +4 -2
- package/aspectanalysis/index.js +3 -1
- package/boxclip/index.js +3 -1
- package/clientPrint/index.js +1796 -1740
- package/excavatefillanalysis/index.js +3 -1
- package/flight/index.js +3 -1
- package/floodanalysis/index.js +3 -1
- package/geologicalbodyanalysis/index.js +3 -1
- package/gpuspatialquery/index.js +3 -1
- package/heatmap3d/index.js +3 -1
- package/index.js +166 -134
- package/isolineanalysis/index.js +3 -1
- package/light/index.js +3 -1
- package/limitheightanalysis/index.js +3 -1
- package/measure/index.js +256 -233
- package/modelFlat/index.js +3 -1
- package/modelexcavate/index.js +3 -1
- package/modelfilter/index.js +3 -1
- package/modelprofileanalysis/index.js +3 -1
- package/modelselect/index.js +3 -1
- package/package.json +1 -1
- package/particleeffect/index.js +3 -1
- package/planeclip/index.js +3 -1
- package/roller/index.js +3 -1
- package/scaneffect/index.js +3 -1
- package/sceneadvancedtoimage/index.js +4 -2
- package/sceneapp/index.js +1053 -27
- package/sceneset/index.js +10 -8
- package/scenetohdimage/index.js +3 -1
- package/sceneview/index.js +1796 -1740
- package/screenshot/index.js +3 -1
- package/shadowanalysis/index.js +3 -1
- package/sightlineanalysis/index.js +3 -1
- package/skylineanalysis/index.js +3 -1
- package/slopeanalysis/index.js +3 -1
- package/slopeaspectanalysis/index.js +3 -1
- package/terrainoperation/index.js +3 -1
- package/terrainprofileanalysis/index.js +3 -1
- package/videofusion/index.js +3 -1
- package/videoproject/index.js +3 -1
- package/viewshedanalysis/index.js +3 -1
- package/weathereffect/index.js +3 -1
- package/wireframesketch/index.js +3 -1
package/sceneapp/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_types/global-event"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue"), require("@kq_npm/
|
|
3
|
+
module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_types/global-event"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client3d_webgl_vue"), require("@kq_npm/client_common_vue/_lang/index.js"), require("@kq_npm/client_common_vue/_mixin/render"), require("@kq_npm/client_common_vue/_utils/webmapservice"), require("@kq_npm/client_common_vue/_utils/dictionaries"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_types/global-event", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue", "@kq_npm/
|
|
5
|
+
define(["vue", "@kq_npm/client_common_vue/_types/global-event", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client3d_webgl_vue", "@kq_npm/client_common_vue/_lang/index.js", "@kq_npm/client_common_vue/_mixin/render", "@kq_npm/client_common_vue/_utils/webmapservice", "@kq_npm/client_common_vue/_utils/dictionaries"], factory);
|
|
6
6
|
else {
|
|
7
|
-
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_types/global-event"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue"), require("@kq_npm/
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_types/global-event"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client3d_webgl_vue"), require("@kq_npm/client_common_vue/_lang/index.js"), require("@kq_npm/client_common_vue/_mixin/render"), require("@kq_npm/client_common_vue/_utils/webmapservice"), require("@kq_npm/client_common_vue/_utils/dictionaries")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_types/global-event"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client3d_webgl_vue"], root["@kq_npm/client_common_vue/_lang/index.js"], root["@kq_npm/client_common_vue/_mixin/render"], root["@kq_npm/client_common_vue/_utils/webmapservice"], root["@kq_npm/client_common_vue/_utils/dictionaries"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__3536__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7064__,
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__3536__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7064__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__6459__, __WEBPACK_EXTERNAL_MODULE__5775__, __WEBPACK_EXTERNAL_MODULE__9678__, __WEBPACK_EXTERNAL_MODULE__3217__, __WEBPACK_EXTERNAL_MODULE__3569__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
@@ -97,7 +97,7 @@ exports.Z = (sfc, props) => {
|
|
|
97
97
|
/***/ }),
|
|
98
98
|
|
|
99
99
|
/***/ 1349:
|
|
100
|
-
/***/ (function(__unused_webpack_module,
|
|
100
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
101
101
|
|
|
102
102
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9389);
|
|
103
103
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -113,7 +113,186 @@ element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install =
|
|
|
113
113
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
114
114
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
115
115
|
};
|
|
116
|
-
/*
|
|
116
|
+
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
117
|
+
|
|
118
|
+
/***/ }),
|
|
119
|
+
|
|
120
|
+
/***/ 193:
|
|
121
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
122
|
+
|
|
123
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
124
|
+
/* harmony export */ "Z": function() { return /* binding */ MeasureViewModel; }
|
|
125
|
+
/* harmony export */ });
|
|
126
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5301);
|
|
127
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8470);
|
|
128
|
+
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
129
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1058);
|
|
130
|
+
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/*
|
|
135
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
136
|
+
* All rights reserved.
|
|
137
|
+
*/
|
|
138
|
+
//测量操作类
|
|
139
|
+
class MeasureViewModel {
|
|
140
|
+
constructor(viewer) {
|
|
141
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
142
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
143
|
+
//测量三维对象
|
|
144
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
145
|
+
//测量事件
|
|
146
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "activeEvent", null);
|
|
147
|
+
//活动事件
|
|
148
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, "nauticalMileUnit", "nmi");
|
|
149
|
+
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
150
|
+
this._viewer = viewer;
|
|
151
|
+
this.measureEvent = this._measureHandler.measureEvent;
|
|
152
|
+
this.activeEvent = this._measureHandler.activeEvent;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
//距离测量
|
|
156
|
+
distanceMeasure(mode) {
|
|
157
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
158
|
+
if (mode === "ground") {
|
|
159
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainDistance);
|
|
160
|
+
} else if (mode === "model") {
|
|
161
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelDistance);
|
|
162
|
+
} else {
|
|
163
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Distance);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
//高度测量(三角测量)
|
|
168
|
+
heightMeasure() {
|
|
169
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
170
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ComplexDistance);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
//面积测量
|
|
174
|
+
areaMeasure(mode) {
|
|
175
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
176
|
+
if (mode === "ground") {
|
|
177
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainArea);
|
|
178
|
+
} else if (mode === "model") {
|
|
179
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelArea);
|
|
180
|
+
} else {
|
|
181
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Area);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
//方位角测量
|
|
186
|
+
azimuthMeasure() {
|
|
187
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
188
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
//坐标测量
|
|
192
|
+
coordinateMeasure() {
|
|
193
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
194
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
//地形坡度测量
|
|
198
|
+
terrainSlopeMeasure() {
|
|
199
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
200
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainSlope);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
//场景坡度测量
|
|
204
|
+
sceneSlopeMeasure() {
|
|
205
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
206
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.SceneSlope);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
//结束测量
|
|
210
|
+
stopMeasure() {
|
|
211
|
+
this._measureHandler.stopMeasure();
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
//更新距离测量单位
|
|
215
|
+
updateDistanceUnit(distanceTotal, unit) {
|
|
216
|
+
if (this._measureHandler.measureResults) {
|
|
217
|
+
this._measureHandler.measureResults.forEach(measureResult => {
|
|
218
|
+
if (measureResult.polyline) {
|
|
219
|
+
let labels = measureResult.labels._labels;
|
|
220
|
+
let positions = measureResult.polyline.positions;
|
|
221
|
+
let dist = 0;
|
|
222
|
+
// 更新每段长度值
|
|
223
|
+
for (let i = 0; i < labels.length - 1; i++) {
|
|
224
|
+
if (labels[i].show && labels[i].text) {
|
|
225
|
+
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
226
|
+
labels[i].text = this.convertValueUnit(dist, unit);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
// 更新总长度值
|
|
231
|
+
measureResult.label.text = this.convertValueUnit(distanceTotal, unit);
|
|
232
|
+
}, this);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
//测量距离数值单位换算
|
|
237
|
+
convertValueUnit(value, unit) {
|
|
238
|
+
let newValue = "";
|
|
239
|
+
switch (unit) {
|
|
240
|
+
case "m":
|
|
241
|
+
newValue = value.toFixed(2) + " m";
|
|
242
|
+
break;
|
|
243
|
+
case "km":
|
|
244
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
245
|
+
break;
|
|
246
|
+
case this.nauticalMileUnit:
|
|
247
|
+
newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
|
|
248
|
+
break;
|
|
249
|
+
case "m²":
|
|
250
|
+
newValue = value.toFixed(2) + " m²";
|
|
251
|
+
break;
|
|
252
|
+
case "km²":
|
|
253
|
+
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
254
|
+
break;
|
|
255
|
+
case "mu":
|
|
256
|
+
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
257
|
+
break;
|
|
258
|
+
case "ha":
|
|
259
|
+
newValue = (value / 10000).toFixed(2) + " ha";
|
|
260
|
+
break;
|
|
261
|
+
default:
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
return newValue;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// 判断是否加载地形
|
|
268
|
+
checkTerrainAdded() {
|
|
269
|
+
return this._viewer.terrainProvider.availability;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// 判断是否加载模型
|
|
273
|
+
checkModelAdded() {
|
|
274
|
+
let isAdd = false;
|
|
275
|
+
let models = this._viewer.scene.primitives._primitives;
|
|
276
|
+
for (let i = 0; i < models.length; i++) {
|
|
277
|
+
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
278
|
+
isAdd = true;
|
|
279
|
+
break;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
return isAdd;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
//清除全部测量结果
|
|
286
|
+
clear() {
|
|
287
|
+
this._measureHandler && this._measureHandler.clear();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
//销毁
|
|
291
|
+
destroy() {
|
|
292
|
+
this.clear();
|
|
293
|
+
this._measureHandler = null;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
117
296
|
|
|
118
297
|
/***/ }),
|
|
119
298
|
|
|
@@ -149,7 +328,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".tool-bar-wrapper .tool-bar-wrapper-it
|
|
|
149
328
|
|
|
150
329
|
/***/ }),
|
|
151
330
|
|
|
152
|
-
/***/
|
|
331
|
+
/***/ 8008:
|
|
153
332
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
154
333
|
|
|
155
334
|
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7705);
|
|
@@ -456,6 +635,791 @@ module.exports = function (list, options) {
|
|
|
456
635
|
|
|
457
636
|
/***/ }),
|
|
458
637
|
|
|
638
|
+
/***/ 7226:
|
|
639
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
// EXPORTS
|
|
643
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
644
|
+
"Z": function() { return /* binding */ Measure; }
|
|
645
|
+
});
|
|
646
|
+
|
|
647
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
648
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
649
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
650
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
651
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
652
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
653
|
+
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
654
|
+
var icons_vue_ = __webpack_require__(8422);
|
|
655
|
+
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
656
|
+
var client_icons_vue_ = __webpack_require__(348);
|
|
657
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
658
|
+
var gis_utils_ = __webpack_require__(7135);
|
|
659
|
+
// EXTERNAL MODULE: ./src/webgl/measure/MeasureViewModel.js
|
|
660
|
+
var MeasureViewModel = __webpack_require__(193);
|
|
661
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
662
|
+
var util_ = __webpack_require__(3458);
|
|
663
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
664
|
+
var message = __webpack_require__(1349);
|
|
665
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
666
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
667
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
const _hoisted_1 = {
|
|
672
|
+
class: "kq-measure3d-box"
|
|
673
|
+
};
|
|
674
|
+
const _hoisted_2 = {
|
|
675
|
+
class: "kq-measure3d-mode"
|
|
676
|
+
};
|
|
677
|
+
const _hoisted_3 = {
|
|
678
|
+
class: "panel"
|
|
679
|
+
};
|
|
680
|
+
const _hoisted_4 = {
|
|
681
|
+
class: "title",
|
|
682
|
+
style: {
|
|
683
|
+
"line-height": "14px"
|
|
684
|
+
}
|
|
685
|
+
};
|
|
686
|
+
const _hoisted_5 = {
|
|
687
|
+
class: "kq-measure3d-btns"
|
|
688
|
+
};
|
|
689
|
+
const _hoisted_6 = {
|
|
690
|
+
key: 0,
|
|
691
|
+
class: "kq-measure3d-tip"
|
|
692
|
+
};
|
|
693
|
+
const _hoisted_7 = {
|
|
694
|
+
key: 0
|
|
695
|
+
};
|
|
696
|
+
const _hoisted_8 = {
|
|
697
|
+
key: 1
|
|
698
|
+
};
|
|
699
|
+
const _hoisted_9 = {
|
|
700
|
+
key: 1,
|
|
701
|
+
class: "kq-measure3d-result"
|
|
702
|
+
};
|
|
703
|
+
const _hoisted_10 = {
|
|
704
|
+
class: "kq-measure3d-result-panel"
|
|
705
|
+
};
|
|
706
|
+
const _hoisted_11 = {
|
|
707
|
+
key: 0,
|
|
708
|
+
class: "panel"
|
|
709
|
+
};
|
|
710
|
+
const _hoisted_12 = {
|
|
711
|
+
class: "title"
|
|
712
|
+
};
|
|
713
|
+
const _hoisted_13 = {
|
|
714
|
+
class: "panel"
|
|
715
|
+
};
|
|
716
|
+
const _hoisted_14 = {
|
|
717
|
+
class: "title"
|
|
718
|
+
};
|
|
719
|
+
const _hoisted_15 = {
|
|
720
|
+
key: 0,
|
|
721
|
+
class: "result"
|
|
722
|
+
};
|
|
723
|
+
const _hoisted_16 = {
|
|
724
|
+
class: "tit"
|
|
725
|
+
};
|
|
726
|
+
const _hoisted_17 = {
|
|
727
|
+
class: "res"
|
|
728
|
+
};
|
|
729
|
+
const _hoisted_18 = {
|
|
730
|
+
class: "tit"
|
|
731
|
+
};
|
|
732
|
+
const _hoisted_19 = {
|
|
733
|
+
class: "res"
|
|
734
|
+
};
|
|
735
|
+
const _hoisted_20 = {
|
|
736
|
+
class: "tit"
|
|
737
|
+
};
|
|
738
|
+
const _hoisted_21 = {
|
|
739
|
+
class: "res"
|
|
740
|
+
};
|
|
741
|
+
const _hoisted_22 = {
|
|
742
|
+
class: "tit"
|
|
743
|
+
};
|
|
744
|
+
const _hoisted_23 = {
|
|
745
|
+
class: "res"
|
|
746
|
+
};
|
|
747
|
+
const _hoisted_24 = {
|
|
748
|
+
key: 1,
|
|
749
|
+
class: "result"
|
|
750
|
+
};
|
|
751
|
+
const _hoisted_25 = {
|
|
752
|
+
class: "tit"
|
|
753
|
+
};
|
|
754
|
+
const _hoisted_26 = {
|
|
755
|
+
class: "res"
|
|
756
|
+
};
|
|
757
|
+
const _hoisted_27 = {
|
|
758
|
+
class: "tit"
|
|
759
|
+
};
|
|
760
|
+
const _hoisted_28 = {
|
|
761
|
+
class: "res"
|
|
762
|
+
};
|
|
763
|
+
const _hoisted_29 = {
|
|
764
|
+
class: "tit"
|
|
765
|
+
};
|
|
766
|
+
const _hoisted_30 = {
|
|
767
|
+
class: "res"
|
|
768
|
+
};
|
|
769
|
+
const _hoisted_31 = {
|
|
770
|
+
key: 2,
|
|
771
|
+
class: "result"
|
|
772
|
+
};
|
|
773
|
+
const _hoisted_32 = {
|
|
774
|
+
class: "tit"
|
|
775
|
+
};
|
|
776
|
+
const _hoisted_33 = {
|
|
777
|
+
class: "res"
|
|
778
|
+
};
|
|
779
|
+
const _hoisted_34 = {
|
|
780
|
+
class: "tit"
|
|
781
|
+
};
|
|
782
|
+
const _hoisted_35 = {
|
|
783
|
+
class: "res"
|
|
784
|
+
};
|
|
785
|
+
const _hoisted_36 = {
|
|
786
|
+
key: 3,
|
|
787
|
+
class: "result"
|
|
788
|
+
};
|
|
789
|
+
const _hoisted_37 = {
|
|
790
|
+
class: "tit"
|
|
791
|
+
};
|
|
792
|
+
const _hoisted_38 = {
|
|
793
|
+
class: "res"
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
const __default__ = {
|
|
804
|
+
name: "Kq3dMeasure"
|
|
805
|
+
};
|
|
806
|
+
/* harmony default export */ var Measurevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
807
|
+
props: {
|
|
808
|
+
//指定组件绑定的viewer对象的div的id
|
|
809
|
+
target: String,
|
|
810
|
+
// 设置参数
|
|
811
|
+
settingParams: {
|
|
812
|
+
type: Object
|
|
813
|
+
},
|
|
814
|
+
// 是否显示阴影效果
|
|
815
|
+
showShadow: {
|
|
816
|
+
type: Boolean,
|
|
817
|
+
default: true
|
|
818
|
+
},
|
|
819
|
+
/**
|
|
820
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
821
|
+
*/
|
|
822
|
+
position: [String, Object],
|
|
823
|
+
// 是否生成HeaderTemp
|
|
824
|
+
showHeaderTemp: {
|
|
825
|
+
type: Boolean,
|
|
826
|
+
default: false
|
|
827
|
+
},
|
|
828
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
829
|
+
isCollapseHeaderTemp: {
|
|
830
|
+
type: Boolean,
|
|
831
|
+
default: false
|
|
832
|
+
},
|
|
833
|
+
// HeaderTemp标题
|
|
834
|
+
headerTempTitle: {
|
|
835
|
+
type: String
|
|
836
|
+
},
|
|
837
|
+
// HeaderTemp图标
|
|
838
|
+
headerTempIcon: {
|
|
839
|
+
type: [Object, String],
|
|
840
|
+
default: client_icons_vue_.IconMeasure2D
|
|
841
|
+
},
|
|
842
|
+
// HeaderTemp Title&Icon的位置
|
|
843
|
+
isRight: {
|
|
844
|
+
type: Boolean,
|
|
845
|
+
default: true
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
setup(__props, {
|
|
849
|
+
expose: __expose
|
|
850
|
+
}) {
|
|
851
|
+
const props = __props;
|
|
852
|
+
let measureType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 测量类型
|
|
853
|
+
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
854
|
+
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
855
|
+
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
856
|
+
let distanceValue = null;
|
|
857
|
+
// 默认显示距离的单位
|
|
858
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
859
|
+
// 海里单位选择
|
|
860
|
+
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
861
|
+
// 面积单位
|
|
862
|
+
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
863
|
+
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
864
|
+
const {
|
|
865
|
+
proxy
|
|
866
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
867
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(Object.assign({}, proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"], proxy.$i18n.global.messages[proxy.$i18n.global.locale]["leaflet"]));
|
|
868
|
+
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
869
|
+
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(loadModeData());
|
|
870
|
+
let viewModel = null;
|
|
871
|
+
// 国际化
|
|
872
|
+
let {
|
|
873
|
+
locale,
|
|
874
|
+
messages
|
|
875
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
876
|
+
let measureTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
877
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
878
|
+
language.value = Object.assign({}, messages.value[newVal]["webgl"], messages.value[newVal]["leaflet"]);
|
|
879
|
+
measureTitle.value = language.value.measure;
|
|
880
|
+
modeList.value = loadModeData();
|
|
881
|
+
distanceUnits.value = setDistanceUnits();
|
|
882
|
+
areaUnits.value = setAreaUnits();
|
|
883
|
+
});
|
|
884
|
+
|
|
885
|
+
// 距离测量单位
|
|
886
|
+
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
887
|
+
let setDistanceUnits = () => {
|
|
888
|
+
return [{
|
|
889
|
+
label: language.value.kilometre,
|
|
890
|
+
value: "km"
|
|
891
|
+
}, {
|
|
892
|
+
label: language.value.metre,
|
|
893
|
+
value: "m"
|
|
894
|
+
}, {
|
|
895
|
+
label: language.value.nauticalMile,
|
|
896
|
+
value: nauticalMileUnit
|
|
897
|
+
}];
|
|
898
|
+
};
|
|
899
|
+
distanceUnits.value = setDistanceUnits();
|
|
900
|
+
// 面积测量单位
|
|
901
|
+
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
902
|
+
let setAreaUnits = () => {
|
|
903
|
+
return [{
|
|
904
|
+
label: language.value.squareKilometers,
|
|
905
|
+
value: "km²"
|
|
906
|
+
}, {
|
|
907
|
+
label: language.value.squareMeter,
|
|
908
|
+
value: "m²"
|
|
909
|
+
}, {
|
|
910
|
+
label: language.value.mu,
|
|
911
|
+
value: "mu"
|
|
912
|
+
}, {
|
|
913
|
+
label: language.value.hectare,
|
|
914
|
+
value: "ha"
|
|
915
|
+
}];
|
|
916
|
+
};
|
|
917
|
+
areaUnits.value = setAreaUnits();
|
|
918
|
+
|
|
919
|
+
// 组件容器Ref
|
|
920
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
921
|
+
|
|
922
|
+
// 生成组件默认header
|
|
923
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
924
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
925
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
926
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
927
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
928
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
929
|
+
});
|
|
930
|
+
watchCreateHeaderTemp();
|
|
931
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
932
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
933
|
+
watchCreateHeaderTemp();
|
|
934
|
+
});
|
|
935
|
+
});
|
|
936
|
+
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
937
|
+
if (scenceView) {
|
|
938
|
+
viewModel = new MeasureViewModel/* default */.Z(scenceView._viewer);
|
|
939
|
+
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
940
|
+
//注册测量事件,以获取测量结果
|
|
941
|
+
viewModel.measureEvent.addEventListener(function (res) {
|
|
942
|
+
if (measureType.value === "distance") {
|
|
943
|
+
if (res.distance) {
|
|
944
|
+
distanceValue = res.distance;
|
|
945
|
+
if (props.settingParams && props.settingParams.distanceUnit) {
|
|
946
|
+
distanceUnit.value = props.settingParams && props.settingParams.distanceUnit || "";
|
|
947
|
+
onChangeUnit(distanceUnit.value);
|
|
948
|
+
} else {
|
|
949
|
+
result.value = formatDistance(res.distance);
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
} else if (measureType.value === "height" && res) {
|
|
953
|
+
result.value = {
|
|
954
|
+
spaceDistance: res.distance ? res.distance.toFixed(2) : 0,
|
|
955
|
+
horizontalDistance: res.hDistance ? res.hDistance.toFixed(2) : 0,
|
|
956
|
+
verticalDistance: res.vDistance ? res.vDistance.toFixed(2) : 0,
|
|
957
|
+
angle: res.angle ? res.angle.toFixed(2).replace(/\.?0+$/, '') : 0
|
|
958
|
+
};
|
|
959
|
+
} else if (measureType.value === "area") {
|
|
960
|
+
if (res && res.area || res && res.area == 0) {
|
|
961
|
+
distanceValue = res.area;
|
|
962
|
+
if (props.settingParams && props.settingParams.areaUnit) {
|
|
963
|
+
areaUnit.value = props.settingParams && props.settingParams.areaUnit || "";
|
|
964
|
+
onChangeUnit(areaUnit.value);
|
|
965
|
+
} else {
|
|
966
|
+
result.value = formatArea(res.area);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
} else if (measureType.value === "azimuth" && res) {
|
|
970
|
+
if (res.positions && res.positions.length > 0) {
|
|
971
|
+
result.value = {
|
|
972
|
+
azimuth: res.azimuth.toFixed(4),
|
|
973
|
+
distance: res.distance.toFixed(2)
|
|
974
|
+
};
|
|
975
|
+
} else result.value = 0;
|
|
976
|
+
} else if (measureType.value === "slope" && res) {
|
|
977
|
+
if (res.positions && res.positions.length > 0) {
|
|
978
|
+
result.value = res.slopeAngle.toFixed(2).replace(/\.?0+$/, '') + " °";
|
|
979
|
+
} else result.value = 0;
|
|
980
|
+
} else if (measureType.value === "coordinate") {
|
|
981
|
+
if (res && res.coordinate) {
|
|
982
|
+
let convertValue = null;
|
|
983
|
+
if (props.settingParams && props.settingParams.isConvert) {
|
|
984
|
+
result.value = {
|
|
985
|
+
longitude: res.coordinate.longitude ? convertXY(res.coordinate.longitude) : 0,
|
|
986
|
+
latitude: res.coordinate.latitude ? convertXY(res.coordinate.latitude) : 0,
|
|
987
|
+
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
988
|
+
};
|
|
989
|
+
convertValue = [result.value.longitude, result.value.latitude];
|
|
990
|
+
} else {
|
|
991
|
+
result.value = {
|
|
992
|
+
longitude: res.coordinate.longitude ? res.coordinate.longitude.toFixed(5) + "°" : 0,
|
|
993
|
+
latitude: res.coordinate.latitude ? res.coordinate.latitude.toFixed(5) + "°" : 0,
|
|
994
|
+
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
998
|
+
res.measureResult.labels._labels.forEach(label => {
|
|
999
|
+
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
1000
|
+
if (convertValue) {
|
|
1001
|
+
label.text = label.text.replace(res.coordinate.longitude.toFixed(5) + "°", convertValue[0]).replace(res.coordinate.latitude.toFixed(5) + "°", convertValue[1]);
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
viewModel.activeEvent.addEventListener(function (active) {
|
|
1009
|
+
if (!active) {
|
|
1010
|
+
// isActive.value = null;
|
|
1011
|
+
isTips.value = false;
|
|
1012
|
+
if (result.value === 0) return;
|
|
1013
|
+
if (measureType.value === "height" && result.value.angle === 0) return;
|
|
1014
|
+
if (measureType.value === "azimuth" && result.value === 0) return;
|
|
1015
|
+
isResult.value = true;
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
let handler = new Cesium.ScreenSpaceEventHandler(scenceView._viewer.scene.canvas);
|
|
1019
|
+
handler.setInputAction(function () {
|
|
1020
|
+
if (!viewModel._measureHandler.active) return;
|
|
1021
|
+
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
1022
|
+
if (!isDrawing) {
|
|
1023
|
+
let measureResults = viewModel._measureHandler.measureResults;
|
|
1024
|
+
if (measureResults && measureResults.length > 0) {
|
|
1025
|
+
measureResults[0].destroy();
|
|
1026
|
+
}
|
|
1027
|
+
if (measureType.value === "coordinate") {
|
|
1028
|
+
isTips.value = false;
|
|
1029
|
+
isResult.value = true;
|
|
1030
|
+
} else {
|
|
1031
|
+
isTips.value = true;
|
|
1032
|
+
isResult.value = false;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
if (isDrawing) {
|
|
1036
|
+
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
1037
|
+
continueMeasure();
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
1041
|
+
handler.setInputAction(function () {
|
|
1042
|
+
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
1043
|
+
if (!isDrawing) {
|
|
1044
|
+
isActive.value = null;
|
|
1045
|
+
viewModel.stopMeasure();
|
|
1046
|
+
} else {
|
|
1047
|
+
continueMeasure();
|
|
1048
|
+
}
|
|
1049
|
+
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
1050
|
+
window.measureClickHandler = handler;
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
});
|
|
1054
|
+
// 经纬度转度分秒
|
|
1055
|
+
function convertXY(val) {
|
|
1056
|
+
if (!val) {
|
|
1057
|
+
return "";
|
|
1058
|
+
}
|
|
1059
|
+
// 度=经纬度的整数部分
|
|
1060
|
+
let d = Math.floor(Number(val));
|
|
1061
|
+
// 经纬度的小数部分*60
|
|
1062
|
+
let temp1 = (Number(val) - Number(d)) * 60;
|
|
1063
|
+
// 分=(经纬度的小数部分*60)的整数部分
|
|
1064
|
+
let f = Math.floor(Number(temp1));
|
|
1065
|
+
// 秒=(经纬度的小数部分*60-分)*60
|
|
1066
|
+
let m = Math.floor((Number(temp1) - Number(f)) * 60);
|
|
1067
|
+
return d + "°" + f + "′" + m + "″";
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* @description 监听header生成
|
|
1071
|
+
*/
|
|
1072
|
+
const watchCreateHeaderTemp = () => {
|
|
1073
|
+
if (props.showHeaderTemp) {
|
|
1074
|
+
// 生成headerTemp
|
|
1075
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle);
|
|
1076
|
+
}
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
//加载测量模式数据
|
|
1080
|
+
function loadModeData() {
|
|
1081
|
+
return [{
|
|
1082
|
+
label: language.value.spaceMeasure,
|
|
1083
|
+
value: "space"
|
|
1084
|
+
}, {
|
|
1085
|
+
label: language.value.groundMeasure,
|
|
1086
|
+
value: "ground"
|
|
1087
|
+
}, {
|
|
1088
|
+
label: language.value.modelMeasure,
|
|
1089
|
+
value: "model"
|
|
1090
|
+
}];
|
|
1091
|
+
}
|
|
1092
|
+
function formatDistance(dis) {
|
|
1093
|
+
if (dis > 5000) {
|
|
1094
|
+
dis = dis / 1000;
|
|
1095
|
+
distanceUnit.value = "km";
|
|
1096
|
+
} else {
|
|
1097
|
+
distanceUnit.value = "m";
|
|
1098
|
+
}
|
|
1099
|
+
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
1100
|
+
}
|
|
1101
|
+
function formatArea(area) {
|
|
1102
|
+
areaUnit.value = "m²";
|
|
1103
|
+
if (area > 1000000) {
|
|
1104
|
+
area = area / 1000000;
|
|
1105
|
+
areaUnit.value = "km²";
|
|
1106
|
+
}
|
|
1107
|
+
return area.toFixed(2) + " " + areaUnit.value;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* @description 监听单位变化操作
|
|
1112
|
+
* @param {string} unit - 单位
|
|
1113
|
+
*/
|
|
1114
|
+
function onChangeUnit(unit) {
|
|
1115
|
+
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
1116
|
+
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* @description 测量距离数值单位换算
|
|
1121
|
+
* @param {string} value - 原始数值
|
|
1122
|
+
* @param {string} unit - 单位
|
|
1123
|
+
* @returns {string} 新数值
|
|
1124
|
+
*/
|
|
1125
|
+
function convertValueUnitTotal(value, unit) {
|
|
1126
|
+
let newValue = "";
|
|
1127
|
+
switch (unit) {
|
|
1128
|
+
case "m":
|
|
1129
|
+
newValue = value.toFixed(2) + " m";
|
|
1130
|
+
break;
|
|
1131
|
+
case "km":
|
|
1132
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
1133
|
+
break;
|
|
1134
|
+
case nauticalMileUnit:
|
|
1135
|
+
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
1136
|
+
break;
|
|
1137
|
+
case "m²":
|
|
1138
|
+
newValue = value.toFixed(2) + " m²";
|
|
1139
|
+
break;
|
|
1140
|
+
case "km²":
|
|
1141
|
+
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
1142
|
+
break;
|
|
1143
|
+
case "mu":
|
|
1144
|
+
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
1145
|
+
break;
|
|
1146
|
+
case "ha":
|
|
1147
|
+
newValue = (value / 10000).toFixed(2) + " ha";
|
|
1148
|
+
break;
|
|
1149
|
+
default:
|
|
1150
|
+
break;
|
|
1151
|
+
}
|
|
1152
|
+
return newValue;
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
// 销毁
|
|
1156
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
1157
|
+
clearMeasure();
|
|
1158
|
+
if (window.measureClickHandler) {
|
|
1159
|
+
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
1160
|
+
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
1161
|
+
}
|
|
1162
|
+
});
|
|
1163
|
+
|
|
1164
|
+
//开始测量
|
|
1165
|
+
function startMeasure(type) {
|
|
1166
|
+
if (mode.value === "ground") {
|
|
1167
|
+
if (!viewModel.checkTerrainAdded()) {
|
|
1168
|
+
(0,message/* default */.Z)({
|
|
1169
|
+
message: language.value["measuretAddTerrainTips"],
|
|
1170
|
+
type: "warning"
|
|
1171
|
+
});
|
|
1172
|
+
return;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
if (mode.value === "model") {
|
|
1176
|
+
if (!viewModel.checkModelAdded()) {
|
|
1177
|
+
(0,message/* default */.Z)({
|
|
1178
|
+
message: language.value["measuretAddModelTips"],
|
|
1179
|
+
type: "warning"
|
|
1180
|
+
});
|
|
1181
|
+
return;
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
viewModel.clear();
|
|
1185
|
+
result.value = 0;
|
|
1186
|
+
isTips.value = true;
|
|
1187
|
+
isResult.value = false;
|
|
1188
|
+
measureType.value = type;
|
|
1189
|
+
isActive.value = type;
|
|
1190
|
+
switch (type) {
|
|
1191
|
+
case "distance":
|
|
1192
|
+
viewModel.distanceMeasure(mode.value);
|
|
1193
|
+
break;
|
|
1194
|
+
case "area":
|
|
1195
|
+
viewModel.areaMeasure(mode.value);
|
|
1196
|
+
break;
|
|
1197
|
+
case "height":
|
|
1198
|
+
viewModel.heightMeasure();
|
|
1199
|
+
break;
|
|
1200
|
+
case "coordinate":
|
|
1201
|
+
viewModel.coordinateMeasure();
|
|
1202
|
+
break;
|
|
1203
|
+
case "azimuth":
|
|
1204
|
+
viewModel.azimuthMeasure();
|
|
1205
|
+
break;
|
|
1206
|
+
case "slope":
|
|
1207
|
+
if (mode.value === "ground") {
|
|
1208
|
+
viewModel.terrainSlopeMeasure();
|
|
1209
|
+
} else if (mode.value === "model") {
|
|
1210
|
+
viewModel.sceneSlopeMeasure();
|
|
1211
|
+
}
|
|
1212
|
+
break;
|
|
1213
|
+
default:
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
function continueMeasure() {
|
|
1218
|
+
setTimeout(() => {
|
|
1219
|
+
switch (measureType.value) {
|
|
1220
|
+
case "distance":
|
|
1221
|
+
viewModel.distanceMeasure(mode.value);
|
|
1222
|
+
break;
|
|
1223
|
+
case "area":
|
|
1224
|
+
viewModel.areaMeasure(mode.value);
|
|
1225
|
+
break;
|
|
1226
|
+
case "height":
|
|
1227
|
+
viewModel.heightMeasure();
|
|
1228
|
+
break;
|
|
1229
|
+
case "coordinate":
|
|
1230
|
+
viewModel.coordinateMeasure();
|
|
1231
|
+
break;
|
|
1232
|
+
case "azimuth":
|
|
1233
|
+
viewModel.azimuthMeasure();
|
|
1234
|
+
break;
|
|
1235
|
+
case "slope":
|
|
1236
|
+
if (mode.value === "ground") {
|
|
1237
|
+
viewModel.terrainSlopeMeasure();
|
|
1238
|
+
} else if (mode.value === "model") {
|
|
1239
|
+
viewModel.sceneSlopeMeasure();
|
|
1240
|
+
}
|
|
1241
|
+
break;
|
|
1242
|
+
default:
|
|
1243
|
+
break;
|
|
1244
|
+
}
|
|
1245
|
+
}, 300);
|
|
1246
|
+
}
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* 清除测量
|
|
1250
|
+
*/
|
|
1251
|
+
function clearMeasure() {
|
|
1252
|
+
viewModel && viewModel.clear();
|
|
1253
|
+
measureType.value = null;
|
|
1254
|
+
isActive.value = null;
|
|
1255
|
+
isTips.value = false;
|
|
1256
|
+
isResult.value = false;
|
|
1257
|
+
}
|
|
1258
|
+
__expose({
|
|
1259
|
+
loadModeData,
|
|
1260
|
+
formatDistance,
|
|
1261
|
+
formatArea,
|
|
1262
|
+
startMeasure,
|
|
1263
|
+
clearMeasure
|
|
1264
|
+
});
|
|
1265
|
+
return (_ctx, _cache) => {
|
|
1266
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
1267
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
1268
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
1269
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
1270
|
+
const _component_kq_divider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-divider");
|
|
1271
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
1272
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-measure3d", {
|
|
1273
|
+
'kq-box-shadow': __props.showShadow
|
|
1274
|
+
}]),
|
|
1275
|
+
ref_key: "boxRef",
|
|
1276
|
+
ref: boxRef
|
|
1277
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
1278
|
+
key: 0,
|
|
1279
|
+
ref_key: "headerTempRef",
|
|
1280
|
+
ref: headerTempRef
|
|
1281
|
+
}, null, 512 /* NEED_PATCH */)) : (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_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).mode), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
1282
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
|
|
1283
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
1284
|
+
}, {
|
|
1285
|
+
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)(modeList), item => {
|
|
1286
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
1287
|
+
key: item.value,
|
|
1288
|
+
label: item.label,
|
|
1289
|
+
value: item.value
|
|
1290
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
1291
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
1292
|
+
_: 1 /* STABLE */
|
|
1293
|
+
}, 8 /* PROPS */, ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1294
|
+
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
|
|
1295
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'distance' ? 'is-active' : null),
|
|
1296
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
|
|
1297
|
+
}, {
|
|
1298
|
+
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, {
|
|
1299
|
+
size: 24
|
|
1300
|
+
}, {
|
|
1301
|
+
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_.IconMeasureDistance))]),
|
|
1302
|
+
_: 1 /* STABLE */
|
|
1303
|
+
})]),
|
|
1304
|
+
_: 1 /* STABLE */
|
|
1305
|
+
}, 8 /* PROPS */, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1306
|
+
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
|
|
1307
|
+
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),
|
|
1308
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
|
|
1309
|
+
}, {
|
|
1310
|
+
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, {
|
|
1311
|
+
size: 24
|
|
1312
|
+
}, {
|
|
1313
|
+
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))]),
|
|
1314
|
+
_: 1 /* STABLE */
|
|
1315
|
+
})]),
|
|
1316
|
+
_: 1 /* STABLE */
|
|
1317
|
+
}, 8 /* PROPS */, ["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, {
|
|
1318
|
+
onClick: _cache[3] || (_cache[3] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('height'), ["stop"])),
|
|
1319
|
+
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),
|
|
1320
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
1321
|
+
}, {
|
|
1322
|
+
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, {
|
|
1323
|
+
size: 24
|
|
1324
|
+
}, {
|
|
1325
|
+
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_.IconMeasureCoordinate))]),
|
|
1326
|
+
_: 1 /* STABLE */
|
|
1327
|
+
})]),
|
|
1328
|
+
_: 1 /* STABLE */
|
|
1329
|
+
}, 8 /* PROPS */, ["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, {
|
|
1330
|
+
onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('azimuth'), ["stop"])),
|
|
1331
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'azimuth' ? 'is-active' : null),
|
|
1332
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth
|
|
1333
|
+
}, {
|
|
1334
|
+
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, {
|
|
1335
|
+
size: 24
|
|
1336
|
+
}, {
|
|
1337
|
+
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_.IconAzimuthMeasure))]),
|
|
1338
|
+
_: 1 /* STABLE */
|
|
1339
|
+
})]),
|
|
1340
|
+
_: 1 /* STABLE */
|
|
1341
|
+
}, 8 /* PROPS */, ["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, {
|
|
1342
|
+
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
|
|
1343
|
+
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),
|
|
1344
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
|
|
1345
|
+
}, {
|
|
1346
|
+
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, {
|
|
1347
|
+
size: 24
|
|
1348
|
+
}, {
|
|
1349
|
+
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))]),
|
|
1350
|
+
_: 1 /* STABLE */
|
|
1351
|
+
})]),
|
|
1352
|
+
_: 1 /* STABLE */
|
|
1353
|
+
}, 8 /* PROPS */, ["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, {
|
|
1354
|
+
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('slope'), ["stop"])),
|
|
1355
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'slope' ? 'is-active' : null),
|
|
1356
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slope
|
|
1357
|
+
}, {
|
|
1358
|
+
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, {
|
|
1359
|
+
size: 24
|
|
1360
|
+
}, {
|
|
1361
|
+
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_.IconSlopeMeasure))]),
|
|
1362
|
+
_: 1 /* STABLE */
|
|
1363
|
+
})]),
|
|
1364
|
+
_: 1 /* STABLE */
|
|
1365
|
+
}, 8 /* PROPS */, ["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, {
|
|
1366
|
+
type: "danger",
|
|
1367
|
+
plain: "",
|
|
1368
|
+
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
|
|
1369
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
1370
|
+
}, {
|
|
1371
|
+
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, {
|
|
1372
|
+
class: "icon-delete",
|
|
1373
|
+
size: 24
|
|
1374
|
+
}, {
|
|
1375
|
+
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)(icons_vue_.Delete))]),
|
|
1376
|
+
_: 1 /* STABLE */
|
|
1377
|
+
})]),
|
|
1378
|
+
_: 1 /* STABLE */
|
|
1379
|
+
}, 8 /* PROPS */, ["onClick", "title"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isTips) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((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).measureTips1), 1 /* TEXT */)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_8, (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 /* TEXT */))])) : (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_9, [(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_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_11, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_12, (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 /* TEXT */), (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, {
|
|
1380
|
+
key: 0,
|
|
1381
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnit),
|
|
1382
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
|
|
1383
|
+
onChange: onChangeUnit
|
|
1384
|
+
}, {
|
|
1385
|
+
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 => {
|
|
1386
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
1387
|
+
key: item.value,
|
|
1388
|
+
label: item.label,
|
|
1389
|
+
value: item.value
|
|
1390
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
1391
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
1392
|
+
_: 1 /* STABLE */
|
|
1393
|
+
}, 8 /* PROPS */, ["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_.unref)(measureType) === 'area' ? ((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, {
|
|
1394
|
+
key: 1,
|
|
1395
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(areaUnit),
|
|
1396
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(areaUnit) ? areaUnit.value = $event : areaUnit = $event),
|
|
1397
|
+
onChange: onChangeUnit
|
|
1398
|
+
}, {
|
|
1399
|
+
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)(areaUnits), item => {
|
|
1400
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
1401
|
+
key: item.value,
|
|
1402
|
+
label: item.label,
|
|
1403
|
+
value: item.value
|
|
1404
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
1405
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
1406
|
+
_: 1 /* STABLE */
|
|
1407
|
+
}, 8 /* PROPS */, ["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_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_13, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_14, (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 /* TEXT */), (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_15, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_16, (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 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_17, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).spaceDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_18, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).horizontalDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_19, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).horizontalDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_20, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).verticalDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_21, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).verticalDistance) + " m", 1 /* TEXT */), (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)(language).angle), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_23, (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 /* TEXT */)])) : (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_24, [(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)(language).longitude), 1 /* TEXT */), (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)(result).longitude), 1 /* TEXT */), (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)(language).latitude), 1 /* TEXT */), (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)(result).latitude), 1 /* TEXT */), (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)(language).elevation), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_30, (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 /* TEXT */)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_31, [(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)(language).azimuth), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).azimuth) + " °", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_34, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance) + " m", 1 /* TEXT */)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_37, (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 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_38, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1 /* TEXT */)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2 /* CLASS */);
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1410
|
+
}));
|
|
1411
|
+
;// CONCATENATED MODULE: ./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
1412
|
+
|
|
1413
|
+
;// CONCATENATED MODULE: ./src/webgl/measure/Measure.vue
|
|
1414
|
+
|
|
1415
|
+
|
|
1416
|
+
|
|
1417
|
+
const __exports__ = Measurevue_type_script_setup_true_lang_js;
|
|
1418
|
+
|
|
1419
|
+
/* harmony default export */ var Measure = (__exports__);
|
|
1420
|
+
|
|
1421
|
+
/***/ }),
|
|
1422
|
+
|
|
459
1423
|
/***/ 8422:
|
|
460
1424
|
/***/ (function(module) {
|
|
461
1425
|
|
|
@@ -610,6 +1574,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__3569__;
|
|
|
610
1574
|
|
|
611
1575
|
/***/ }),
|
|
612
1576
|
|
|
1577
|
+
/***/ 7135:
|
|
1578
|
+
/***/ (function(module) {
|
|
1579
|
+
|
|
1580
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__7135__;
|
|
1581
|
+
|
|
1582
|
+
/***/ }),
|
|
1583
|
+
|
|
613
1584
|
/***/ 3458:
|
|
614
1585
|
/***/ (function(module) {
|
|
615
1586
|
|
|
@@ -636,6 +1607,61 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__7997__;
|
|
|
636
1607
|
|
|
637
1608
|
module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
638
1609
|
|
|
1610
|
+
/***/ }),
|
|
1611
|
+
|
|
1612
|
+
/***/ 5301:
|
|
1613
|
+
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
// EXPORTS
|
|
1617
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
1618
|
+
"Z": function() { return /* binding */ _defineProperty; }
|
|
1619
|
+
});
|
|
1620
|
+
|
|
1621
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
1622
|
+
function _typeof(o) {
|
|
1623
|
+
"@babel/helpers - typeof";
|
|
1624
|
+
|
|
1625
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
1626
|
+
return typeof o;
|
|
1627
|
+
} : function (o) {
|
|
1628
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1629
|
+
}, _typeof(o);
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
1633
|
+
|
|
1634
|
+
function toPrimitive(t, r) {
|
|
1635
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
1636
|
+
var e = t[Symbol.toPrimitive];
|
|
1637
|
+
if (void 0 !== e) {
|
|
1638
|
+
var i = e.call(t, r || "default");
|
|
1639
|
+
if ("object" != _typeof(i)) return i;
|
|
1640
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1641
|
+
}
|
|
1642
|
+
return ("string" === r ? String : Number)(t);
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
1646
|
+
|
|
1647
|
+
|
|
1648
|
+
function toPropertyKey(t) {
|
|
1649
|
+
var i = toPrimitive(t, "string");
|
|
1650
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
1654
|
+
|
|
1655
|
+
function _defineProperty(e, r, t) {
|
|
1656
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1657
|
+
value: t,
|
|
1658
|
+
enumerable: !0,
|
|
1659
|
+
configurable: !0,
|
|
1660
|
+
writable: !0
|
|
1661
|
+
}) : e[r] = t, e;
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
|
|
639
1665
|
/***/ })
|
|
640
1666
|
|
|
641
1667
|
/******/ });
|
|
@@ -950,12 +1976,14 @@ const resourceApi = {
|
|
|
950
1976
|
}
|
|
951
1977
|
};
|
|
952
1978
|
/* harmony default export */ var api_resourceApi = (resourceApi);
|
|
953
|
-
// EXTERNAL MODULE:
|
|
954
|
-
var
|
|
1979
|
+
// EXTERNAL MODULE: ./src/webgl/measure/Measure.vue + 2 modules
|
|
1980
|
+
var Measure = __webpack_require__(7226);
|
|
955
1981
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
956
1982
|
var icons_vue_ = __webpack_require__(8422);
|
|
957
1983
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
958
1984
|
var client_icons_vue_ = __webpack_require__(348);
|
|
1985
|
+
// EXTERNAL MODULE: external "@kq_npm/client3d_webgl_vue"
|
|
1986
|
+
var client3d_webgl_vue_ = __webpack_require__(6459);
|
|
959
1987
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
960
1988
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
961
1989
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBar.vue?vue&type=script&setup=true&lang=js
|
|
@@ -2238,10 +3266,9 @@ elink.href=_url;elink.setAttribute("download","shapefile.zip");elink.style.displ
|
|
|
2238
3266
|
* @param coordinates
|
|
2239
3267
|
*/function removeCPointFromCoordinates(coordinates){for(let i=0;i<coordinates.length;i++){let points=coordinates[i];for(let m=points.length-2;m>=0;m--){let p=points[m];let q=points[m+1];if(p[0]===q[0]&&p[1]===q[1]){points.splice(m+1,1);}}}}/**
|
|
2240
3268
|
* 导出txt
|
|
2241
|
-
* @param {string} dataUrl //通用geometry服务
|
|
2242
3269
|
* @param {string} outPrj //导出的坐标系
|
|
2243
3270
|
* @param {object} features //要导出的坐标
|
|
2244
|
-
*/function exportTXT(
|
|
3271
|
+
*/function exportTXT(outPrj,features){if(["4490","4326","4610"].includes(outPrj)){let txtBodys=createTxtBody(features);let drawTTitle="[属性描述] \r\n格式版本号=1.0 \r\n数据生产单位=国土资源部 \r\n数据产生日期=[datatime] \r\n坐标系=墨卡托 \r\n投影类型=高斯克吕格 \r\n计量单位=米 \r\n[地块坐标] \r\n";let date=new Date();let time=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();drawTTitle=drawTTitle.replace("[datatime]",time);// 设置生成日期
|
|
2245
3272
|
let evalue=drawTTitle+txtBodys;saveTXT(evalue,"","地块坐标信息.txt");}else{let dataFeatures=[];for(let d=0;d<features.length;d++){let f=features[d].geometry;projToAssign(f,outPrj,"4326");let feature={type:"Feature",geometry:f};dataFeatures.push(feature);}let txtBodys=createTxtBody(dataFeatures);let drawTTitle="[属性描述] \r\n格式版本号=1.0 \r\n数据生产单位=国土资源部 \r\n数据产生日期=[datatime] \r\n坐标系=墨卡托 \r\n投影类型=高斯克吕格 \r\n计量单位=米 \r\n[地块坐标] \r\n";let date=new Date();let time=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();drawTTitle=drawTTitle.replace("[datatime]",time);// 设置生成日期
|
|
2246
3273
|
let evalue=drawTTitle+txtBodys;saveTXT(evalue,"","地块坐标信息.txt");}}// 导出txt方法--总方法
|
|
2247
3274
|
function createTxtBody(features){let txtBodys="";for(let k in features){let geometry=features[k]["geometry"];let geoType=geometry["type"];let coordinates=geometry["coordinates"];// let RKZQBM = features[k]['properties']['XZQDM'] === undefined ? '' : features[k]['properties']['XZQDM'];
|
|
@@ -2661,7 +3688,7 @@ let getTooBox = ({
|
|
|
2661
3688
|
}, {
|
|
2662
3689
|
label: webgl.floodModel + webgl.floodAnalysis1,
|
|
2663
3690
|
icon: client_icons_vue_.IconFloodAnalysis,
|
|
2664
|
-
value: "
|
|
3691
|
+
value: "Kq3dModelFloodAnalysis"
|
|
2665
3692
|
}, {
|
|
2666
3693
|
label: webgl.geologyBodyAnalysis,
|
|
2667
3694
|
icon: client_icons_vue_.IconGeologicalAnalysis,
|
|
@@ -2858,7 +3885,7 @@ const __default__ = {
|
|
|
2858
3885
|
case "Kq3dLimitHeightAnalysis":
|
|
2859
3886
|
openBaseWindow(client3d_webgl_vue_.Kq3dLimitHeightAnalysis, language.webgl.limitHeightAnalysis, client_icons_vue_.IconHeightLimitAnalysis);
|
|
2860
3887
|
break;
|
|
2861
|
-
case "
|
|
3888
|
+
case "Kq3dModelFloodAnalysis":
|
|
2862
3889
|
openBaseWindow(client3d_webgl_vue_.Kq3dFloodAnalysis, language.webgl.floodModel + language.webgl.floodAnalysis1, client_icons_vue_.IconFloodAnalysis, {
|
|
2863
3890
|
isShowMode: false,
|
|
2864
3891
|
settingParams: {
|
|
@@ -3041,23 +4068,23 @@ const __default__ = {
|
|
|
3041
4068
|
}));
|
|
3042
4069
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=script&setup=true&lang=js
|
|
3043
4070
|
|
|
3044
|
-
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
3045
|
-
var
|
|
3046
|
-
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
4071
|
+
// EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=7ea2a24f&lang=scss
|
|
4072
|
+
var AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss = __webpack_require__(8008);
|
|
4073
|
+
;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=7ea2a24f&lang=scss
|
|
3047
4074
|
|
|
3048
4075
|
|
|
3049
4076
|
|
|
3050
|
-
var
|
|
4077
|
+
var AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options = {};
|
|
3051
4078
|
|
|
3052
|
-
|
|
3053
|
-
|
|
4079
|
+
AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options.insert = "head";
|
|
4080
|
+
AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options.singleton = false;
|
|
3054
4081
|
|
|
3055
|
-
var
|
|
4082
|
+
var AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_update = injectStylesIntoStyleTag_default()(AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss/* default */.Z, AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss_options);
|
|
3056
4083
|
|
|
3057
4084
|
|
|
3058
4085
|
|
|
3059
|
-
/* harmony default export */ var
|
|
3060
|
-
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=
|
|
4086
|
+
/* harmony default export */ var components_AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss = (AppToolBoxvue_type_style_index_0_id_7ea2a24f_lang_scss/* default.locals */.Z.locals || {});
|
|
4087
|
+
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue?vue&type=style&index=0&id=7ea2a24f&lang=scss
|
|
3061
4088
|
|
|
3062
4089
|
;// CONCATENATED MODULE: ./src/webgl/sceneapp/components/AppToolBox.vue
|
|
3063
4090
|
|
|
@@ -3379,8 +4406,8 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3379
4406
|
// 工具按钮
|
|
3380
4407
|
let components = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
3381
4408
|
let components_default = ["kqlayertree", "kqbookmark", "kqlabel"];
|
|
3382
|
-
let
|
|
3383
|
-
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(
|
|
4409
|
+
let compCollection3d = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
|
|
4410
|
+
component: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.markRaw)(Measure/* default */.Z),
|
|
3384
4411
|
props: {
|
|
3385
4412
|
showShadow: true,
|
|
3386
4413
|
showHeaderTemp: true,
|
|
@@ -3642,7 +4669,6 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3642
4669
|
}
|
|
3643
4670
|
return geojsonStyle;
|
|
3644
4671
|
}
|
|
3645
|
-
|
|
3646
4672
|
// geojson数据条件过滤后是否显示
|
|
3647
4673
|
const isGeojsonFilterShow = (properties, filters) => {
|
|
3648
4674
|
if (filters.length === 1) return true;
|
|
@@ -3833,9 +4859,9 @@ const SceneAppvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3833
4859
|
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(components)
|
|
3834
4860
|
}, null, 8 /* PROPS */, ["components"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_common_vue_.KqToolCollection), {
|
|
3835
4861
|
class: "map-measure",
|
|
3836
|
-
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(
|
|
4862
|
+
components: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(compCollection3d),
|
|
3837
4863
|
position: {
|
|
3838
|
-
bottom:
|
|
4864
|
+
bottom: 170,
|
|
3839
4865
|
right: 16
|
|
3840
4866
|
}
|
|
3841
4867
|
}, null, 8 /* PROPS */, ["components"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(AppToolBar), {
|