@kq_npm/client3d_webgl_vue 1.0.3-beta → 1.0.5-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/compass/index.js +0 -1
- package/{fixedzoom → fixedzoomin3d}/index.js +19 -36
- package/fixedzoomout3d/index.js +246 -0
- package/gpuspatialquery/index.js +26 -27
- package/index.js +320 -66
- package/package.json +1 -1
- package/resetview/index.js +0 -1
- package/scenceview/index.js +6 -6
- package/statusbar/index.js +169 -0
package/compass/index.js
CHANGED
|
@@ -51,8 +51,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
51
51
|
|
|
52
52
|
// EXPORTS
|
|
53
53
|
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
-
"
|
|
55
|
-
"default": function() { return /* reexport */
|
|
54
|
+
"FixedZoomin3dViewModel": function() { return /* reexport */ FixedZoomin3dViewModel; },
|
|
55
|
+
"default": function() { return /* reexport */ FixedZoomin3d; }
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
@@ -74,10 +74,10 @@ function _defineProperty(obj, key, value) {
|
|
|
74
74
|
|
|
75
75
|
return obj;
|
|
76
76
|
}
|
|
77
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
77
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3dViewModel.js
|
|
78
78
|
|
|
79
79
|
// 三维固定缩放逻辑
|
|
80
|
-
class
|
|
80
|
+
class FixedZoomin3dViewModel {
|
|
81
81
|
//三维viewer对象
|
|
82
82
|
constructor(viewer) {
|
|
83
83
|
_defineProperty(this, "_viewer", null);
|
|
@@ -143,7 +143,7 @@ class FixedZoomViewModel {
|
|
|
143
143
|
}
|
|
144
144
|
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
145
145
|
var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
146
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/
|
|
146
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
@@ -151,16 +151,10 @@ var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-ut
|
|
|
151
151
|
// 获取组件传参
|
|
152
152
|
|
|
153
153
|
const __default__ = {
|
|
154
|
-
name: "
|
|
154
|
+
name: "Kq3dFixedZoomin3d"
|
|
155
155
|
};
|
|
156
|
-
/* harmony default export */ var
|
|
156
|
+
/* harmony default export */ var FixedZoomin3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
157
157
|
props: {
|
|
158
|
-
mapTarget: String,
|
|
159
|
-
// 切换按钮是固定放大还是固定缩小,值:zoomIn 或 zoomOut
|
|
160
|
-
isZoomInOrOut: {
|
|
161
|
-
type: Boolean,
|
|
162
|
-
default: true
|
|
163
|
-
},
|
|
164
158
|
// 按钮图标大小
|
|
165
159
|
iconSize: {
|
|
166
160
|
type: Number,
|
|
@@ -182,14 +176,14 @@ const __default__ = {
|
|
|
182
176
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
183
177
|
if (scenceView) {
|
|
184
178
|
language.value = scenceView._language;
|
|
185
|
-
viewModel = new
|
|
179
|
+
viewModel = new FixedZoomin3dViewModel(scenceView._viewer);
|
|
186
180
|
}
|
|
187
181
|
});
|
|
188
182
|
}); // 按钮点击事件
|
|
189
183
|
|
|
190
184
|
function btnClick() {
|
|
191
185
|
btn.value.$el.blur();
|
|
192
|
-
viewModel && viewModel.zoom(
|
|
186
|
+
viewModel && viewModel.zoom(2);
|
|
193
187
|
}
|
|
194
188
|
|
|
195
189
|
return (_ctx, _cache) => {
|
|
@@ -198,24 +192,13 @@ const __default__ = {
|
|
|
198
192
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
|
|
199
193
|
|
|
200
194
|
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_button, {
|
|
201
|
-
title:
|
|
195
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomIn,
|
|
202
196
|
ref_key: "btn",
|
|
203
197
|
ref: btn,
|
|
204
198
|
onClick: btnClick,
|
|
205
199
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
|
|
206
200
|
}, {
|
|
207
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [
|
|
208
|
-
key: 0,
|
|
209
|
-
size: __props.iconSize
|
|
210
|
-
}, {
|
|
211
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Plus))]),
|
|
212
|
-
_: 1
|
|
213
|
-
/* STABLE */
|
|
214
|
-
|
|
215
|
-
}, 8
|
|
216
|
-
/* PROPS */
|
|
217
|
-
, ["size"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createCommentVNode)("v-if", true), !__props.isZoomInOrOut ? ((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_icon, {
|
|
218
|
-
key: 1,
|
|
201
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
|
|
219
202
|
size: __props.iconSize
|
|
220
203
|
}, {
|
|
221
204
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Minus))]),
|
|
@@ -224,7 +207,7 @@ const __default__ = {
|
|
|
224
207
|
|
|
225
208
|
}, 8
|
|
226
209
|
/* PROPS */
|
|
227
|
-
, ["size"])
|
|
210
|
+
, ["size"])]),
|
|
228
211
|
_: 1
|
|
229
212
|
/* STABLE */
|
|
230
213
|
|
|
@@ -235,26 +218,26 @@ const __default__ = {
|
|
|
235
218
|
}
|
|
236
219
|
|
|
237
220
|
}));
|
|
238
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
221
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
|
|
239
222
|
|
|
240
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
223
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue
|
|
241
224
|
|
|
242
225
|
|
|
243
226
|
|
|
244
|
-
const __exports__ =
|
|
227
|
+
const __exports__ = FixedZoomin3dvue_type_script_setup_true_lang_js;
|
|
245
228
|
|
|
246
|
-
/* harmony default export */ var
|
|
229
|
+
/* harmony default export */ var FixedZoomin3d = (__exports__);
|
|
247
230
|
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
248
231
|
var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
|
|
249
232
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
|
|
250
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
233
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/index.js
|
|
251
234
|
|
|
252
235
|
|
|
253
236
|
|
|
254
237
|
|
|
255
|
-
|
|
238
|
+
FixedZoomin3d.install = (Vue, opts) => {
|
|
256
239
|
init_js_default()(Vue, opts);
|
|
257
|
-
Vue.component(
|
|
240
|
+
Vue.component(FixedZoomin3d.name, FixedZoomin3d);
|
|
258
241
|
};
|
|
259
242
|
|
|
260
243
|
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ !function() {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = function(module) {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ function() { return module['default']; } :
|
|
13
|
+
/******/ function() { return module; };
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ }();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ !function() {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ }();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ !function() {
|
|
33
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
34
|
+
/******/ }();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ !function() {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ }();
|
|
46
|
+
/******/
|
|
47
|
+
/************************************************************************/
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"FixedZoomout3dViewModel": function() { return /* reexport */ FixedZoomout3dViewModel; },
|
|
55
|
+
"default": function() { return /* reexport */ FixedZoomout3d; }
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
59
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
|
|
60
|
+
;// CONCATENATED MODULE: external "@element-plus/icons-vue"
|
|
61
|
+
var icons_vue_namespaceObject = require("@element-plus/icons-vue");
|
|
62
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
63
|
+
function _defineProperty(obj, key, value) {
|
|
64
|
+
if (key in obj) {
|
|
65
|
+
Object.defineProperty(obj, key, {
|
|
66
|
+
value: value,
|
|
67
|
+
enumerable: true,
|
|
68
|
+
configurable: true,
|
|
69
|
+
writable: true
|
|
70
|
+
});
|
|
71
|
+
} else {
|
|
72
|
+
obj[key] = value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return obj;
|
|
76
|
+
}
|
|
77
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3dViewModel.js
|
|
78
|
+
|
|
79
|
+
// 三维固定缩放逻辑
|
|
80
|
+
class FixedZoomout3dViewModel {
|
|
81
|
+
//三维viewer对象
|
|
82
|
+
constructor(viewer) {
|
|
83
|
+
_defineProperty(this, "_viewer", null);
|
|
84
|
+
|
|
85
|
+
this._viewer = viewer;
|
|
86
|
+
} //获取相机焦点
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
getCameraFocus() {
|
|
90
|
+
if (!this._viewer) return;
|
|
91
|
+
var scene = this._viewer.scene;
|
|
92
|
+
var camera = scene.camera;
|
|
93
|
+
var rayScratch = new Cesium.Ray();
|
|
94
|
+
rayScratch.origin = camera.positionWC;
|
|
95
|
+
rayScratch.direction = camera.directionWC;
|
|
96
|
+
var result = new Cesium.Cartesian3();
|
|
97
|
+
result = scene.globe.pick(rayScratch, scene, result);
|
|
98
|
+
|
|
99
|
+
if (result) {
|
|
100
|
+
result = camera.worldToCameraCoordinatesPoint(result, result);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return result;
|
|
104
|
+
} //地图缩放
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
zoom(scale) {
|
|
108
|
+
if (!this._viewer) return;
|
|
109
|
+
var scene = this._viewer.scene;
|
|
110
|
+
var camera = scene.camera;
|
|
111
|
+
var focus = this.getCameraFocus();
|
|
112
|
+
var orientation;
|
|
113
|
+
|
|
114
|
+
if (!focus) {
|
|
115
|
+
// Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
|
|
116
|
+
// the focal point.
|
|
117
|
+
var ray = new Cesium.Ray(camera.worldToCameraCoordinatesPoint(scene.globe.ellipsoid.cartographicToCartesian(camera.positionCartographic)), camera.directionWC);
|
|
118
|
+
focus = Cesium.IntersectionTests.grazingAltitudeLocation(ray, scene.globe.ellipsoid);
|
|
119
|
+
orientation = {
|
|
120
|
+
heading: camera.heading,
|
|
121
|
+
pitch: camera.pitch,
|
|
122
|
+
roll: camera.roll
|
|
123
|
+
};
|
|
124
|
+
} else {
|
|
125
|
+
orientation = {
|
|
126
|
+
direction: camera.direction,
|
|
127
|
+
up: camera.up
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
var cartesian3Scratch = new Cesium.Cartesian3();
|
|
132
|
+
var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
|
|
133
|
+
var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
|
|
134
|
+
var endPosition = Cesium.Cartesian3.add(focus, movementVector, focus);
|
|
135
|
+
camera.flyTo({
|
|
136
|
+
destination: endPosition,
|
|
137
|
+
orientation: orientation,
|
|
138
|
+
duration: 0.5,
|
|
139
|
+
convert: false
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
145
|
+
var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
146
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
// 获取组件传参
|
|
152
|
+
|
|
153
|
+
const __default__ = {
|
|
154
|
+
name: "Kq3dFixedZoomout3d"
|
|
155
|
+
};
|
|
156
|
+
/* harmony default export */ var FixedZoomout3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
157
|
+
props: {
|
|
158
|
+
// 按钮图标大小
|
|
159
|
+
iconSize: {
|
|
160
|
+
type: Number,
|
|
161
|
+
default: 16
|
|
162
|
+
},
|
|
163
|
+
// 按钮大小
|
|
164
|
+
buttonSize: {
|
|
165
|
+
type: String,
|
|
166
|
+
default: "32px"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
|
|
170
|
+
setup(__props) {
|
|
171
|
+
const props = __props;
|
|
172
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
173
|
+
let viewModel = null;
|
|
174
|
+
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
175
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
176
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
177
|
+
if (scenceView) {
|
|
178
|
+
language.value = scenceView._language;
|
|
179
|
+
viewModel = new FixedZoomout3dViewModel(scenceView._viewer);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}); // 按钮点击事件
|
|
183
|
+
|
|
184
|
+
function btnClick() {
|
|
185
|
+
btn.value.$el.blur();
|
|
186
|
+
viewModel && viewModel.zoom(0.5);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return (_ctx, _cache) => {
|
|
190
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
|
|
191
|
+
|
|
192
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
|
|
193
|
+
|
|
194
|
+
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_button, {
|
|
195
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomOut,
|
|
196
|
+
ref_key: "btn",
|
|
197
|
+
ref: btn,
|
|
198
|
+
onClick: btnClick,
|
|
199
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
|
|
200
|
+
}, {
|
|
201
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
|
|
202
|
+
size: __props.iconSize
|
|
203
|
+
}, {
|
|
204
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Plus))]),
|
|
205
|
+
_: 1
|
|
206
|
+
/* STABLE */
|
|
207
|
+
|
|
208
|
+
}, 8
|
|
209
|
+
/* PROPS */
|
|
210
|
+
, ["size"])]),
|
|
211
|
+
_: 1
|
|
212
|
+
/* STABLE */
|
|
213
|
+
|
|
214
|
+
}, 8
|
|
215
|
+
/* PROPS */
|
|
216
|
+
, ["title", "style"]);
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
}));
|
|
221
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
|
|
222
|
+
|
|
223
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
const __exports__ = FixedZoomout3dvue_type_script_setup_true_lang_js;
|
|
228
|
+
|
|
229
|
+
/* harmony default export */ var FixedZoomout3d = (__exports__);
|
|
230
|
+
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
231
|
+
var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
|
|
232
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
|
|
233
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/index.js
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
FixedZoomout3d.install = (Vue, opts) => {
|
|
239
|
+
init_js_default()(Vue, opts);
|
|
240
|
+
Vue.component(FixedZoomout3d.name, FixedZoomout3d);
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
module.exports = __webpack_exports__;
|
|
245
|
+
/******/ })()
|
|
246
|
+
;
|
package/gpuspatialquery/index.js
CHANGED
|
@@ -130,40 +130,39 @@ class GpuSpatialQueryViewModel {
|
|
|
130
130
|
that._gpuSpatialQuery.finishSQ.addEventListener(function () {
|
|
131
131
|
// 查询结束后的回调事件,高亮结果
|
|
132
132
|
for (let l = 0; l < that._gpuSpatialQuery._layers.length; l++) {
|
|
133
|
-
if (that._gpuSpatialQuery._layers[l].sqResult.length != 0) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
133
|
+
//if (that._gpuSpatialQuery._layers[l].sqResult.length != 0) { 该代码导致无法清除高亮效果
|
|
134
|
+
const tileset = that._gpuSpatialQuery._layers[l].layer;
|
|
135
|
+
const queryIds = that._gpuSpatialQuery._layers[l].sqResult;
|
|
136
|
+
|
|
137
|
+
for (let n = 0; n < tileset._selectedTiles.length; n++) {
|
|
138
|
+
const tile = tileset._selectedTiles[n];
|
|
139
|
+
const content = tile.content;
|
|
140
|
+
|
|
141
|
+
if (content) {
|
|
142
|
+
for (let i = 0; i < content.featuresLength; i++) {
|
|
143
|
+
const feature = content.getFeature(i);
|
|
144
|
+
let bFind = false;
|
|
145
|
+
|
|
146
|
+
if (feature.pickId) {
|
|
147
|
+
const id = feature.pickId.key;
|
|
148
|
+
|
|
149
|
+
for (let j = 0; j < queryIds.length; j++) {
|
|
150
|
+
if (queryIds[j] == id) {
|
|
151
|
+
bFind = true;
|
|
153
152
|
}
|
|
154
153
|
}
|
|
154
|
+
}
|
|
155
155
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
156
|
+
if (bFind) {
|
|
157
|
+
feature.color = Cesium.Color.AQUA;
|
|
158
|
+
} else {
|
|
159
|
+
feature.color = Cesium.Color.WHITE;
|
|
161
160
|
}
|
|
162
161
|
}
|
|
163
162
|
}
|
|
164
|
-
|
|
165
|
-
tileset.makeStyleDirty();
|
|
166
163
|
}
|
|
164
|
+
|
|
165
|
+
tileset.makeStyleDirty(); //}
|
|
167
166
|
}
|
|
168
167
|
});
|
|
169
168
|
} //开始绘制
|
package/index.js
CHANGED
|
@@ -446,6 +446,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
446
446
|
|
|
447
447
|
// EXPORTS
|
|
448
448
|
__webpack_require__.d(__webpack_exports__, {
|
|
449
|
+
"Kq3dAddData": function() { return /* reexport */ AddData; },
|
|
449
450
|
"Kq3dAddDataViewModel": function() { return /* reexport */ AddDataViewModel; },
|
|
450
451
|
"Kq3dAspectAnalysis": function() { return /* reexport */ AspectAnalysis; },
|
|
451
452
|
"Kq3dAspectAnalysisViewModel": function() { return /* reexport */ AspectAnalysisViewModels; },
|
|
@@ -459,8 +460,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
459
460
|
"Kq3dCompassViewModel": function() { return /* reexport */ CompassViewModel; },
|
|
460
461
|
"Kq3dExcavateFillAnalysis": function() { return /* reexport */ ExcavateFillAnalysis; },
|
|
461
462
|
"Kq3dExcavateFillAnalysisViewModel": function() { return /* reexport */ ExcavateFillAnalysisViewModel; },
|
|
462
|
-
"
|
|
463
|
-
"
|
|
463
|
+
"Kq3dFixedZoomin3d": function() { return /* reexport */ FixedZoomin3d; },
|
|
464
|
+
"Kq3dFixedZoomin3dViewModel": function() { return /* reexport */ FixedZoomin3dViewModel; },
|
|
465
|
+
"Kq3dFixedZoomout3d": function() { return /* reexport */ FixedZoomout3d; },
|
|
466
|
+
"Kq3dFixedZoomout3dViewModel": function() { return /* reexport */ FixedZoomout3dViewModel; },
|
|
464
467
|
"Kq3dFlight": function() { return /* reexport */ Flight; },
|
|
465
468
|
"Kq3dFlightViewModel": function() { return /* reexport */ FlightViewModel; },
|
|
466
469
|
"Kq3dFloodAnalysis": function() { return /* reexport */ FloodAnalysis; },
|
|
@@ -495,8 +498,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
495
498
|
"Kq3dSkylineAnalysisViewModel": function() { return /* reexport */ SkylineAnalysisViewModel; },
|
|
496
499
|
"Kq3dSlopeAnalysis": function() { return /* reexport */ SlopeAnalysis; },
|
|
497
500
|
"Kq3dSlopeAnalysisViewModel": function() { return /* reexport */ SlopeAnalysisViewModel; },
|
|
501
|
+
"Kq3dStatusBar": function() { return /* reexport */ StatusBar; },
|
|
502
|
+
"Kq3dStatusBarViewModel": function() { return /* reexport */ StatusBarViewModel; },
|
|
498
503
|
"Kq3dTerrainOperation": function() { return /* reexport */ TerrainOperation; },
|
|
499
504
|
"Kq3dTerrainOperationViewModel": function() { return /* reexport */ TerrainOperationViewModel; },
|
|
505
|
+
"Kq3dUnderground": function() { return /* reexport */ Underground; },
|
|
506
|
+
"Kq3dUndergroundViewModel": function() { return /* reexport */ UndergroundViewModel; },
|
|
500
507
|
"Kq3dViewshedAnalysis": function() { return /* reexport */ ViewshedAnalysis; },
|
|
501
508
|
"Kq3dViewshedAnalysisViewModel": function() { return /* reexport */ ViewshedAnalysisViewModel; },
|
|
502
509
|
"Kq3dWeatherEffect": function() { return /* reexport */ WeatherEffect; },
|
|
@@ -504,9 +511,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
504
511
|
"KqScenceView": function() { return /* reexport */ ScenceView; },
|
|
505
512
|
"KqScenceViewViewModel": function() { return /* reexport */ ScenceViewViewModel; },
|
|
506
513
|
"default": function() { return /* binding */ webgl; },
|
|
507
|
-
"kq3dUnderground": function() { return /* reexport */ Underground; },
|
|
508
|
-
"kq3dUndergroundViewModel": function() { return /* reexport */ UndergroundViewModel; },
|
|
509
|
-
"kqAddData": function() { return /* reexport */ AddData; },
|
|
510
514
|
"webglComponents": function() { return /* reexport */ webglComponents; }
|
|
511
515
|
});
|
|
512
516
|
|
|
@@ -1739,17 +1743,16 @@ class LayerManager {
|
|
|
1739
1743
|
|
|
1740
1744
|
if (promise) {
|
|
1741
1745
|
promise.then(() => {
|
|
1742
|
-
adjustLayerIndex(this._layerListData[i]);
|
|
1746
|
+
adjustLayerIndex(this._layerListData[i], this);
|
|
1743
1747
|
});
|
|
1744
1748
|
} else {
|
|
1745
|
-
adjustLayerIndex(this._layerListData[i]);
|
|
1749
|
+
adjustLayerIndex(this._layerListData[i], this);
|
|
1746
1750
|
}
|
|
1747
1751
|
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
function adjustLayerIndex(layerData) {
|
|
1752
|
+
function adjustLayerIndex(layerData, that) {
|
|
1751
1753
|
if (layerData.serverType === "imagerylayer") {
|
|
1752
1754
|
var addIndex = that.getImageryLayerAddIndex(layerData.guid);
|
|
1755
|
+
if (addIndex === -1) return;
|
|
1753
1756
|
layer = that.getLayerByGuid(layerData.guid, layerData.serverType);
|
|
1754
1757
|
|
|
1755
1758
|
if (layer) {
|
|
@@ -2440,7 +2443,8 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
2440
2443
|
}
|
|
2441
2444
|
}
|
|
2442
2445
|
|
|
2443
|
-
this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions);
|
|
2446
|
+
this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions);
|
|
2447
|
+
this._viewer.statusBar.show = false; // this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
2444
2448
|
|
|
2445
2449
|
this.initManagerClass();
|
|
2446
2450
|
global_event_default().setWebMap(this._viewerId, "cesium", this);
|
|
@@ -2883,10 +2887,10 @@ ScenceView.install = (Vue, opts) => {
|
|
|
2883
2887
|
|
|
2884
2888
|
;// CONCATENATED MODULE: external "@element-plus/icons-vue"
|
|
2885
2889
|
var icons_vue_namespaceObject = require("@element-plus/icons-vue");
|
|
2886
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
2890
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3dViewModel.js
|
|
2887
2891
|
|
|
2888
2892
|
// 三维固定缩放逻辑
|
|
2889
|
-
class
|
|
2893
|
+
class FixedZoomout3dViewModel {
|
|
2890
2894
|
//三维viewer对象
|
|
2891
2895
|
constructor(viewer) {
|
|
2892
2896
|
_defineProperty(this, "_viewer", null);
|
|
@@ -2952,24 +2956,18 @@ class FixedZoomViewModel {
|
|
|
2952
2956
|
}
|
|
2953
2957
|
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
2954
2958
|
var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
2955
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/
|
|
2959
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
|
|
2956
2960
|
|
|
2957
2961
|
|
|
2958
2962
|
|
|
2959
2963
|
|
|
2960
2964
|
// 获取组件传参
|
|
2961
2965
|
|
|
2962
|
-
const
|
|
2963
|
-
name: "
|
|
2966
|
+
const FixedZoomout3dvue_type_script_setup_true_lang_js_default_ = {
|
|
2967
|
+
name: "Kq3dFixedZoomout3d"
|
|
2964
2968
|
};
|
|
2965
|
-
/* harmony default export */ var
|
|
2969
|
+
/* harmony default export */ var FixedZoomout3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(FixedZoomout3dvue_type_script_setup_true_lang_js_default_, {
|
|
2966
2970
|
props: {
|
|
2967
|
-
mapTarget: String,
|
|
2968
|
-
// 切换按钮是固定放大还是固定缩小,值:zoomIn 或 zoomOut
|
|
2969
|
-
isZoomInOrOut: {
|
|
2970
|
-
type: Boolean,
|
|
2971
|
-
default: true
|
|
2972
|
-
},
|
|
2973
2971
|
// 按钮图标大小
|
|
2974
2972
|
iconSize: {
|
|
2975
2973
|
type: Number,
|
|
@@ -2991,14 +2989,14 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
|
|
|
2991
2989
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
2992
2990
|
if (scenceView) {
|
|
2993
2991
|
language.value = scenceView._language;
|
|
2994
|
-
viewModel = new
|
|
2992
|
+
viewModel = new FixedZoomout3dViewModel(scenceView._viewer);
|
|
2995
2993
|
}
|
|
2996
2994
|
});
|
|
2997
2995
|
}); // 按钮点击事件
|
|
2998
2996
|
|
|
2999
2997
|
function btnClick() {
|
|
3000
2998
|
btn.value.$el.blur();
|
|
3001
|
-
viewModel && viewModel.zoom(
|
|
2999
|
+
viewModel && viewModel.zoom(0.5);
|
|
3002
3000
|
}
|
|
3003
3001
|
|
|
3004
3002
|
return (_ctx, _cache) => {
|
|
@@ -3007,14 +3005,13 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3007
3005
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
|
|
3008
3006
|
|
|
3009
3007
|
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_button, {
|
|
3010
|
-
title:
|
|
3008
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomOut,
|
|
3011
3009
|
ref_key: "btn",
|
|
3012
3010
|
ref: btn,
|
|
3013
3011
|
onClick: btnClick,
|
|
3014
3012
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
|
|
3015
3013
|
}, {
|
|
3016
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [
|
|
3017
|
-
key: 0,
|
|
3014
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
|
|
3018
3015
|
size: __props.iconSize
|
|
3019
3016
|
}, {
|
|
3020
3017
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Plus))]),
|
|
@@ -3023,8 +3020,160 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3023
3020
|
|
|
3024
3021
|
}, 8
|
|
3025
3022
|
/* PROPS */
|
|
3026
|
-
, ["size"]))
|
|
3027
|
-
|
|
3023
|
+
, ["size"])]),
|
|
3024
|
+
_: 1
|
|
3025
|
+
/* STABLE */
|
|
3026
|
+
|
|
3027
|
+
}, 8
|
|
3028
|
+
/* PROPS */
|
|
3029
|
+
, ["title", "style"]);
|
|
3030
|
+
};
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
}));
|
|
3034
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue?vue&type=script&setup=true&lang=js
|
|
3035
|
+
|
|
3036
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/FixedZoomout3d.vue
|
|
3037
|
+
|
|
3038
|
+
|
|
3039
|
+
|
|
3040
|
+
const FixedZoomout3d_exports_ = FixedZoomout3dvue_type_script_setup_true_lang_js;
|
|
3041
|
+
|
|
3042
|
+
/* harmony default export */ var FixedZoomout3d = (FixedZoomout3d_exports_);
|
|
3043
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomout3d/index.js
|
|
3044
|
+
|
|
3045
|
+
|
|
3046
|
+
|
|
3047
|
+
|
|
3048
|
+
FixedZoomout3d.install = (Vue, opts) => {
|
|
3049
|
+
init_js_default()(Vue, opts);
|
|
3050
|
+
Vue.component(FixedZoomout3d.name, FixedZoomout3d);
|
|
3051
|
+
};
|
|
3052
|
+
|
|
3053
|
+
|
|
3054
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3dViewModel.js
|
|
3055
|
+
|
|
3056
|
+
// 三维固定缩放逻辑
|
|
3057
|
+
class FixedZoomin3dViewModel {
|
|
3058
|
+
//三维viewer对象
|
|
3059
|
+
constructor(viewer) {
|
|
3060
|
+
_defineProperty(this, "_viewer", null);
|
|
3061
|
+
|
|
3062
|
+
this._viewer = viewer;
|
|
3063
|
+
} //获取相机焦点
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
getCameraFocus() {
|
|
3067
|
+
if (!this._viewer) return;
|
|
3068
|
+
var scene = this._viewer.scene;
|
|
3069
|
+
var camera = scene.camera;
|
|
3070
|
+
var rayScratch = new Cesium.Ray();
|
|
3071
|
+
rayScratch.origin = camera.positionWC;
|
|
3072
|
+
rayScratch.direction = camera.directionWC;
|
|
3073
|
+
var result = new Cesium.Cartesian3();
|
|
3074
|
+
result = scene.globe.pick(rayScratch, scene, result);
|
|
3075
|
+
|
|
3076
|
+
if (result) {
|
|
3077
|
+
result = camera.worldToCameraCoordinatesPoint(result, result);
|
|
3078
|
+
}
|
|
3079
|
+
|
|
3080
|
+
return result;
|
|
3081
|
+
} //地图缩放
|
|
3082
|
+
|
|
3083
|
+
|
|
3084
|
+
zoom(scale) {
|
|
3085
|
+
if (!this._viewer) return;
|
|
3086
|
+
var scene = this._viewer.scene;
|
|
3087
|
+
var camera = scene.camera;
|
|
3088
|
+
var focus = this.getCameraFocus();
|
|
3089
|
+
var orientation;
|
|
3090
|
+
|
|
3091
|
+
if (!focus) {
|
|
3092
|
+
// Camera direction is not pointing at the globe, so use the ellipsoid horizon point as
|
|
3093
|
+
// the focal point.
|
|
3094
|
+
var ray = new Cesium.Ray(camera.worldToCameraCoordinatesPoint(scene.globe.ellipsoid.cartographicToCartesian(camera.positionCartographic)), camera.directionWC);
|
|
3095
|
+
focus = Cesium.IntersectionTests.grazingAltitudeLocation(ray, scene.globe.ellipsoid);
|
|
3096
|
+
orientation = {
|
|
3097
|
+
heading: camera.heading,
|
|
3098
|
+
pitch: camera.pitch,
|
|
3099
|
+
roll: camera.roll
|
|
3100
|
+
};
|
|
3101
|
+
} else {
|
|
3102
|
+
orientation = {
|
|
3103
|
+
direction: camera.direction,
|
|
3104
|
+
up: camera.up
|
|
3105
|
+
};
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
var cartesian3Scratch = new Cesium.Cartesian3();
|
|
3109
|
+
var direction = Cesium.Cartesian3.subtract(camera.position, focus, cartesian3Scratch);
|
|
3110
|
+
var movementVector = Cesium.Cartesian3.multiplyByScalar(direction, scale, direction);
|
|
3111
|
+
var endPosition = Cesium.Cartesian3.add(focus, movementVector, focus);
|
|
3112
|
+
camera.flyTo({
|
|
3113
|
+
destination: endPosition,
|
|
3114
|
+
orientation: orientation,
|
|
3115
|
+
duration: 0.5,
|
|
3116
|
+
convert: false
|
|
3117
|
+
});
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
}
|
|
3121
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
|
|
3122
|
+
|
|
3123
|
+
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
// 获取组件传参
|
|
3127
|
+
|
|
3128
|
+
const FixedZoomin3dvue_type_script_setup_true_lang_js_default_ = {
|
|
3129
|
+
name: "Kq3dFixedZoomin3d"
|
|
3130
|
+
};
|
|
3131
|
+
/* harmony default export */ var FixedZoomin3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(FixedZoomin3dvue_type_script_setup_true_lang_js_default_, {
|
|
3132
|
+
props: {
|
|
3133
|
+
// 按钮图标大小
|
|
3134
|
+
iconSize: {
|
|
3135
|
+
type: Number,
|
|
3136
|
+
default: 16
|
|
3137
|
+
},
|
|
3138
|
+
// 按钮大小
|
|
3139
|
+
buttonSize: {
|
|
3140
|
+
type: String,
|
|
3141
|
+
default: "32px"
|
|
3142
|
+
}
|
|
3143
|
+
},
|
|
3144
|
+
|
|
3145
|
+
setup(__props) {
|
|
3146
|
+
const props = __props;
|
|
3147
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)({});
|
|
3148
|
+
let viewModel = null;
|
|
3149
|
+
let btn = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.ref)(null);
|
|
3150
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
3151
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
3152
|
+
if (scenceView) {
|
|
3153
|
+
language.value = scenceView._language;
|
|
3154
|
+
viewModel = new FixedZoomin3dViewModel(scenceView._viewer);
|
|
3155
|
+
}
|
|
3156
|
+
});
|
|
3157
|
+
}); // 按钮点击事件
|
|
3158
|
+
|
|
3159
|
+
function btnClick() {
|
|
3160
|
+
btn.value.$el.blur();
|
|
3161
|
+
viewModel && viewModel.zoom(2);
|
|
3162
|
+
}
|
|
3163
|
+
|
|
3164
|
+
return (_ctx, _cache) => {
|
|
3165
|
+
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-icon");
|
|
3166
|
+
|
|
3167
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.resolveComponent)("kq-button");
|
|
3168
|
+
|
|
3169
|
+
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_button, {
|
|
3170
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(language).zoomIn,
|
|
3171
|
+
ref_key: "btn",
|
|
3172
|
+
ref: btn,
|
|
3173
|
+
onClick: btnClick,
|
|
3174
|
+
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.normalizeStyle)('width:' + __props.buttonSize)
|
|
3175
|
+
}, {
|
|
3176
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_icon, {
|
|
3028
3177
|
size: __props.iconSize
|
|
3029
3178
|
}, {
|
|
3030
3179
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(icons_vue_namespaceObject.Minus))]),
|
|
@@ -3033,7 +3182,7 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3033
3182
|
|
|
3034
3183
|
}, 8
|
|
3035
3184
|
/* PROPS */
|
|
3036
|
-
, ["size"])
|
|
3185
|
+
, ["size"])]),
|
|
3037
3186
|
_: 1
|
|
3038
3187
|
/* STABLE */
|
|
3039
3188
|
|
|
@@ -3044,23 +3193,23 @@ const FixedZoomvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3044
3193
|
}
|
|
3045
3194
|
|
|
3046
3195
|
}));
|
|
3047
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
3196
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue?vue&type=script&setup=true&lang=js
|
|
3048
3197
|
|
|
3049
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
3198
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/FixedZoomin3d.vue
|
|
3050
3199
|
|
|
3051
3200
|
|
|
3052
3201
|
|
|
3053
|
-
const
|
|
3202
|
+
const FixedZoomin3d_exports_ = FixedZoomin3dvue_type_script_setup_true_lang_js;
|
|
3054
3203
|
|
|
3055
|
-
/* harmony default export */ var
|
|
3056
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
3204
|
+
/* harmony default export */ var FixedZoomin3d = (FixedZoomin3d_exports_);
|
|
3205
|
+
;// CONCATENATED MODULE: ./src/webgl/fixedzoomin3d/index.js
|
|
3057
3206
|
|
|
3058
3207
|
|
|
3059
3208
|
|
|
3060
3209
|
|
|
3061
|
-
|
|
3210
|
+
FixedZoomin3d.install = (Vue, opts) => {
|
|
3062
3211
|
init_js_default()(Vue, opts);
|
|
3063
|
-
Vue.component(
|
|
3212
|
+
Vue.component(FixedZoomin3d.name, FixedZoomin3d);
|
|
3064
3213
|
};
|
|
3065
3214
|
|
|
3066
3215
|
|
|
@@ -3093,7 +3242,6 @@ const ResetViewvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3093
3242
|
};
|
|
3094
3243
|
/* harmony default export */ var ResetViewvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(ResetViewvue_type_script_setup_true_lang_js_default_, {
|
|
3095
3244
|
props: {
|
|
3096
|
-
mapTarget: String,
|
|
3097
3245
|
// 按钮图标大小
|
|
3098
3246
|
iconSize: {
|
|
3099
3247
|
type: Number,
|
|
@@ -3251,7 +3399,6 @@ const Compassvue_type_script_setup_true_lang_js_default_ = {
|
|
|
3251
3399
|
};
|
|
3252
3400
|
/* harmony default export */ var Compassvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(Compassvue_type_script_setup_true_lang_js_default_, {
|
|
3253
3401
|
props: {
|
|
3254
|
-
mapTarget: String,
|
|
3255
3402
|
// 按钮图标大小
|
|
3256
3403
|
iconSize: {
|
|
3257
3404
|
type: Number,
|
|
@@ -5044,40 +5191,39 @@ class GpuSpatialQueryViewModel {
|
|
|
5044
5191
|
that._gpuSpatialQuery.finishSQ.addEventListener(function () {
|
|
5045
5192
|
// 查询结束后的回调事件,高亮结果
|
|
5046
5193
|
for (let l = 0; l < that._gpuSpatialQuery._layers.length; l++) {
|
|
5047
|
-
if (that._gpuSpatialQuery._layers[l].sqResult.length != 0) {
|
|
5048
|
-
|
|
5049
|
-
|
|
5194
|
+
//if (that._gpuSpatialQuery._layers[l].sqResult.length != 0) { 该代码导致无法清除高亮效果
|
|
5195
|
+
const tileset = that._gpuSpatialQuery._layers[l].layer;
|
|
5196
|
+
const queryIds = that._gpuSpatialQuery._layers[l].sqResult;
|
|
5050
5197
|
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5198
|
+
for (let n = 0; n < tileset._selectedTiles.length; n++) {
|
|
5199
|
+
const tile = tileset._selectedTiles[n];
|
|
5200
|
+
const content = tile.content;
|
|
5054
5201
|
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5202
|
+
if (content) {
|
|
5203
|
+
for (let i = 0; i < content.featuresLength; i++) {
|
|
5204
|
+
const feature = content.getFeature(i);
|
|
5205
|
+
let bFind = false;
|
|
5059
5206
|
|
|
5060
|
-
|
|
5061
|
-
|
|
5207
|
+
if (feature.pickId) {
|
|
5208
|
+
const id = feature.pickId.key;
|
|
5062
5209
|
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
}
|
|
5210
|
+
for (let j = 0; j < queryIds.length; j++) {
|
|
5211
|
+
if (queryIds[j] == id) {
|
|
5212
|
+
bFind = true;
|
|
5067
5213
|
}
|
|
5068
5214
|
}
|
|
5215
|
+
}
|
|
5069
5216
|
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
}
|
|
5217
|
+
if (bFind) {
|
|
5218
|
+
feature.color = Cesium.Color.AQUA;
|
|
5219
|
+
} else {
|
|
5220
|
+
feature.color = Cesium.Color.WHITE;
|
|
5075
5221
|
}
|
|
5076
5222
|
}
|
|
5077
5223
|
}
|
|
5078
|
-
|
|
5079
|
-
tileset.makeStyleDirty();
|
|
5080
5224
|
}
|
|
5225
|
+
|
|
5226
|
+
tileset.makeStyleDirty(); //}
|
|
5081
5227
|
}
|
|
5082
5228
|
});
|
|
5083
5229
|
} //开始绘制
|
|
@@ -21755,6 +21901,108 @@ Underground.install = (Vue, opts) => {
|
|
|
21755
21901
|
};
|
|
21756
21902
|
|
|
21757
21903
|
|
|
21904
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBarViewModel.js
|
|
21905
|
+
// 地图状态栏逻辑类
|
|
21906
|
+
class StatusBarViewModel {
|
|
21907
|
+
constructor(viewer, options) {
|
|
21908
|
+
viewer.statusBar.show = true;
|
|
21909
|
+
viewer.statusBar.readyPromise.then(() => {
|
|
21910
|
+
if (options.hideResolution) {
|
|
21911
|
+
viewer.statusBar.hideResolution();
|
|
21912
|
+
}
|
|
21913
|
+
|
|
21914
|
+
if (options.hideScale) {
|
|
21915
|
+
viewer.statusBar.hideScale();
|
|
21916
|
+
}
|
|
21917
|
+
|
|
21918
|
+
if (options.hideLonLat) {
|
|
21919
|
+
viewer.statusBar.hideLonLat();
|
|
21920
|
+
}
|
|
21921
|
+
|
|
21922
|
+
if (options.hideEyeAlt) {
|
|
21923
|
+
viewer.statusBar.hideEyeAlt();
|
|
21924
|
+
}
|
|
21925
|
+
|
|
21926
|
+
if (options.hideCopyright) {
|
|
21927
|
+
viewer.statusBar.hideCopyright();
|
|
21928
|
+
}
|
|
21929
|
+
|
|
21930
|
+
if (options.copyrightText) {
|
|
21931
|
+
viewer.statusBar.setCopyrightText(options.copyrightText);
|
|
21932
|
+
}
|
|
21933
|
+
});
|
|
21934
|
+
}
|
|
21935
|
+
|
|
21936
|
+
}
|
|
21937
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
|
|
21938
|
+
|
|
21939
|
+
|
|
21940
|
+
|
|
21941
|
+
/**
|
|
21942
|
+
* 支持传入属性:
|
|
21943
|
+
* hideResolution - 隐藏分辨率
|
|
21944
|
+
* hideScale - 隐藏比例尺
|
|
21945
|
+
* hideLonLat - 隐藏经纬度
|
|
21946
|
+
* hideEyeAlt - 隐藏视点高
|
|
21947
|
+
* hideCopyright - 隐藏版权信息
|
|
21948
|
+
* copyrightText - 版权信息文字
|
|
21949
|
+
*/
|
|
21950
|
+
|
|
21951
|
+
const StatusBarvue_type_script_setup_true_lang_js_default_ = {
|
|
21952
|
+
name: "Kq3dStatusBar"
|
|
21953
|
+
};
|
|
21954
|
+
/* harmony default export */ var StatusBarvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(StatusBarvue_type_script_setup_true_lang_js_default_, {
|
|
21955
|
+
props: {
|
|
21956
|
+
// 隐藏分辨率
|
|
21957
|
+
hideResolution: Boolean,
|
|
21958
|
+
// 隐藏比例尺
|
|
21959
|
+
hideScale: Boolean,
|
|
21960
|
+
// 隐藏经纬度
|
|
21961
|
+
hideLonLat: Boolean,
|
|
21962
|
+
// 隐藏视点高
|
|
21963
|
+
hideEyeAlt: Boolean,
|
|
21964
|
+
// 隐藏版权信息
|
|
21965
|
+
hideCopyright: Boolean,
|
|
21966
|
+
// 版权信息文字
|
|
21967
|
+
copyrightText: String
|
|
21968
|
+
},
|
|
21969
|
+
|
|
21970
|
+
setup(__props) {
|
|
21971
|
+
const props = __props;
|
|
21972
|
+
let viewModel = null;
|
|
21973
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
21974
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
21975
|
+
if (scenceView) {
|
|
21976
|
+
viewModel = new StatusBarViewModel(scenceView._viewer, props);
|
|
21977
|
+
}
|
|
21978
|
+
});
|
|
21979
|
+
});
|
|
21980
|
+
return (_ctx, _cache) => {
|
|
21981
|
+
return null;
|
|
21982
|
+
};
|
|
21983
|
+
}
|
|
21984
|
+
|
|
21985
|
+
}));
|
|
21986
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
|
|
21987
|
+
|
|
21988
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue
|
|
21989
|
+
|
|
21990
|
+
|
|
21991
|
+
|
|
21992
|
+
const StatusBar_exports_ = StatusBarvue_type_script_setup_true_lang_js;
|
|
21993
|
+
|
|
21994
|
+
/* harmony default export */ var StatusBar = (StatusBar_exports_);
|
|
21995
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/index.js
|
|
21996
|
+
|
|
21997
|
+
|
|
21998
|
+
|
|
21999
|
+
|
|
22000
|
+
StatusBar.install = (Vue, opts) => {
|
|
22001
|
+
init_js_default()(Vue, opts);
|
|
22002
|
+
Vue.component(StatusBar.name, StatusBar);
|
|
22003
|
+
};
|
|
22004
|
+
|
|
22005
|
+
|
|
21758
22006
|
;// CONCATENATED MODULE: ./src/webgl/components.js
|
|
21759
22007
|
/**
|
|
21760
22008
|
* Author: 朱鹏超
|
|
@@ -21770,6 +22018,8 @@ Underground.install = (Vue, opts) => {
|
|
|
21770
22018
|
|
|
21771
22019
|
|
|
21772
22020
|
|
|
22021
|
+
|
|
22022
|
+
|
|
21773
22023
|
// 在线地形
|
|
21774
22024
|
|
|
21775
22025
|
|
|
@@ -21821,6 +22071,8 @@ Underground.install = (Vue, opts) => {
|
|
|
21821
22071
|
|
|
21822
22072
|
|
|
21823
22073
|
|
|
22074
|
+
|
|
22075
|
+
|
|
21824
22076
|
|
|
21825
22077
|
|
|
21826
22078
|
|
|
@@ -21844,17 +22096,19 @@ const webglComponents = {
|
|
|
21844
22096
|
Kq3dIsolineAnalysis: IsolineAnalysis,
|
|
21845
22097
|
Kq3dBoxClip: BoxClip,
|
|
21846
22098
|
Kq3dPlaneClip: PlaneClip,
|
|
21847
|
-
|
|
22099
|
+
Kq3dAddData: AddData,
|
|
21848
22100
|
Kq3dParticleEffect: ParticleEffect,
|
|
21849
22101
|
Kq3dWeatherEffect: WeatherEffect,
|
|
21850
22102
|
Kq3dCompareMap: CompareMap,
|
|
21851
22103
|
Kq3dHawkeye: Hawkeye,
|
|
21852
22104
|
Kq3dRoller: Roller,
|
|
21853
22105
|
Kq3dScreenShot: Screenshot,
|
|
21854
|
-
|
|
22106
|
+
Kq3dFixedZoomout3d: FixedZoomout3d,
|
|
22107
|
+
Kq3dFixedZoomin3d: FixedZoomin3d,
|
|
21855
22108
|
Kq3dResetView: ResetView,
|
|
21856
22109
|
Kq3dCompass: Compass,
|
|
21857
|
-
|
|
22110
|
+
Kq3dUnderground: Underground,
|
|
22111
|
+
Kq3dStatusBar: StatusBar
|
|
21858
22112
|
}; // 全局引入
|
|
21859
22113
|
|
|
21860
22114
|
const install = function (Vue, opts = {}) {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"1.0.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"1.0.5-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/resetview/index.js
CHANGED
package/scenceview/index.js
CHANGED
|
@@ -1284,17 +1284,16 @@ class LayerManager {
|
|
|
1284
1284
|
|
|
1285
1285
|
if (promise) {
|
|
1286
1286
|
promise.then(() => {
|
|
1287
|
-
adjustLayerIndex(this._layerListData[i]);
|
|
1287
|
+
adjustLayerIndex(this._layerListData[i], this);
|
|
1288
1288
|
});
|
|
1289
1289
|
} else {
|
|
1290
|
-
adjustLayerIndex(this._layerListData[i]);
|
|
1290
|
+
adjustLayerIndex(this._layerListData[i], this);
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
function adjustLayerIndex(layerData) {
|
|
1293
|
+
function adjustLayerIndex(layerData, that) {
|
|
1296
1294
|
if (layerData.serverType === "imagerylayer") {
|
|
1297
1295
|
var addIndex = that.getImageryLayerAddIndex(layerData.guid);
|
|
1296
|
+
if (addIndex === -1) return;
|
|
1298
1297
|
layer = that.getLayerByGuid(layerData.guid, layerData.serverType);
|
|
1299
1298
|
|
|
1300
1299
|
if (layer) {
|
|
@@ -1985,7 +1984,8 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
1985
1984
|
}
|
|
1986
1985
|
}
|
|
1987
1986
|
|
|
1988
|
-
this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions);
|
|
1987
|
+
this._viewer = new Cesium.Viewer(this._viewerId, defaultOptions);
|
|
1988
|
+
this._viewer.statusBar.show = false; // this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
1989
1989
|
|
|
1990
1990
|
this.initManagerClass();
|
|
1991
1991
|
global_event_default().setWebMap(this._viewerId, "cesium", this);
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ !function() {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = function(module) {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ function() { return module['default']; } :
|
|
13
|
+
/******/ function() { return module; };
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ }();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ !function() {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ }();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ !function() {
|
|
33
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
34
|
+
/******/ }();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ !function() {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ }();
|
|
46
|
+
/******/
|
|
47
|
+
/************************************************************************/
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
"StatusBarViewModel": function() { return /* reexport */ StatusBarViewModel; },
|
|
55
|
+
"default": function() { return /* reexport */ StatusBar; }
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
;// CONCATENATED MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
59
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject = require("vue");
|
|
60
|
+
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
61
|
+
var gis_utils_namespaceObject = require("@kq_npm/client_common_vue/_utils/gis-utils");
|
|
62
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBarViewModel.js
|
|
63
|
+
// 地图状态栏逻辑类
|
|
64
|
+
class StatusBarViewModel {
|
|
65
|
+
constructor(viewer, options) {
|
|
66
|
+
viewer.statusBar.show = true;
|
|
67
|
+
viewer.statusBar.readyPromise.then(() => {
|
|
68
|
+
if (options.hideResolution) {
|
|
69
|
+
viewer.statusBar.hideResolution();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (options.hideScale) {
|
|
73
|
+
viewer.statusBar.hideScale();
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if (options.hideLonLat) {
|
|
77
|
+
viewer.statusBar.hideLonLat();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
if (options.hideEyeAlt) {
|
|
81
|
+
viewer.statusBar.hideEyeAlt();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (options.hideCopyright) {
|
|
85
|
+
viewer.statusBar.hideCopyright();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (options.copyrightText) {
|
|
89
|
+
viewer.statusBar.setCopyrightText(options.copyrightText);
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
}
|
|
95
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 支持传入属性:
|
|
101
|
+
* hideResolution - 隐藏分辨率
|
|
102
|
+
* hideScale - 隐藏比例尺
|
|
103
|
+
* hideLonLat - 隐藏经纬度
|
|
104
|
+
* hideEyeAlt - 隐藏视点高
|
|
105
|
+
* hideCopyright - 隐藏版权信息
|
|
106
|
+
* copyrightText - 版权信息文字
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
const __default__ = {
|
|
110
|
+
name: "Kq3dStatusBar"
|
|
111
|
+
};
|
|
112
|
+
/* harmony default export */ var StatusBarvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
113
|
+
props: {
|
|
114
|
+
// 隐藏分辨率
|
|
115
|
+
hideResolution: Boolean,
|
|
116
|
+
// 隐藏比例尺
|
|
117
|
+
hideScale: Boolean,
|
|
118
|
+
// 隐藏经纬度
|
|
119
|
+
hideLonLat: Boolean,
|
|
120
|
+
// 隐藏视点高
|
|
121
|
+
hideEyeAlt: Boolean,
|
|
122
|
+
// 隐藏版权信息
|
|
123
|
+
hideCopyright: Boolean,
|
|
124
|
+
// 版权信息文字
|
|
125
|
+
copyrightText: String
|
|
126
|
+
},
|
|
127
|
+
|
|
128
|
+
setup(__props) {
|
|
129
|
+
const props = __props;
|
|
130
|
+
let viewModel = null;
|
|
131
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
132
|
+
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
133
|
+
if (scenceView) {
|
|
134
|
+
viewModel = new StatusBarViewModel(scenceView._viewer, props);
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
return (_ctx, _cache) => {
|
|
139
|
+
return null;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
}));
|
|
144
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
|
|
145
|
+
|
|
146
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/StatusBar.vue
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
const __exports__ = StatusBarvue_type_script_setup_true_lang_js;
|
|
151
|
+
|
|
152
|
+
/* harmony default export */ var StatusBar = (__exports__);
|
|
153
|
+
;// CONCATENATED MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
154
|
+
var init_js_namespaceObject = require("@kq_npm/client_common_vue/init.js");
|
|
155
|
+
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_namespaceObject);
|
|
156
|
+
;// CONCATENATED MODULE: ./src/webgl/statusbar/index.js
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
StatusBar.install = (Vue, opts) => {
|
|
162
|
+
init_js_default()(Vue, opts);
|
|
163
|
+
Vue.component(StatusBar.name, StatusBar);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
module.exports = __webpack_exports__;
|
|
168
|
+
/******/ })()
|
|
169
|
+
;
|