|
@@ -73,6 +73,7 @@
|
|
|
:currentHeight="currentHeight"
|
|
:currentHeight="currentHeight"
|
|
|
@showDetail="menuComTSty"
|
|
@showDetail="menuComTSty"
|
|
|
@backStations="backStations"
|
|
@backStations="backStations"
|
|
|
|
|
+ @initView="resetWindViewport"
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
@@ -252,7 +253,7 @@ export default {
|
|
|
// url: "http://localhost:3007/tiles/map/{z}/{x}/{y}",
|
|
// url: "http://localhost:3007/tiles/map/{z}/{x}/{y}",
|
|
|
url: "/static/ditu/{z}/{x}/{y}.png",
|
|
url: "/static/ditu/{z}/{x}/{y}.png",
|
|
|
// minimumLevel: 11,
|
|
// minimumLevel: 11,
|
|
|
- maximumLevel: 18,
|
|
|
|
|
|
|
+ maximumLevel: 24,
|
|
|
credit: "影像地图",
|
|
credit: "影像地图",
|
|
|
});
|
|
});
|
|
|
imageryProvider.alpha = 0.55; // 透明度
|
|
imageryProvider.alpha = 0.55; // 透明度
|
|
@@ -599,17 +600,18 @@ export default {
|
|
|
uri: `/static/model/fjStatus/fj_${statueFJ}.glb`,
|
|
uri: `/static/model/fjStatus/fj_${statueFJ}.glb`,
|
|
|
scale: 0.5,
|
|
scale: 0.5,
|
|
|
// 模型贴地
|
|
// 模型贴地
|
|
|
- // heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
|
|
|
|
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
// heightReference: Cesium.HeightReference.NONE,
|
|
// heightReference: Cesium.HeightReference.NONE,
|
|
|
// silhouetteSize: this.dixingAdd ? 2 : 0,
|
|
// silhouetteSize: this.dixingAdd ? 2 : 0,
|
|
|
// silhouetteColor: Cesium.Color.fromCssColorString(statueColor),
|
|
// silhouetteColor: Cesium.Color.fromCssColorString(statueColor),
|
|
|
// runAnimations: wtStatue !== 7 ? false : true,
|
|
// runAnimations: wtStatue !== 7 ? false : true,
|
|
|
},
|
|
},
|
|
|
- // label: {
|
|
|
|
|
- // text: name,
|
|
|
|
|
- // font: "14px sans-serif",
|
|
|
|
|
- // fillColor: Cesium.Color.fromBytes(255, 255, 255),
|
|
|
|
|
- // },
|
|
|
|
|
|
|
+ label: {
|
|
|
|
|
+ text: name,
|
|
|
|
|
+ font: "14px sans-serif",
|
|
|
|
|
+ fillColor: Cesium.Color.fromBytes(255, 255, 255),
|
|
|
|
|
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
// 使用高级灯牌生成器
|
|
// 使用高级灯牌生成器
|
|
@@ -999,23 +1001,24 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 重置风场中所有风机视角
|
|
// 重置风场中所有风机视角
|
|
|
resetWindViewport() {
|
|
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 targetLon = 107.034945;
|
|
|
// const targetLat = 37.309099;
|
|
// const targetLat = 37.309099;
|
|
@@ -1030,7 +1033,7 @@ export default {
|
|
|
const targetHeight = 5000;
|
|
const targetHeight = 5000;
|
|
|
|
|
|
|
|
const draggableHeightTolerance = 5000; // 允许拖拽的高度范围:20,000 ~ 30,000
|
|
const draggableHeightTolerance = 5000; // 允许拖拽的高度范围:20,000 ~ 30,000
|
|
|
- const minHeight = 1000; // 最低高度
|
|
|
|
|
|
|
+ const minHeight = 500; // 最低高度
|
|
|
const maxHeight = 10000; // 最高高度
|
|
const maxHeight = 10000; // 最高高度
|
|
|
|
|
|
|
|
const allowedOffsetDegrees = 2; // 允许拖拽的最大偏移(经纬度)
|
|
const allowedOffsetDegrees = 2; // 允许拖拽的最大偏移(经纬度)
|