|
|
@@ -182,7 +182,6 @@ export default {
|
|
|
allWindEntitys: [],
|
|
|
urlTiles: "/static/tiles/{z}/{x}/{y}.jpg",
|
|
|
verticalExaggeration: 1.0,
|
|
|
- dixingAdd: false,
|
|
|
infoBoxes: [],
|
|
|
entityxy: {},
|
|
|
};
|
|
|
@@ -409,7 +408,7 @@ export default {
|
|
|
that.viewer.camera.flyTo({
|
|
|
destination: Cesium.Cartesian3.fromDegrees(
|
|
|
data.longitude,
|
|
|
- data.latitude-0.02,
|
|
|
+ data.latitude - 0.02,
|
|
|
1000
|
|
|
),
|
|
|
orientation: {
|
|
|
@@ -479,7 +478,7 @@ export default {
|
|
|
showWindFromStation(viewer) {
|
|
|
let stationName = this.$route.query.nameEn;
|
|
|
let fjLonLatJson = [];
|
|
|
- this.fjLonLatJsonArr = []
|
|
|
+ this.fjLonLatJsonArr = [];
|
|
|
if (stationName === "MYFDC") {
|
|
|
fjLonLatJson = fjMYLonLatJson;
|
|
|
} else if (stationName === "JNWHZ") {
|
|
|
@@ -489,7 +488,7 @@ export default {
|
|
|
} else if (stationName === "JNSMS") {
|
|
|
fjLonLatJson = fjSMSLonLatJson;
|
|
|
}
|
|
|
- this.fjLonLatJsonArr = fjLonLatJson
|
|
|
+ this.fjLonLatJsonArr = fjLonLatJson;
|
|
|
fjLonLatJson.data.forEach((e, index) => {
|
|
|
this.showStatuswind(viewer, e);
|
|
|
});
|
|
|
@@ -519,31 +518,31 @@ export default {
|
|
|
if (code === 1) {
|
|
|
//待机
|
|
|
// return "#05bb4c";
|
|
|
- return type === "en" ? "dj" : "待机";
|
|
|
+ return type === "color" ? "#05bb4c" : type === "en" ? "dj" : "待机";
|
|
|
} else if (code === 2) {
|
|
|
//故障
|
|
|
// return "#d83238";
|
|
|
- return type === "en" ? "gz" : "故障";
|
|
|
+ return type === "color" ? "#d83238" : type === "en" ? "gz" : "故障";
|
|
|
} else if (code === 3) {
|
|
|
//检修
|
|
|
// return "#ff8300";
|
|
|
- return type === "en" ? "jx" : "检修";
|
|
|
+ return type === "color" ? "#ff8300" : type === "en" ? "jx" : "检修";
|
|
|
} else if (code === 4) {
|
|
|
//限电
|
|
|
// return "#c732ca";
|
|
|
- return type === "en" ? "xd" : "限电";
|
|
|
+ return type === "color" ? "#c732ca" : type === "en" ? "xd" : "限电";
|
|
|
} else if (code === 5) {
|
|
|
//离线
|
|
|
// return "#6f7881";
|
|
|
- return type === "en" ? "lx" : "离线";
|
|
|
+ return type === "color" ? "#6f7881" : type === "en" ? "lx" : "离线";
|
|
|
} else if (code === 6) {
|
|
|
//受累
|
|
|
// return "#cbd1d7";
|
|
|
- return type === "en" ? "sl" : "受累";
|
|
|
+ return type === "color" ? "#cbd1d7" : type === "en" ? "sl" : "受累";
|
|
|
} else {
|
|
|
//并网
|
|
|
// return "#42a7f9";
|
|
|
- return type === "en" ? "bw" : "并网";
|
|
|
+ return type === "color" ? "#42a7f9" : type === "en" ? "bw" : "并网";
|
|
|
}
|
|
|
},
|
|
|
addTreeain(viewer, mountainMsg) {
|
|
|
@@ -602,7 +601,7 @@ export default {
|
|
|
hpRoll
|
|
|
);
|
|
|
|
|
|
- // const statueColor = this.getWtStatue(wtStatue);
|
|
|
+ const statueColor = this.getWtStatue(status, "color");
|
|
|
const statueFJ = this.getWtStatue(status, "en");
|
|
|
const statueZh = this.getWtStatue(status, "zh");
|
|
|
|
|
|
@@ -613,19 +612,15 @@ export default {
|
|
|
orientation, // 模型朝向
|
|
|
animation: false,
|
|
|
model: {
|
|
|
- // uri: this.dixingAdd
|
|
|
- // ? // ? "/static/model/fjSolo/model.glb"
|
|
|
- // // ? "/static/model/fjStatus/fj_anmation_bw.glb"
|
|
|
- // `/static/model/fjStatus/fj_${statueFJ}.glb`
|
|
|
- // : "/static/model/dixing/model.glb",
|
|
|
- // // : "/static/model/dixing/terrain.glb",
|
|
|
uri: `/static/model/fjStatus/fj_${statueFJ}.glb`,
|
|
|
scale: 0.5,
|
|
|
// 模型贴地
|
|
|
- heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
// heightReference: Cesium.HeightReference.NONE,
|
|
|
- // silhouetteSize: this.dixingAdd ? 2 : 0,
|
|
|
- // silhouetteColor: Cesium.Color.fromCssColorString(statueColor),
|
|
|
+ silhouetteSize: 1,
|
|
|
+ silhouetteColor: Cesium.Color.fromCssColorString(statueColor),
|
|
|
+ minimumPixelSize: 75,
|
|
|
+ // maximumScale:0.5
|
|
|
// runAnimations: wtStatue !== 7 ? false : true,
|
|
|
},
|
|
|
label: {
|
|
|
@@ -660,7 +655,8 @@ export default {
|
|
|
const billboardImage = advancedGenerator.generateAdvancedBillboard({
|
|
|
title: name,
|
|
|
statusItems,
|
|
|
- borderGradient: ["#00e5ff", "#2979ff"],
|
|
|
+ borderGradient: ["#ccc", "#ccc"],
|
|
|
+ backgroundColor: "transparent",
|
|
|
padding: 6,
|
|
|
titleHeight: 22,
|
|
|
itemHeight: 17,
|
|
|
@@ -687,21 +683,19 @@ export default {
|
|
|
6000, // 5010米内
|
|
|
1.2, // 1倍大小
|
|
|
9000, // 10000米外
|
|
|
- 0.5 // 0.1倍大小
|
|
|
+ 1 // 0.1倍大小
|
|
|
),
|
|
|
|
|
|
// 透明度渐变
|
|
|
- translucencyByDistance: new Cesium.NearFarScalar(
|
|
|
- 6000, // 500米内
|
|
|
- 1.0, // 完全不透明
|
|
|
- 9000, // 3000米外
|
|
|
- 0.5 // 完全透明
|
|
|
- ),
|
|
|
+ // translucencyByDistance: new Cesium.NearFarScalar(
|
|
|
+ // 6000, // 500米内
|
|
|
+ // 1.0, // 完全不透明
|
|
|
+ // 9000, // 3000米外
|
|
|
+ // 0.5 // 完全透明
|
|
|
+ // ),
|
|
|
},
|
|
|
});
|
|
|
|
|
|
- this.dixingAdd = true;
|
|
|
-
|
|
|
const btn = document.getElementById("windBtn");
|
|
|
|
|
|
btn.addEventListener("click", function (event) {
|
|
|
@@ -1023,24 +1017,24 @@ export default {
|
|
|
},
|
|
|
// 重置风场中所有风机视角
|
|
|
resetWindViewport() {
|
|
|
- let fromLon = this.$route.query.longitude * 1;
|
|
|
- let fromLat = this.$route.query.latitude * 1;
|
|
|
- let fromheight = this.$route.query.height * 1;
|
|
|
- let fromname = this.$route.query.nameEn;
|
|
|
- // 设置镜头到指定的经纬度(度)、高度(米)
|
|
|
- this.viewer.camera.setView({
|
|
|
- destination: Cesium.Cartesian3.fromDegrees(
|
|
|
- fromLon, // 经度 (degrees)
|
|
|
- fromLat, // 纬度 (degrees)
|
|
|
- fromheight // 高度 (meters)
|
|
|
- ),
|
|
|
- orientation: {
|
|
|
- heading: Cesium.Math.toRadians(0.0), // 偏航角 (方向,0 指向北方)
|
|
|
- pitch: Cesium.Math.toRadians(-90.0), // 俯仰角 (-90 是垂直向下)
|
|
|
- roll: 0.0, // 翻滚角
|
|
|
- },
|
|
|
- });
|
|
|
-
|
|
|
+ let fromLon = this.$route.query.longitude * 1;
|
|
|
+ let fromLat = this.$route.query.latitude * 1;
|
|
|
+ let fromheight = this.$route.query.height * 1;
|
|
|
+ let fromname = this.$route.query.nameEn;
|
|
|
+ // 设置镜头到指定的经纬度(度)、高度(米)
|
|
|
+ this.viewer.camera.setView({
|
|
|
+ destination: Cesium.Cartesian3.fromDegrees(
|
|
|
+ fromLon, // 经度 (degrees)
|
|
|
+ fromLat, // 纬度 (degrees)
|
|
|
+ fromheight // 高度 (meters)
|
|
|
+ ),
|
|
|
+ orientation: {
|
|
|
+ heading: Cesium.Math.toRadians(0.0), // 偏航角 (方向,0 指向北方)
|
|
|
+ pitch: Cesium.Math.toRadians(-90.0), // 俯仰角 (-90 是垂直向下)
|
|
|
+ roll: 0.0, // 翻滚角
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
// 目标位置:经度、纬度、高度
|
|
|
// const targetLon = 107.034945;
|
|
|
// const targetLat = 37.309099;
|