@kq_npm/client3d_webgl_vue 4.5.27-beta → 4.5.28-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/clientPrint/index.js +134 -11
- package/index.js +134 -11
- package/measure/index.js +1 -0
- package/package.json +1 -1
- package/sceneapp/index.js +134 -11
- package/sceneview/index.js +134 -11
- package/style.css +1 -1
- package/typhoontrac/index.js +106 -5
- package/typhoontrac/style/typhoontrac.css +1 -1
package/clientPrint/index.js
CHANGED
|
@@ -25682,6 +25682,12 @@ function resetWebMapInfo(webMapInfo, cb, defaultShowLayerNames, isShowAllLayers)
|
|
|
25682
25682
|
if (layers) {
|
|
25683
25683
|
for (let z = 0; z < layers.length; z++) {
|
|
25684
25684
|
if (Number(layers[z].parentLayerId) === Number(layerData.id)) {
|
|
25685
|
+
// zl
|
|
25686
|
+
// 处理kq图层原始的guid 后面会生成
|
|
25687
|
+
if (layers[z].guid) {
|
|
25688
|
+
layers[z]._guid = layers[z].guid;
|
|
25689
|
+
delete layers[z].guid;
|
|
25690
|
+
}
|
|
25685
25691
|
lo.push(layers[z]);
|
|
25686
25692
|
layers[z].sourceName = layerData.sourceName;
|
|
25687
25693
|
layers[z].url = layerData.url;
|
|
@@ -30498,7 +30504,7 @@ class DrawManager {
|
|
|
30498
30504
|
}
|
|
30499
30505
|
|
|
30500
30506
|
//开始绘制
|
|
30501
|
-
startDraw(type, style, callback, groupName) {
|
|
30507
|
+
startDraw(type, style, callback, groupName, isMulti = false) {
|
|
30502
30508
|
// 开始绘制之前停止编辑和关闭样式设置框
|
|
30503
30509
|
if (this._drawHandler.editHandler.shapeObject) {
|
|
30504
30510
|
this._drawHandler.startEdit(null);
|
|
@@ -30573,6 +30579,9 @@ class DrawManager {
|
|
|
30573
30579
|
});
|
|
30574
30580
|
}
|
|
30575
30581
|
removeEventListener();
|
|
30582
|
+
if (isMulti) {
|
|
30583
|
+
that.startDraw(type, style, callback, groupName, isMulti);
|
|
30584
|
+
}
|
|
30576
30585
|
});
|
|
30577
30586
|
}
|
|
30578
30587
|
stopDraw() {
|
|
@@ -31553,7 +31562,7 @@ class LayerManager {
|
|
|
31553
31562
|
}
|
|
31554
31563
|
source.mapServerInfo = (0,util_.formatKQMapInfo)(mapInfo.result, serverUrl, serverName, token, null, true);
|
|
31555
31564
|
source.mapServerInfo.layers_old.forEach(layer_old => {
|
|
31556
|
-
layer_old.guid =
|
|
31565
|
+
layer_old.guid = source.name + "@@@" + layer_old.id;
|
|
31557
31566
|
layer_old.sourceName = source.name;
|
|
31558
31567
|
this._layerListData_old.push(layer_old);
|
|
31559
31568
|
}, this);
|
|
@@ -31643,7 +31652,7 @@ class LayerManager {
|
|
|
31643
31652
|
layerData.sourceType = source.serverType;
|
|
31644
31653
|
layerData.renderType = source.renderType;
|
|
31645
31654
|
layerData.url = source.url;
|
|
31646
|
-
layerData.guid = layerData.
|
|
31655
|
+
layerData.guid = layerData.sourceName + "@@@" + (layerData.id || Math.random() * 10);
|
|
31647
31656
|
var type = layerData.renderType;
|
|
31648
31657
|
if (layerData.sourceType === "kqserver") {
|
|
31649
31658
|
if (source.token && layerData.url.indexOf("ua_token") < 0) {
|
|
@@ -32785,6 +32794,7 @@ class LayerManager {
|
|
|
32785
32794
|
getLayerDataByLayerChecked(serverType) {
|
|
32786
32795
|
let layerData = [];
|
|
32787
32796
|
let layers_checked = [];
|
|
32797
|
+
let that = this;
|
|
32788
32798
|
this._layerListData.forEach(layer => {
|
|
32789
32799
|
if (layer.visible) {
|
|
32790
32800
|
layers_checked.push(layer);
|
|
@@ -32818,7 +32828,7 @@ class LayerManager {
|
|
|
32818
32828
|
if (layers_old[z].groupLayer) {
|
|
32819
32829
|
getChildren(layers_old[z].id);
|
|
32820
32830
|
} else {
|
|
32821
|
-
if (
|
|
32831
|
+
if (that._isContainValue(serverType, layers_old[z].sourceType) && layers_old[z].vectorLayer === true) {
|
|
32822
32832
|
layerData.push(layers_old[z]);
|
|
32823
32833
|
}
|
|
32824
32834
|
}
|
|
@@ -33193,19 +33203,26 @@ class LayerManager {
|
|
|
33193
33203
|
}
|
|
33194
33204
|
}
|
|
33195
33205
|
|
|
33196
|
-
//
|
|
33197
|
-
reLoadHaiTu(encparam) {
|
|
33206
|
+
// 设置海图显示物标和缓存参数
|
|
33207
|
+
reLoadHaiTu(encparam, isCache) {
|
|
33208
|
+
this._encParam = encparam;
|
|
33198
33209
|
for (var i = 0; i < this._layerListData.length; i++) {
|
|
33199
33210
|
var layerData = this._layerListData[i];
|
|
33200
33211
|
if (layerData.layerType === 10) {
|
|
33201
33212
|
var layer = this.getLayerByGuid(layerData.guid);
|
|
33202
33213
|
if (layer) {
|
|
33214
|
+
layer.imageryProvider._cache = isCache;
|
|
33203
33215
|
layer.imageryProvider.encparam = encparam;
|
|
33204
33216
|
}
|
|
33205
33217
|
}
|
|
33206
33218
|
}
|
|
33207
33219
|
}
|
|
33208
33220
|
|
|
33221
|
+
// 获取海图设置参数
|
|
33222
|
+
getHaituParams() {
|
|
33223
|
+
return this._encParam;
|
|
33224
|
+
}
|
|
33225
|
+
|
|
33209
33226
|
//销毁
|
|
33210
33227
|
destroy() {
|
|
33211
33228
|
this._viewer = null;
|
|
@@ -33799,6 +33816,10 @@ const __default__ = {
|
|
|
33799
33816
|
for (let key in props.toolButtonsPosition) {
|
|
33800
33817
|
styleString += key + ":" + props.toolButtonsPosition[key] + ";";
|
|
33801
33818
|
}
|
|
33819
|
+
if (styleString) {
|
|
33820
|
+
styleString += "position: absolute;z-index: 9999;";
|
|
33821
|
+
toolButtonsCss.value = "vertical";
|
|
33822
|
+
}
|
|
33802
33823
|
toolButtonsStyle.value = styleString;
|
|
33803
33824
|
}
|
|
33804
33825
|
}
|
|
@@ -40023,10 +40044,10 @@ var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
|
40023
40044
|
|
|
40024
40045
|
|
|
40025
40046
|
const _hoisted_1 = {
|
|
40026
|
-
class: "kq3d-typhoon-box"
|
|
40047
|
+
class: "kq3d-typhoon-trac-box"
|
|
40027
40048
|
};
|
|
40028
40049
|
const _hoisted_2 = {
|
|
40029
|
-
class: "kq3d-typhoon-span"
|
|
40050
|
+
class: "kq3d-typhoon-trac-span"
|
|
40030
40051
|
};
|
|
40031
40052
|
|
|
40032
40053
|
|
|
@@ -40100,6 +40121,16 @@ const __default__ = {
|
|
|
40100
40121
|
// 生成组件默认header
|
|
40101
40122
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
40102
40123
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
40124
|
+
// 属性值
|
|
40125
|
+
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
40126
|
+
// 表格头样式
|
|
40127
|
+
let headClass = args => {
|
|
40128
|
+
return {
|
|
40129
|
+
"background-color": "var(--kq-fill-color-light)",
|
|
40130
|
+
color: "var(--kq-color-info)",
|
|
40131
|
+
"font-size": "14px"
|
|
40132
|
+
};
|
|
40133
|
+
};
|
|
40103
40134
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
40104
40135
|
typhoonTracPath: props.settingParams && props.settingParams.typhoonTracPath || ""
|
|
40105
40136
|
});
|
|
@@ -40160,6 +40191,14 @@ const __default__ = {
|
|
|
40160
40191
|
formItem.typhoonTracPath = url;
|
|
40161
40192
|
viewModel && viewModel.selectTyphoonTracPath(formItem.typhoonTracPath);
|
|
40162
40193
|
}
|
|
40194
|
+
// 定位
|
|
40195
|
+
function location(index, row) {}
|
|
40196
|
+
// 查看详情
|
|
40197
|
+
function getDatainfo(index, row) {}
|
|
40198
|
+
// 播放
|
|
40199
|
+
function setTracPlay(index, row) {}
|
|
40200
|
+
// 停止播放
|
|
40201
|
+
function setTracStop(index, row) {}
|
|
40163
40202
|
// 清除
|
|
40164
40203
|
function clear() {
|
|
40165
40204
|
viewModel && viewModel.clear();
|
|
@@ -40181,8 +40220,10 @@ const __default__ = {
|
|
|
40181
40220
|
const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
|
|
40182
40221
|
const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
|
|
40183
40222
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
40223
|
+
const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
|
|
40224
|
+
const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
|
|
40184
40225
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
40185
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-typhoon", {
|
|
40226
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-typhoon-trac", {
|
|
40186
40227
|
'kq-box-shadow': __props.showShadow
|
|
40187
40228
|
}]),
|
|
40188
40229
|
ref_key: "boxRef",
|
|
@@ -40232,10 +40273,91 @@ const __default__ = {
|
|
|
40232
40273
|
})]),
|
|
40233
40274
|
_: 1 /* STABLE */
|
|
40234
40275
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
40235
|
-
gutter: 20,
|
|
40236
40276
|
class: "rowClass"
|
|
40277
|
+
}, {
|
|
40278
|
+
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_col, null, {
|
|
40279
|
+
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_table, {
|
|
40280
|
+
border: "",
|
|
40281
|
+
stripe: "",
|
|
40282
|
+
data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tableData),
|
|
40283
|
+
style: {
|
|
40284
|
+
"width": "100%",
|
|
40285
|
+
"height": "100%"
|
|
40286
|
+
},
|
|
40287
|
+
"cell-style": {
|
|
40288
|
+
padding: '8px 0'
|
|
40289
|
+
},
|
|
40290
|
+
"header-cell-style": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headClass)
|
|
40291
|
+
}, {
|
|
40292
|
+
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_table_column, {
|
|
40293
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNumber,
|
|
40294
|
+
prop: "tfid",
|
|
40295
|
+
align: "center"
|
|
40296
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
40297
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameZh,
|
|
40298
|
+
prop: "name",
|
|
40299
|
+
align: "center"
|
|
40300
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
40301
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameEn,
|
|
40302
|
+
prop: "enname",
|
|
40303
|
+
align: "center"
|
|
40304
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
40305
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).operation,
|
|
40306
|
+
align: "center"
|
|
40307
|
+
}, {
|
|
40308
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(scope => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
40309
|
+
onClick: $event => location(scope.$index, scope.row),
|
|
40310
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).location
|
|
40311
|
+
}, {
|
|
40312
|
+
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, {
|
|
40313
|
+
size: 16
|
|
40314
|
+
}, {
|
|
40315
|
+
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_.IconLocation))]),
|
|
40316
|
+
_: 1 /* STABLE */
|
|
40317
|
+
})]),
|
|
40318
|
+
_: 2 /* DYNAMIC */
|
|
40319
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
40320
|
+
onClick: $event => getDatainfo(scope.$index, scope.row),
|
|
40321
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonDetails
|
|
40322
|
+
}, {
|
|
40323
|
+
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, {
|
|
40324
|
+
size: 16
|
|
40325
|
+
}, {
|
|
40326
|
+
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_.IconDetails))]),
|
|
40327
|
+
_: 1 /* STABLE */
|
|
40328
|
+
})]),
|
|
40329
|
+
_: 2 /* DYNAMIC */
|
|
40330
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
40331
|
+
onClick: $event => setTracPlay(scope.$index, scope.row),
|
|
40332
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).play
|
|
40333
|
+
}, {
|
|
40334
|
+
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, {
|
|
40335
|
+
size: 16
|
|
40336
|
+
}, {
|
|
40337
|
+
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_.IconVideoPlay))]),
|
|
40338
|
+
_: 1 /* STABLE */
|
|
40339
|
+
})]),
|
|
40340
|
+
_: 2 /* DYNAMIC */
|
|
40341
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
40342
|
+
onClick: $event => setTracStop(scope.$index, scope.row),
|
|
40343
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).stop
|
|
40344
|
+
}, {
|
|
40345
|
+
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, {
|
|
40346
|
+
size: 16
|
|
40347
|
+
}, {
|
|
40348
|
+
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_.IconVideoPlay))]),
|
|
40349
|
+
_: 1 /* STABLE */
|
|
40350
|
+
})]),
|
|
40351
|
+
_: 2 /* DYNAMIC */
|
|
40352
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"])]),
|
|
40353
|
+
_: 1 /* STABLE */
|
|
40354
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
40355
|
+
_: 1 /* STABLE */
|
|
40356
|
+
}, 8 /* PROPS */, ["data", "header-cell-style"])]),
|
|
40357
|
+
_: 1 /* STABLE */
|
|
40358
|
+
})]),
|
|
40359
|
+
_: 1 /* STABLE */
|
|
40237
40360
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
40238
|
-
gutter: 20,
|
|
40239
40361
|
class: "rowClass"
|
|
40240
40362
|
})])], 2 /* CLASS */);
|
|
40241
40363
|
};
|
|
@@ -44870,6 +44992,7 @@ const __default__ = {
|
|
|
44870
44992
|
messages
|
|
44871
44993
|
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
44872
44994
|
let measureTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
44995
|
+
measureTitle.value = language.value.measure;
|
|
44873
44996
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
44874
44997
|
language.value = Object.assign({}, messages.value[newVal]["webgl"], messages.value[newVal]["leaflet"]);
|
|
44875
44998
|
measureTitle.value = language.value.measure;
|
package/index.js
CHANGED
|
@@ -1431,7 +1431,7 @@ class DrawManager {
|
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
//开始绘制
|
|
1434
|
-
startDraw(type, style, callback, groupName) {
|
|
1434
|
+
startDraw(type, style, callback, groupName, isMulti = false) {
|
|
1435
1435
|
// 开始绘制之前停止编辑和关闭样式设置框
|
|
1436
1436
|
if (this._drawHandler.editHandler.shapeObject) {
|
|
1437
1437
|
this._drawHandler.startEdit(null);
|
|
@@ -1506,6 +1506,9 @@ class DrawManager {
|
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
removeEventListener();
|
|
1509
|
+
if (isMulti) {
|
|
1510
|
+
that.startDraw(type, style, callback, groupName, isMulti);
|
|
1511
|
+
}
|
|
1509
1512
|
});
|
|
1510
1513
|
}
|
|
1511
1514
|
stopDraw() {
|
|
@@ -2501,7 +2504,7 @@ class LayerManager {
|
|
|
2501
2504
|
}
|
|
2502
2505
|
source.mapServerInfo = (0,util_.formatKQMapInfo)(mapInfo.result, serverUrl, serverName, token, null, true);
|
|
2503
2506
|
source.mapServerInfo.layers_old.forEach(layer_old => {
|
|
2504
|
-
layer_old.guid =
|
|
2507
|
+
layer_old.guid = source.name + "@@@" + layer_old.id;
|
|
2505
2508
|
layer_old.sourceName = source.name;
|
|
2506
2509
|
this._layerListData_old.push(layer_old);
|
|
2507
2510
|
}, this);
|
|
@@ -2591,7 +2594,7 @@ class LayerManager {
|
|
|
2591
2594
|
layerData.sourceType = source.serverType;
|
|
2592
2595
|
layerData.renderType = source.renderType;
|
|
2593
2596
|
layerData.url = source.url;
|
|
2594
|
-
layerData.guid = layerData.
|
|
2597
|
+
layerData.guid = layerData.sourceName + "@@@" + (layerData.id || Math.random() * 10);
|
|
2595
2598
|
var type = layerData.renderType;
|
|
2596
2599
|
if (layerData.sourceType === "kqserver") {
|
|
2597
2600
|
if (source.token && layerData.url.indexOf("ua_token") < 0) {
|
|
@@ -3733,6 +3736,7 @@ class LayerManager {
|
|
|
3733
3736
|
getLayerDataByLayerChecked(serverType) {
|
|
3734
3737
|
let layerData = [];
|
|
3735
3738
|
let layers_checked = [];
|
|
3739
|
+
let that = this;
|
|
3736
3740
|
this._layerListData.forEach(layer => {
|
|
3737
3741
|
if (layer.visible) {
|
|
3738
3742
|
layers_checked.push(layer);
|
|
@@ -3766,7 +3770,7 @@ class LayerManager {
|
|
|
3766
3770
|
if (layers_old[z].groupLayer) {
|
|
3767
3771
|
getChildren(layers_old[z].id);
|
|
3768
3772
|
} else {
|
|
3769
|
-
if (
|
|
3773
|
+
if (that._isContainValue(serverType, layers_old[z].sourceType) && layers_old[z].vectorLayer === true) {
|
|
3770
3774
|
layerData.push(layers_old[z]);
|
|
3771
3775
|
}
|
|
3772
3776
|
}
|
|
@@ -4141,19 +4145,26 @@ class LayerManager {
|
|
|
4141
4145
|
}
|
|
4142
4146
|
}
|
|
4143
4147
|
|
|
4144
|
-
//
|
|
4145
|
-
reLoadHaiTu(encparam) {
|
|
4148
|
+
// 设置海图显示物标和缓存参数
|
|
4149
|
+
reLoadHaiTu(encparam, isCache) {
|
|
4150
|
+
this._encParam = encparam;
|
|
4146
4151
|
for (var i = 0; i < this._layerListData.length; i++) {
|
|
4147
4152
|
var layerData = this._layerListData[i];
|
|
4148
4153
|
if (layerData.layerType === 10) {
|
|
4149
4154
|
var layer = this.getLayerByGuid(layerData.guid);
|
|
4150
4155
|
if (layer) {
|
|
4156
|
+
layer.imageryProvider._cache = isCache;
|
|
4151
4157
|
layer.imageryProvider.encparam = encparam;
|
|
4152
4158
|
}
|
|
4153
4159
|
}
|
|
4154
4160
|
}
|
|
4155
4161
|
}
|
|
4156
4162
|
|
|
4163
|
+
// 获取海图设置参数
|
|
4164
|
+
getHaituParams() {
|
|
4165
|
+
return this._encParam;
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4157
4168
|
//销毁
|
|
4158
4169
|
destroy() {
|
|
4159
4170
|
this._viewer = null;
|
|
@@ -4747,6 +4758,10 @@ const __default__ = {
|
|
|
4747
4758
|
for (let key in props.toolButtonsPosition) {
|
|
4748
4759
|
styleString += key + ":" + props.toolButtonsPosition[key] + ";";
|
|
4749
4760
|
}
|
|
4761
|
+
if (styleString) {
|
|
4762
|
+
styleString += "position: absolute;z-index: 9999;";
|
|
4763
|
+
toolButtonsCss.value = "vertical";
|
|
4764
|
+
}
|
|
4750
4765
|
toolButtonsStyle.value = styleString;
|
|
4751
4766
|
}
|
|
4752
4767
|
}
|
|
@@ -8701,6 +8716,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8701
8716
|
messages
|
|
8702
8717
|
} = (0,vue_i18n_cjs_js_namespaceObject.useI18n)();
|
|
8703
8718
|
let measureTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
8719
|
+
measureTitle.value = language.value.measure;
|
|
8704
8720
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
8705
8721
|
language.value = Object.assign({}, messages.value[newVal]["webgl"], messages.value[newVal]["leaflet"]);
|
|
8706
8722
|
measureTitle.value = language.value.measure;
|
|
@@ -18161,10 +18177,10 @@ class TyphoonTracViewModel {
|
|
|
18161
18177
|
|
|
18162
18178
|
|
|
18163
18179
|
const TyphoonTracvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
18164
|
-
class: "kq3d-typhoon-box"
|
|
18180
|
+
class: "kq3d-typhoon-trac-box"
|
|
18165
18181
|
};
|
|
18166
18182
|
const TyphoonTracvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
18167
|
-
class: "kq3d-typhoon-span"
|
|
18183
|
+
class: "kq3d-typhoon-trac-span"
|
|
18168
18184
|
};
|
|
18169
18185
|
|
|
18170
18186
|
|
|
@@ -18238,6 +18254,16 @@ const TyphoonTracvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18238
18254
|
// 生成组件默认header
|
|
18239
18255
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18240
18256
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
18257
|
+
// 属性值
|
|
18258
|
+
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
18259
|
+
// 表格头样式
|
|
18260
|
+
let headClass = args => {
|
|
18261
|
+
return {
|
|
18262
|
+
"background-color": "var(--kq-fill-color-light)",
|
|
18263
|
+
color: "var(--kq-color-info)",
|
|
18264
|
+
"font-size": "14px"
|
|
18265
|
+
};
|
|
18266
|
+
};
|
|
18241
18267
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
18242
18268
|
typhoonTracPath: props.settingParams && props.settingParams.typhoonTracPath || ""
|
|
18243
18269
|
});
|
|
@@ -18298,6 +18324,14 @@ const TyphoonTracvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18298
18324
|
formItem.typhoonTracPath = url;
|
|
18299
18325
|
viewModel && viewModel.selectTyphoonTracPath(formItem.typhoonTracPath);
|
|
18300
18326
|
}
|
|
18327
|
+
// 定位
|
|
18328
|
+
function location(index, row) {}
|
|
18329
|
+
// 查看详情
|
|
18330
|
+
function getDatainfo(index, row) {}
|
|
18331
|
+
// 播放
|
|
18332
|
+
function setTracPlay(index, row) {}
|
|
18333
|
+
// 停止播放
|
|
18334
|
+
function setTracStop(index, row) {}
|
|
18301
18335
|
// 清除
|
|
18302
18336
|
function clear() {
|
|
18303
18337
|
viewModel && viewModel.clear();
|
|
@@ -18319,8 +18353,10 @@ const TyphoonTracvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18319
18353
|
const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
|
|
18320
18354
|
const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
|
|
18321
18355
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
18356
|
+
const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
|
|
18357
|
+
const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
|
|
18322
18358
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
18323
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-typhoon", {
|
|
18359
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-typhoon-trac", {
|
|
18324
18360
|
'kq-box-shadow': __props.showShadow
|
|
18325
18361
|
}]),
|
|
18326
18362
|
ref_key: "boxRef",
|
|
@@ -18370,10 +18406,91 @@ const TyphoonTracvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18370
18406
|
})]),
|
|
18371
18407
|
_: 1 /* STABLE */
|
|
18372
18408
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18373
|
-
gutter: 20,
|
|
18374
18409
|
class: "rowClass"
|
|
18410
|
+
}, {
|
|
18411
|
+
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_col, null, {
|
|
18412
|
+
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_table, {
|
|
18413
|
+
border: "",
|
|
18414
|
+
stripe: "",
|
|
18415
|
+
data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tableData),
|
|
18416
|
+
style: {
|
|
18417
|
+
"width": "100%",
|
|
18418
|
+
"height": "100%"
|
|
18419
|
+
},
|
|
18420
|
+
"cell-style": {
|
|
18421
|
+
padding: '8px 0'
|
|
18422
|
+
},
|
|
18423
|
+
"header-cell-style": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headClass)
|
|
18424
|
+
}, {
|
|
18425
|
+
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_table_column, {
|
|
18426
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNumber,
|
|
18427
|
+
prop: "tfid",
|
|
18428
|
+
align: "center"
|
|
18429
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
18430
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameZh,
|
|
18431
|
+
prop: "name",
|
|
18432
|
+
align: "center"
|
|
18433
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
18434
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameEn,
|
|
18435
|
+
prop: "enname",
|
|
18436
|
+
align: "center"
|
|
18437
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
18438
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).operation,
|
|
18439
|
+
align: "center"
|
|
18440
|
+
}, {
|
|
18441
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(scope => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
18442
|
+
onClick: $event => location(scope.$index, scope.row),
|
|
18443
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).location
|
|
18444
|
+
}, {
|
|
18445
|
+
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, {
|
|
18446
|
+
size: 16
|
|
18447
|
+
}, {
|
|
18448
|
+
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_namespaceObject.IconLocation))]),
|
|
18449
|
+
_: 1 /* STABLE */
|
|
18450
|
+
})]),
|
|
18451
|
+
_: 2 /* DYNAMIC */
|
|
18452
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
18453
|
+
onClick: $event => getDatainfo(scope.$index, scope.row),
|
|
18454
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonDetails
|
|
18455
|
+
}, {
|
|
18456
|
+
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, {
|
|
18457
|
+
size: 16
|
|
18458
|
+
}, {
|
|
18459
|
+
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_namespaceObject.IconDetails))]),
|
|
18460
|
+
_: 1 /* STABLE */
|
|
18461
|
+
})]),
|
|
18462
|
+
_: 2 /* DYNAMIC */
|
|
18463
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
18464
|
+
onClick: $event => setTracPlay(scope.$index, scope.row),
|
|
18465
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).play
|
|
18466
|
+
}, {
|
|
18467
|
+
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, {
|
|
18468
|
+
size: 16
|
|
18469
|
+
}, {
|
|
18470
|
+
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_namespaceObject.IconVideoPlay))]),
|
|
18471
|
+
_: 1 /* STABLE */
|
|
18472
|
+
})]),
|
|
18473
|
+
_: 2 /* DYNAMIC */
|
|
18474
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
18475
|
+
onClick: $event => setTracStop(scope.$index, scope.row),
|
|
18476
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).stop
|
|
18477
|
+
}, {
|
|
18478
|
+
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, {
|
|
18479
|
+
size: 16
|
|
18480
|
+
}, {
|
|
18481
|
+
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_namespaceObject.IconVideoPlay))]),
|
|
18482
|
+
_: 1 /* STABLE */
|
|
18483
|
+
})]),
|
|
18484
|
+
_: 2 /* DYNAMIC */
|
|
18485
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"])]),
|
|
18486
|
+
_: 1 /* STABLE */
|
|
18487
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
18488
|
+
_: 1 /* STABLE */
|
|
18489
|
+
}, 8 /* PROPS */, ["data", "header-cell-style"])]),
|
|
18490
|
+
_: 1 /* STABLE */
|
|
18491
|
+
})]),
|
|
18492
|
+
_: 1 /* STABLE */
|
|
18375
18493
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
18376
|
-
gutter: 20,
|
|
18377
18494
|
class: "rowClass"
|
|
18378
18495
|
})])], 2 /* CLASS */);
|
|
18379
18496
|
};
|
|
@@ -41270,6 +41387,12 @@ function resetWebMapInfo(webMapInfo, cb, defaultShowLayerNames, isShowAllLayers)
|
|
|
41270
41387
|
if (layers) {
|
|
41271
41388
|
for (let z = 0; z < layers.length; z++) {
|
|
41272
41389
|
if (Number(layers[z].parentLayerId) === Number(layerData.id)) {
|
|
41390
|
+
// zl
|
|
41391
|
+
// 处理kq图层原始的guid 后面会生成
|
|
41392
|
+
if (layers[z].guid) {
|
|
41393
|
+
layers[z]._guid = layers[z].guid;
|
|
41394
|
+
delete layers[z].guid;
|
|
41395
|
+
}
|
|
41273
41396
|
lo.push(layers[z]);
|
|
41274
41397
|
layers[z].sourceName = layerData.sourceName;
|
|
41275
41398
|
layers[z].url = layerData.url;
|
package/measure/index.js
CHANGED
|
@@ -452,6 +452,7 @@ const __default__ = {
|
|
|
452
452
|
messages
|
|
453
453
|
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
454
454
|
let measureTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
455
|
+
measureTitle.value = language.value.measure;
|
|
455
456
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
456
457
|
language.value = Object.assign({}, messages.value[newVal]["webgl"], messages.value[newVal]["leaflet"]);
|
|
457
458
|
measureTitle.value = language.value.measure;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.5.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.5.28-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"sdkNames":["@kq_npm/client_icons_vue"],"restrictedVersion":true,"validateSDK":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","jsdelivr":"index.js","main":"index.js","dependencies":{"save":"2.5.0","html2canvas":"1.4.1","papaparse":"5.4.1"}}
|