@kq_npm/client3d_webgl_vue 2.8.7-beta → 2.8.9-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/aspectanalysis/index.js +2 -2
- package/baseterraingallery/index.js +9 -9
- package/comparemap/index.js +2 -2
- package/index.js +140 -138
- package/measure/index.js +11 -11
- package/package.json +1 -1
- package/scenceview/index.js +135 -133
- package/skylineanalysis/index.js +41 -41
- package/statusbar/index.js +8 -8
package/scenceview/index.js
CHANGED
|
@@ -1535,8 +1535,8 @@ AddData.install = (Vue, opts) => {
|
|
|
1535
1535
|
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
1536
1536
|
|
|
1537
1537
|
|
|
1538
|
-
/**
|
|
1539
|
-
* 坡向逻辑类
|
|
1538
|
+
/**
|
|
1539
|
+
* 坡向逻辑类
|
|
1540
1540
|
**/
|
|
1541
1541
|
class AspectAnalysisViewModel {
|
|
1542
1542
|
// 坡向三维对象
|
|
@@ -2037,16 +2037,16 @@ class BaseterrainGalleryViewModel {
|
|
|
2037
2037
|
subdomains: ["8", "9", "10", "11", "12"]
|
|
2038
2038
|
});
|
|
2039
2039
|
}
|
|
2040
|
-
/**
|
|
2041
|
-
* 无地形
|
|
2040
|
+
/**
|
|
2041
|
+
* 无地形
|
|
2042
2042
|
*/
|
|
2043
2043
|
|
|
2044
2044
|
|
|
2045
2045
|
terrainNo() {
|
|
2046
2046
|
this._baseterrainGallery.terrainNo = new window.Cesium.EllipsoidTerrainProvider();
|
|
2047
2047
|
}
|
|
2048
|
-
/**
|
|
2049
|
-
* cesium全球地形
|
|
2048
|
+
/**
|
|
2049
|
+
* cesium全球地形
|
|
2050
2050
|
*/
|
|
2051
2051
|
|
|
2052
2052
|
|
|
@@ -2057,16 +2057,16 @@ class BaseterrainGalleryViewModel {
|
|
|
2057
2057
|
requestWaterMask: true
|
|
2058
2058
|
});
|
|
2059
2059
|
}
|
|
2060
|
-
/**
|
|
2061
|
-
* 清理地图
|
|
2060
|
+
/**
|
|
2061
|
+
* 清理地图
|
|
2062
2062
|
*/
|
|
2063
2063
|
|
|
2064
2064
|
|
|
2065
2065
|
clear() {
|
|
2066
2066
|
this.setTerrainType(2);
|
|
2067
2067
|
}
|
|
2068
|
-
/**
|
|
2069
|
-
* 注销
|
|
2068
|
+
/**
|
|
2069
|
+
* 注销
|
|
2070
2070
|
*/
|
|
2071
2071
|
|
|
2072
2072
|
|
|
@@ -2240,7 +2240,7 @@ const __default__ = {
|
|
|
2240
2240
|
span: 24
|
|
2241
2241
|
}, {
|
|
2242
2242
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, null, {
|
|
2243
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-row @click=\"clickHandler(0)\" :class=\"currentIndex == 0 ? 'active' : ''\">\n <kq-col :span=\"5\">\n <img :src=\"TDT_TERRAiIN_URL\" alt=\"\" />\n </kq-col>\n <kq-col :span=\"19\">{{ language.tiandituTerrain }} </kq-col>\n </kq-row> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
2243
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-row @click=\"clickHandler(0)\" :class=\"currentIndex == 0 ? 'active' : ''\">\r\n <kq-col :span=\"5\">\r\n <img :src=\"TDT_TERRAiIN_URL\" alt=\"\" />\r\n </kq-col>\r\n <kq-col :span=\"19\">{{ language.tiandituTerrain }} </kq-col>\r\n </kq-row> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
2244
2244
|
onClick: _cache[0] || (_cache[0] = $event => clickHandler(1)),
|
|
2245
2245
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentIndex) == 1 ? 'active' : '')
|
|
2246
2246
|
}, {
|
|
@@ -3513,8 +3513,8 @@ const __default__ = {
|
|
|
3513
3513
|
|
|
3514
3514
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
3515
3515
|
let viewModel = null;
|
|
3516
|
-
/**
|
|
3517
|
-
* 勾选图层逻辑
|
|
3516
|
+
/**
|
|
3517
|
+
* 勾选图层逻辑
|
|
3518
3518
|
*/
|
|
3519
3519
|
|
|
3520
3520
|
function changeLayer(values) {
|
|
@@ -10785,9 +10785,9 @@ const __default__ = {
|
|
|
10785
10785
|
var unit = "°";
|
|
10786
10786
|
return azimuth.toFixed(4) + " " + unit;
|
|
10787
10787
|
}
|
|
10788
|
-
/**
|
|
10789
|
-
* @description 监听单位变化操作
|
|
10790
|
-
* @param {string} unit - 单位
|
|
10788
|
+
/**
|
|
10789
|
+
* @description 监听单位变化操作
|
|
10790
|
+
* @param {string} unit - 单位
|
|
10791
10791
|
*/
|
|
10792
10792
|
|
|
10793
10793
|
|
|
@@ -10795,11 +10795,11 @@ const __default__ = {
|
|
|
10795
10795
|
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
10796
10796
|
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
10797
10797
|
}
|
|
10798
|
-
/**
|
|
10799
|
-
* @description 测量距离数值单位换算
|
|
10800
|
-
* @param {string} value - 原始数值
|
|
10801
|
-
* @param {string} unit - 单位
|
|
10802
|
-
* @returns {string} 新数值
|
|
10798
|
+
/**
|
|
10799
|
+
* @description 测量距离数值单位换算
|
|
10800
|
+
* @param {string} value - 原始数值
|
|
10801
|
+
* @param {string} unit - 单位
|
|
10802
|
+
* @returns {string} 新数值
|
|
10803
10803
|
*/
|
|
10804
10804
|
|
|
10805
10805
|
|
|
@@ -10861,8 +10861,8 @@ const __default__ = {
|
|
|
10861
10861
|
break;
|
|
10862
10862
|
}
|
|
10863
10863
|
}
|
|
10864
|
-
/**
|
|
10865
|
-
* 清除测量
|
|
10864
|
+
/**
|
|
10865
|
+
* 清除测量
|
|
10866
10866
|
*/
|
|
10867
10867
|
|
|
10868
10868
|
|
|
@@ -10973,7 +10973,7 @@ const __default__ = {
|
|
|
10973
10973
|
|
|
10974
10974
|
}, 8
|
|
10975
10975
|
/* PROPS */
|
|
10976
|
-
, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-button @click.stop=\"startMeasure('azimuth')\" :class=\"isActive == 'azimuth' ? 'is-active' : null\" :title=\"language.azimuthMeasure\">\n <kq-icon :size=\"24\">\n <IconMeasureAzimuth />\n </kq-icon>\n </kq-button> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
10976
|
+
, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-button @click.stop=\"startMeasure('azimuth')\" :class=\"isActive == 'azimuth' ? 'is-active' : null\" :title=\"language.azimuthMeasure\">\r\n <kq-icon :size=\"24\">\r\n <IconMeasureAzimuth />\r\n </kq-icon>\r\n </kq-button> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
10977
10977
|
type: "danger",
|
|
10978
10978
|
plain: "",
|
|
10979
10979
|
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
|
|
@@ -16826,19 +16826,19 @@ SightlineAnalysis.install = (Vue, opts) => {
|
|
|
16826
16826
|
|
|
16827
16827
|
//天际线分析逻辑类
|
|
16828
16828
|
class SkylineAnalysisViewModel {
|
|
16829
|
-
/**
|
|
16830
|
-
* 天际线分析逻辑类
|
|
16831
|
-
* @param {Object} _skylineAnalysis 天际线分析三维对象
|
|
16832
|
-
* @param {Object} _skylineAnalysisChart 二维天际线折线图表(外部生成)
|
|
16833
|
-
* @param {String} _skylineAnalysisChartTitle 二维天际线折线图表标题(中英文适配)
|
|
16834
|
-
* @param {Object} _options 天际线分析存储参数对象
|
|
16835
|
-
* @param {Object} _showLimitHeightBody 限高体是否显示
|
|
16829
|
+
/**
|
|
16830
|
+
* 天际线分析逻辑类
|
|
16831
|
+
* @param {Object} _skylineAnalysis 天际线分析三维对象
|
|
16832
|
+
* @param {Object} _skylineAnalysisChart 二维天际线折线图表(外部生成)
|
|
16833
|
+
* @param {String} _skylineAnalysisChartTitle 二维天际线折线图表标题(中英文适配)
|
|
16834
|
+
* @param {Object} _options 天际线分析存储参数对象
|
|
16835
|
+
* @param {Object} _showLimitHeightBody 限高体是否显示
|
|
16836
16836
|
*/
|
|
16837
16837
|
|
|
16838
|
-
/**
|
|
16839
|
-
* 天际线分析逻辑类构造函数
|
|
16840
|
-
* @param {*} viewer 三维对象
|
|
16841
|
-
* @param {*} option 天际线分析参数对象
|
|
16838
|
+
/**
|
|
16839
|
+
* 天际线分析逻辑类构造函数
|
|
16840
|
+
* @param {*} viewer 三维对象
|
|
16841
|
+
* @param {*} option 天际线分析参数对象
|
|
16842
16842
|
*/
|
|
16843
16843
|
constructor(viewer, option) {
|
|
16844
16844
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_skylineAnalysis", null);
|
|
@@ -16876,8 +16876,8 @@ class SkylineAnalysisViewModel {
|
|
|
16876
16876
|
|
|
16877
16877
|
this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
|
|
16878
16878
|
}
|
|
16879
|
-
/**
|
|
16880
|
-
* 提取天际线
|
|
16879
|
+
/**
|
|
16880
|
+
* 提取天际线
|
|
16881
16881
|
*/
|
|
16882
16882
|
|
|
16883
16883
|
|
|
@@ -16906,8 +16906,8 @@ class SkylineAnalysisViewModel {
|
|
|
16906
16906
|
throw "请添加模型后提取!";
|
|
16907
16907
|
}
|
|
16908
16908
|
}
|
|
16909
|
-
/**
|
|
16910
|
-
* 绘制限高体
|
|
16909
|
+
/**
|
|
16910
|
+
* 绘制限高体
|
|
16911
16911
|
*/
|
|
16912
16912
|
|
|
16913
16913
|
|
|
@@ -16937,8 +16937,8 @@ class SkylineAnalysisViewModel {
|
|
|
16937
16937
|
throw "请添加模型后绘制!";
|
|
16938
16938
|
}
|
|
16939
16939
|
}
|
|
16940
|
-
/**
|
|
16941
|
-
* 展示二维天际线
|
|
16940
|
+
/**
|
|
16941
|
+
* 展示二维天际线
|
|
16942
16942
|
*/
|
|
16943
16943
|
|
|
16944
16944
|
|
|
@@ -16981,8 +16981,8 @@ class SkylineAnalysisViewModel {
|
|
|
16981
16981
|
};
|
|
16982
16982
|
this._skylineAnalysisChart && this._skylineAnalysisChart.setOption(option);
|
|
16983
16983
|
}
|
|
16984
|
-
/**
|
|
16985
|
-
* 清除限高体
|
|
16984
|
+
/**
|
|
16985
|
+
* 清除限高体
|
|
16986
16986
|
*/
|
|
16987
16987
|
|
|
16988
16988
|
|
|
@@ -16999,9 +16999,9 @@ class SkylineAnalysisViewModel {
|
|
|
16999
16999
|
this._skylineAnalysis.removeCzmlJsonDataSource();
|
|
17000
17000
|
}
|
|
17001
17001
|
}
|
|
17002
|
-
/**
|
|
17003
|
-
* 设置天际线颜色
|
|
17004
|
-
* @param {String} lineColor 天际线颜色
|
|
17002
|
+
/**
|
|
17003
|
+
* 设置天际线颜色
|
|
17004
|
+
* @param {String} lineColor 天际线颜色
|
|
17005
17005
|
*/
|
|
17006
17006
|
|
|
17007
17007
|
|
|
@@ -17010,10 +17010,10 @@ class SkylineAnalysisViewModel {
|
|
|
17010
17010
|
this._options.lineColor = window.Cesium.Color.fromCssColorString(lineColor);
|
|
17011
17011
|
if (this._skylineAnalysis) this._skylineAnalysis.lineColor = this._options.lineColor;
|
|
17012
17012
|
}
|
|
17013
|
-
/**
|
|
17014
|
-
* 设置限高体颜色
|
|
17015
|
-
* @param {String} faceColor 限高体轮廓颜色
|
|
17016
|
-
* @param {String} alpha 限高体轮廓颜色透明度
|
|
17013
|
+
/**
|
|
17014
|
+
* 设置限高体颜色
|
|
17015
|
+
* @param {String} faceColor 限高体轮廓颜色
|
|
17016
|
+
* @param {String} alpha 限高体轮廓颜色透明度
|
|
17017
17017
|
*/
|
|
17018
17018
|
|
|
17019
17019
|
|
|
@@ -17022,9 +17022,9 @@ class SkylineAnalysisViewModel {
|
|
|
17022
17022
|
this._options.faceColor = window.Cesium.Color.fromCssColorString(faceColor).withAlpha(alpha || 1);
|
|
17023
17023
|
if (this._skylineAnalysis && this._showLimitHeightBody) this._skylineAnalysis.faceColor = this._options.faceColor;
|
|
17024
17024
|
}
|
|
17025
|
-
/**
|
|
17026
|
-
* 设置天际线半径
|
|
17027
|
-
* @param {String} radius 天际线半径
|
|
17025
|
+
/**
|
|
17026
|
+
* 设置天际线半径
|
|
17027
|
+
* @param {String} radius 天际线半径
|
|
17028
17028
|
*/
|
|
17029
17029
|
|
|
17030
17030
|
|
|
@@ -17033,10 +17033,10 @@ class SkylineAnalysisViewModel {
|
|
|
17033
17033
|
this._options.radius = radius;
|
|
17034
17034
|
if (this._skylineAnalysis) this._skylineAnalysis.radius = radius;
|
|
17035
17035
|
}
|
|
17036
|
-
/**
|
|
17037
|
-
* 设置限高体透明度
|
|
17038
|
-
* @param {String} faceColor 限高体轮廓颜色
|
|
17039
|
-
* @param {String} alpha 限高体轮廓颜色透明度
|
|
17036
|
+
/**
|
|
17037
|
+
* 设置限高体透明度
|
|
17038
|
+
* @param {String} faceColor 限高体轮廓颜色
|
|
17039
|
+
* @param {String} alpha 限高体轮廓颜色透明度
|
|
17040
17040
|
*/
|
|
17041
17041
|
|
|
17042
17042
|
|
|
@@ -17045,10 +17045,10 @@ class SkylineAnalysisViewModel {
|
|
|
17045
17045
|
this._options.faceColor = window.Cesium.Color.fromCssColorString(faceColor).withAlpha(alpha || 1);
|
|
17046
17046
|
if (this._skylineAnalysis && this._showLimitHeightBody) this._skylineAnalysis.faceColor = this._options.faceColor;
|
|
17047
17047
|
}
|
|
17048
|
-
/**
|
|
17049
|
-
* 设置限高体轮廓颜色
|
|
17050
|
-
* @param {String} faceOutlineColor 限高体轮廓颜色
|
|
17051
|
-
* @param {String} alpha 限高体轮廓颜色透明度
|
|
17048
|
+
/**
|
|
17049
|
+
* 设置限高体轮廓颜色
|
|
17050
|
+
* @param {String} faceOutlineColor 限高体轮廓颜色
|
|
17051
|
+
* @param {String} alpha 限高体轮廓颜色透明度
|
|
17052
17052
|
*/
|
|
17053
17053
|
|
|
17054
17054
|
|
|
@@ -17060,8 +17060,8 @@ class SkylineAnalysisViewModel {
|
|
|
17060
17060
|
this._skylineAnalysis.faceOutlineColor = this._options.faceOutlineColor;
|
|
17061
17061
|
}
|
|
17062
17062
|
}
|
|
17063
|
-
/*
|
|
17064
|
-
* 清除
|
|
17063
|
+
/*
|
|
17064
|
+
* 清除
|
|
17065
17065
|
*/
|
|
17066
17066
|
|
|
17067
17067
|
|
|
@@ -17074,8 +17074,8 @@ class SkylineAnalysisViewModel {
|
|
|
17074
17074
|
this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
|
|
17075
17075
|
}
|
|
17076
17076
|
}
|
|
17077
|
-
/**
|
|
17078
|
-
* 注销
|
|
17077
|
+
/**
|
|
17078
|
+
* 注销
|
|
17079
17079
|
*/
|
|
17080
17080
|
|
|
17081
17081
|
|
|
@@ -18662,14 +18662,14 @@ var StatusBarViewModel = __webpack_require__(6311);
|
|
|
18662
18662
|
|
|
18663
18663
|
|
|
18664
18664
|
|
|
18665
|
-
/**
|
|
18666
|
-
* 支持传入属性:
|
|
18667
|
-
* hideResolution - 隐藏分辨率
|
|
18668
|
-
* hideScale - 隐藏比例尺
|
|
18669
|
-
* hideLonLat - 隐藏经纬度
|
|
18670
|
-
* hideEyeAlt - 隐藏视点高
|
|
18671
|
-
* hideCopyright - 隐藏版权信息
|
|
18672
|
-
* copyrightText - 版权信息文字
|
|
18665
|
+
/**
|
|
18666
|
+
* 支持传入属性:
|
|
18667
|
+
* hideResolution - 隐藏分辨率
|
|
18668
|
+
* hideScale - 隐藏比例尺
|
|
18669
|
+
* hideLonLat - 隐藏经纬度
|
|
18670
|
+
* hideEyeAlt - 隐藏视点高
|
|
18671
|
+
* hideCopyright - 隐藏版权信息
|
|
18672
|
+
* copyrightText - 版权信息文字
|
|
18673
18673
|
*/
|
|
18674
18674
|
|
|
18675
18675
|
const __default__ = {
|
|
@@ -21403,11 +21403,11 @@ var underground = __webpack_require__(8521);
|
|
|
21403
21403
|
// EXTERNAL MODULE: ./src/webgl/statusbar/index.js + 5 modules
|
|
21404
21404
|
var statusbar = __webpack_require__(6466);
|
|
21405
21405
|
;// CONCATENATED MODULE: ./src/webgl/components.js
|
|
21406
|
-
/**
|
|
21407
|
-
* Author: 朱鹏超
|
|
21408
|
-
* Date: 2022-11-23
|
|
21409
|
-
* Description: client3d_webgl_vue 组件入口
|
|
21410
|
-
* LastEditors: 朱鹏超
|
|
21406
|
+
/**
|
|
21407
|
+
* Author: 朱鹏超
|
|
21408
|
+
* Date: 2022-11-23
|
|
21409
|
+
* Description: client3d_webgl_vue 组件入口
|
|
21410
|
+
* LastEditors: 朱鹏超
|
|
21411
21411
|
*/
|
|
21412
21412
|
|
|
21413
21413
|
// 三维地图快捷工具
|
|
@@ -21832,6 +21832,8 @@ class DrawManager {
|
|
|
21832
21832
|
steps: 64,
|
|
21833
21833
|
units: "meters"
|
|
21834
21834
|
});
|
|
21835
|
+
geoFeature.geometry.radius = shape.radius;
|
|
21836
|
+
geoFeature.geometry.center = Cesium.Utils.cartesian2Lonlat(shape.center);
|
|
21835
21837
|
} else if (shape.type === that._drawHandler.ShapeTypes.POLYLINE.type) {
|
|
21836
21838
|
let position = [[]];
|
|
21837
21839
|
shape.controlPoints.forEach(function (val) {
|
|
@@ -21884,7 +21886,7 @@ class DrawManager {
|
|
|
21884
21886
|
|
|
21885
21887
|
for (var type in style) {
|
|
21886
21888
|
if (style[type].hasOwnProperty("color")) {
|
|
21887
|
-
style[type].material = Cesium.Color.fromCssColorString(style[type].color).withAlpha(style[type].opacity);
|
|
21889
|
+
if (!style[type].material) style[type].material = Cesium.Color.fromCssColorString(style[type].color).withAlpha(style[type].opacity);
|
|
21888
21890
|
}
|
|
21889
21891
|
|
|
21890
21892
|
if (style[type].hasOwnProperty("fillColor")) {
|
|
@@ -22788,11 +22790,11 @@ class LayerManager {
|
|
|
22788
22790
|
serverType: "3dtiles"
|
|
22789
22791
|
});
|
|
22790
22792
|
}
|
|
22791
|
-
/**
|
|
22792
|
-
* 设置多个图层的显示与隐藏 且控制树的勾选
|
|
22793
|
-
* @param ids 图层的GUID数组
|
|
22794
|
-
* @param visible true, false
|
|
22795
|
-
* @param eventTarget 触发方法的对象。该方法有执行其他监听事件,为防止方法死循环,该参数会传给监听事件
|
|
22793
|
+
/**
|
|
22794
|
+
* 设置多个图层的显示与隐藏 且控制树的勾选
|
|
22795
|
+
* @param ids 图层的GUID数组
|
|
22796
|
+
* @param visible true, false
|
|
22797
|
+
* @param eventTarget 触发方法的对象。该方法有执行其他监听事件,为防止方法死循环,该参数会传给监听事件
|
|
22796
22798
|
*/
|
|
22797
22799
|
|
|
22798
22800
|
|
|
@@ -23070,8 +23072,8 @@ class LayerManager {
|
|
|
23070
23072
|
|
|
23071
23073
|
return checkedKeys;
|
|
23072
23074
|
}
|
|
23073
|
-
/**
|
|
23074
|
-
* 获取勾选图层的图层数据,如果是有融合图层,则只返回融合图层的子图层
|
|
23075
|
+
/**
|
|
23076
|
+
* 获取勾选图层的图层数据,如果是有融合图层,则只返回融合图层的子图层
|
|
23075
23077
|
*/
|
|
23076
23078
|
|
|
23077
23079
|
|
|
@@ -23345,12 +23347,12 @@ class LayerManager {
|
|
|
23345
23347
|
|
|
23346
23348
|
this._viewer.terrainProvider = terrainProvider;
|
|
23347
23349
|
}
|
|
23348
|
-
/**
|
|
23349
|
-
* 删除临时添加数据
|
|
23350
|
-
* 移除渲染图层
|
|
23351
|
-
* 删除 _layerTreeData的临时图层数据
|
|
23352
|
-
* 删除 _layerListData的临时图层数据
|
|
23353
|
-
* @param guid
|
|
23350
|
+
/**
|
|
23351
|
+
* 删除临时添加数据
|
|
23352
|
+
* 移除渲染图层
|
|
23353
|
+
* 删除 _layerTreeData的临时图层数据
|
|
23354
|
+
* 删除 _layerListData的临时图层数据
|
|
23355
|
+
* @param guid
|
|
23354
23356
|
*/
|
|
23355
23357
|
|
|
23356
23358
|
|
|
@@ -23436,10 +23438,10 @@ class LayerManager {
|
|
|
23436
23438
|
}
|
|
23437
23439
|
|
|
23438
23440
|
}
|
|
23439
|
-
/**
|
|
23440
|
-
* 根据guid获取子节点guid集合
|
|
23441
|
-
* @param data
|
|
23442
|
-
* @param guid
|
|
23441
|
+
/**
|
|
23442
|
+
* 根据guid获取子节点guid集合
|
|
23443
|
+
* @param data
|
|
23444
|
+
* @param guid
|
|
23443
23445
|
*/
|
|
23444
23446
|
|
|
23445
23447
|
function getChildrenByGuid(data, guid, guids, addChildren = false) {
|
|
@@ -23457,10 +23459,10 @@ function getChildrenByGuid(data, guid, guids, addChildren = false) {
|
|
|
23457
23459
|
}
|
|
23458
23460
|
}
|
|
23459
23461
|
}
|
|
23460
|
-
/**
|
|
23461
|
-
* 根据guid删除树节点数据,包含子节点也删除
|
|
23462
|
-
* @param data
|
|
23463
|
-
* @param guid
|
|
23462
|
+
/**
|
|
23463
|
+
* 根据guid删除树节点数据,包含子节点也删除
|
|
23464
|
+
* @param data
|
|
23465
|
+
* @param guid
|
|
23464
23466
|
*/
|
|
23465
23467
|
|
|
23466
23468
|
|
|
@@ -23705,11 +23707,11 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
23705
23707
|
|
|
23706
23708
|
return layer;
|
|
23707
23709
|
}
|
|
23708
|
-
/**
|
|
23709
|
-
* 操作底图显隐的方法
|
|
23710
|
-
* @param layerKey 存储图层信息的key
|
|
23711
|
-
* @param layerInfo 创建图层的参数信息对象
|
|
23712
|
-
* @param visible 显隐
|
|
23710
|
+
/**
|
|
23711
|
+
* 操作底图显隐的方法
|
|
23712
|
+
* @param layerKey 存储图层信息的key
|
|
23713
|
+
* @param layerInfo 创建图层的参数信息对象
|
|
23714
|
+
* @param visible 显隐
|
|
23713
23715
|
*/
|
|
23714
23716
|
|
|
23715
23717
|
|
|
@@ -23836,10 +23838,10 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
23836
23838
|
|
|
23837
23839
|
return layer;
|
|
23838
23840
|
}
|
|
23839
|
-
/**
|
|
23840
|
-
* 操作在线底图,添加显示隐藏图层
|
|
23841
|
-
* @param {Object} layerConfig 图层数据
|
|
23842
|
-
* @param {boolean} visible 显隐
|
|
23841
|
+
/**
|
|
23842
|
+
* 操作在线底图,添加显示隐藏图层
|
|
23843
|
+
* @param {Object} layerConfig 图层数据
|
|
23844
|
+
* @param {boolean} visible 显隐
|
|
23843
23845
|
*/
|
|
23844
23846
|
|
|
23845
23847
|
|
|
@@ -23864,8 +23866,8 @@ class ScenceViewViewModel extends (mitt_default()) {
|
|
|
23864
23866
|
}
|
|
23865
23867
|
}
|
|
23866
23868
|
}
|
|
23867
|
-
/**
|
|
23868
|
-
* 移除所有在线底图在地图中的显示
|
|
23869
|
+
/**
|
|
23870
|
+
* 移除所有在线底图在地图中的显示
|
|
23869
23871
|
*/
|
|
23870
23872
|
|
|
23871
23873
|
|
|
@@ -23942,17 +23944,17 @@ const __default__ = {
|
|
|
23942
23944
|
},
|
|
23943
23945
|
options: Object,
|
|
23944
23946
|
|
|
23945
|
-
/**
|
|
23946
|
-
* 图层数据源
|
|
23947
|
-
* 事例:
|
|
23948
|
-
* {
|
|
23949
|
-
name: null,// 服务名称
|
|
23950
|
-
url: null,//服务地址
|
|
23951
|
-
token: null,//服务token
|
|
23952
|
-
type: "kqmapserver", //服务类型 kqmapserver或者kq3dserver
|
|
23953
|
-
isShowAllLayers: true,
|
|
23954
|
-
defaultShowLayerNames: []
|
|
23955
|
-
}
|
|
23947
|
+
/**
|
|
23948
|
+
* 图层数据源
|
|
23949
|
+
* 事例:
|
|
23950
|
+
* {
|
|
23951
|
+
name: null,// 服务名称
|
|
23952
|
+
url: null,//服务地址
|
|
23953
|
+
token: null,//服务token
|
|
23954
|
+
type: "kqmapserver", //服务类型 kqmapserver或者kq3dserver
|
|
23955
|
+
isShowAllLayers: true,
|
|
23956
|
+
defaultShowLayerNames: []
|
|
23957
|
+
}
|
|
23956
23958
|
*/
|
|
23957
23959
|
service: Object,
|
|
23958
23960
|
// ScenceView初始化的参数对象,包含初始化范围和layer信息。
|
|
@@ -23964,9 +23966,9 @@ const __default__ = {
|
|
|
23964
23966
|
default: true
|
|
23965
23967
|
},
|
|
23966
23968
|
|
|
23967
|
-
/**
|
|
23968
|
-
* 例:"top-left","top-right","bottom-left","bottom-right","left","right","bottom"
|
|
23969
|
-
* {top:'16px',left:'16px'}, {top:16,left:16}
|
|
23969
|
+
/**
|
|
23970
|
+
* 例:"top-left","top-right","bottom-left","bottom-right","left","right","bottom"
|
|
23971
|
+
* {top:'16px',left:'16px'}, {top:16,left:16}
|
|
23970
23972
|
*/
|
|
23971
23973
|
toolButtonsPosition: [String, Object],
|
|
23972
23974
|
showLogo: {
|
|
@@ -23987,12 +23989,12 @@ const __default__ = {
|
|
|
23987
23989
|
const {
|
|
23988
23990
|
proxy
|
|
23989
23991
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
23990
|
-
/**
|
|
23991
|
-
* 支持传入属性:
|
|
23992
|
-
* target - viewer对象渲染的div的id
|
|
23993
|
-
* options - 三维球初始化属性设置
|
|
23994
|
-
* scenceUrl - 场景地址
|
|
23995
|
-
* showToolButtons - 是否显示工具栏按钮
|
|
23992
|
+
/**
|
|
23993
|
+
* 支持传入属性:
|
|
23994
|
+
* target - viewer对象渲染的div的id
|
|
23995
|
+
* options - 三维球初始化属性设置
|
|
23996
|
+
* scenceUrl - 场景地址
|
|
23997
|
+
* showToolButtons - 是否显示工具栏按钮
|
|
23996
23998
|
*/
|
|
23997
23999
|
|
|
23998
24000
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
@@ -24028,8 +24030,8 @@ const __default__ = {
|
|
|
24028
24030
|
viewModel = new ScenceViewViewModel(props, _language);
|
|
24029
24031
|
viewModel.initViewer();
|
|
24030
24032
|
});
|
|
24031
|
-
/**
|
|
24032
|
-
* 获取ScenceView的逻辑类
|
|
24033
|
+
/**
|
|
24034
|
+
* 获取ScenceView的逻辑类
|
|
24033
24035
|
*/
|
|
24034
24036
|
|
|
24035
24037
|
function getViewModel() {
|
package/skylineanalysis/index.js
CHANGED
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
|
|
13
13
|
//天际线分析逻辑类
|
|
14
14
|
class SkylineAnalysisViewModel {
|
|
15
|
-
/**
|
|
16
|
-
* 天际线分析逻辑类
|
|
17
|
-
* @param {Object} _skylineAnalysis 天际线分析三维对象
|
|
18
|
-
* @param {Object} _skylineAnalysisChart 二维天际线折线图表(外部生成)
|
|
19
|
-
* @param {String} _skylineAnalysisChartTitle 二维天际线折线图表标题(中英文适配)
|
|
20
|
-
* @param {Object} _options 天际线分析存储参数对象
|
|
21
|
-
* @param {Object} _showLimitHeightBody 限高体是否显示
|
|
15
|
+
/**
|
|
16
|
+
* 天际线分析逻辑类
|
|
17
|
+
* @param {Object} _skylineAnalysis 天际线分析三维对象
|
|
18
|
+
* @param {Object} _skylineAnalysisChart 二维天际线折线图表(外部生成)
|
|
19
|
+
* @param {String} _skylineAnalysisChartTitle 二维天际线折线图表标题(中英文适配)
|
|
20
|
+
* @param {Object} _options 天际线分析存储参数对象
|
|
21
|
+
* @param {Object} _showLimitHeightBody 限高体是否显示
|
|
22
22
|
*/
|
|
23
23
|
|
|
24
|
-
/**
|
|
25
|
-
* 天际线分析逻辑类构造函数
|
|
26
|
-
* @param {*} viewer 三维对象
|
|
27
|
-
* @param {*} option 天际线分析参数对象
|
|
24
|
+
/**
|
|
25
|
+
* 天际线分析逻辑类构造函数
|
|
26
|
+
* @param {*} viewer 三维对象
|
|
27
|
+
* @param {*} option 天际线分析参数对象
|
|
28
28
|
*/
|
|
29
29
|
constructor(viewer, option) {
|
|
30
30
|
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_skylineAnalysis", null);
|
|
@@ -62,8 +62,8 @@ class SkylineAnalysisViewModel {
|
|
|
62
62
|
|
|
63
63
|
this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
|
|
64
64
|
}
|
|
65
|
-
/**
|
|
66
|
-
* 提取天际线
|
|
65
|
+
/**
|
|
66
|
+
* 提取天际线
|
|
67
67
|
*/
|
|
68
68
|
|
|
69
69
|
|
|
@@ -92,8 +92,8 @@ class SkylineAnalysisViewModel {
|
|
|
92
92
|
throw "请添加模型后提取!";
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
/**
|
|
96
|
-
* 绘制限高体
|
|
95
|
+
/**
|
|
96
|
+
* 绘制限高体
|
|
97
97
|
*/
|
|
98
98
|
|
|
99
99
|
|
|
@@ -123,8 +123,8 @@ class SkylineAnalysisViewModel {
|
|
|
123
123
|
throw "请添加模型后绘制!";
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
/**
|
|
127
|
-
* 展示二维天际线
|
|
126
|
+
/**
|
|
127
|
+
* 展示二维天际线
|
|
128
128
|
*/
|
|
129
129
|
|
|
130
130
|
|
|
@@ -167,8 +167,8 @@ class SkylineAnalysisViewModel {
|
|
|
167
167
|
};
|
|
168
168
|
this._skylineAnalysisChart && this._skylineAnalysisChart.setOption(option);
|
|
169
169
|
}
|
|
170
|
-
/**
|
|
171
|
-
* 清除限高体
|
|
170
|
+
/**
|
|
171
|
+
* 清除限高体
|
|
172
172
|
*/
|
|
173
173
|
|
|
174
174
|
|
|
@@ -185,9 +185,9 @@ class SkylineAnalysisViewModel {
|
|
|
185
185
|
this._skylineAnalysis.removeCzmlJsonDataSource();
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
/**
|
|
189
|
-
* 设置天际线颜色
|
|
190
|
-
* @param {String} lineColor 天际线颜色
|
|
188
|
+
/**
|
|
189
|
+
* 设置天际线颜色
|
|
190
|
+
* @param {String} lineColor 天际线颜色
|
|
191
191
|
*/
|
|
192
192
|
|
|
193
193
|
|
|
@@ -196,10 +196,10 @@ class SkylineAnalysisViewModel {
|
|
|
196
196
|
this._options.lineColor = window.Cesium.Color.fromCssColorString(lineColor);
|
|
197
197
|
if (this._skylineAnalysis) this._skylineAnalysis.lineColor = this._options.lineColor;
|
|
198
198
|
}
|
|
199
|
-
/**
|
|
200
|
-
* 设置限高体颜色
|
|
201
|
-
* @param {String} faceColor 限高体轮廓颜色
|
|
202
|
-
* @param {String} alpha 限高体轮廓颜色透明度
|
|
199
|
+
/**
|
|
200
|
+
* 设置限高体颜色
|
|
201
|
+
* @param {String} faceColor 限高体轮廓颜色
|
|
202
|
+
* @param {String} alpha 限高体轮廓颜色透明度
|
|
203
203
|
*/
|
|
204
204
|
|
|
205
205
|
|
|
@@ -208,9 +208,9 @@ class SkylineAnalysisViewModel {
|
|
|
208
208
|
this._options.faceColor = window.Cesium.Color.fromCssColorString(faceColor).withAlpha(alpha || 1);
|
|
209
209
|
if (this._skylineAnalysis && this._showLimitHeightBody) this._skylineAnalysis.faceColor = this._options.faceColor;
|
|
210
210
|
}
|
|
211
|
-
/**
|
|
212
|
-
* 设置天际线半径
|
|
213
|
-
* @param {String} radius 天际线半径
|
|
211
|
+
/**
|
|
212
|
+
* 设置天际线半径
|
|
213
|
+
* @param {String} radius 天际线半径
|
|
214
214
|
*/
|
|
215
215
|
|
|
216
216
|
|
|
@@ -219,10 +219,10 @@ class SkylineAnalysisViewModel {
|
|
|
219
219
|
this._options.radius = radius;
|
|
220
220
|
if (this._skylineAnalysis) this._skylineAnalysis.radius = radius;
|
|
221
221
|
}
|
|
222
|
-
/**
|
|
223
|
-
* 设置限高体透明度
|
|
224
|
-
* @param {String} faceColor 限高体轮廓颜色
|
|
225
|
-
* @param {String} alpha 限高体轮廓颜色透明度
|
|
222
|
+
/**
|
|
223
|
+
* 设置限高体透明度
|
|
224
|
+
* @param {String} faceColor 限高体轮廓颜色
|
|
225
|
+
* @param {String} alpha 限高体轮廓颜色透明度
|
|
226
226
|
*/
|
|
227
227
|
|
|
228
228
|
|
|
@@ -231,10 +231,10 @@ class SkylineAnalysisViewModel {
|
|
|
231
231
|
this._options.faceColor = window.Cesium.Color.fromCssColorString(faceColor).withAlpha(alpha || 1);
|
|
232
232
|
if (this._skylineAnalysis && this._showLimitHeightBody) this._skylineAnalysis.faceColor = this._options.faceColor;
|
|
233
233
|
}
|
|
234
|
-
/**
|
|
235
|
-
* 设置限高体轮廓颜色
|
|
236
|
-
* @param {String} faceOutlineColor 限高体轮廓颜色
|
|
237
|
-
* @param {String} alpha 限高体轮廓颜色透明度
|
|
234
|
+
/**
|
|
235
|
+
* 设置限高体轮廓颜色
|
|
236
|
+
* @param {String} faceOutlineColor 限高体轮廓颜色
|
|
237
|
+
* @param {String} alpha 限高体轮廓颜色透明度
|
|
238
238
|
*/
|
|
239
239
|
|
|
240
240
|
|
|
@@ -246,8 +246,8 @@ class SkylineAnalysisViewModel {
|
|
|
246
246
|
this._skylineAnalysis.faceOutlineColor = this._options.faceOutlineColor;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
/*
|
|
250
|
-
* 清除
|
|
249
|
+
/*
|
|
250
|
+
* 清除
|
|
251
251
|
*/
|
|
252
252
|
|
|
253
253
|
|
|
@@ -260,8 +260,8 @@ class SkylineAnalysisViewModel {
|
|
|
260
260
|
this._skylineAnalysis = new window.Cesium.Kq3dSkyline(this._options);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
/**
|
|
264
|
-
* 注销
|
|
263
|
+
/**
|
|
264
|
+
* 注销
|
|
265
265
|
*/
|
|
266
266
|
|
|
267
267
|
|