This commit is contained in:
parent
3b8de544b4
commit
fcb356d2eb
|
|
@ -609,6 +609,7 @@ body {
|
||||||
.el-input__suffix-inner {
|
.el-input__suffix-inner {
|
||||||
font-size: 22px;
|
font-size: 22px;
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,6 @@
|
||||||
v-model="state.password"
|
v-model="state.password"
|
||||||
show-password
|
show-password
|
||||||
>
|
>
|
||||||
<i slot="suffix" class="el-input__icon"></i>
|
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -101,67 +101,67 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mapNorth() {
|
mapNorth() {
|
||||||
// let graphicLayer = new mars3d.layer.GraphicLayer();
|
let graphicLayer = new mars3d.layer.GraphicLayer();
|
||||||
// window.marsMap.addLayer(graphicLayer);
|
window.marsMap.addLayer(graphicLayer);
|
||||||
// const fixedRoute = new mars3d.graphic.FixedRoute({
|
const fixedRoute = new mars3d.graphic.FixedRoute({
|
||||||
// name: "贴地表表面漫游",
|
name: "贴地表表面漫游",
|
||||||
// position: {
|
position: {
|
||||||
// type: "time", // 时序动态坐标
|
type: "time", // 时序动态坐标
|
||||||
// speed: 160,
|
speed: 160,
|
||||||
// list: [
|
list: [
|
||||||
// [116.043233, 30.845286, 392.48],
|
[116.043233, 30.845286, 392.48],
|
||||||
// [116.046833, 30.846863, 411.33],
|
[116.046833, 30.846863, 411.33],
|
||||||
// [116.052137, 30.848801, 439.45],
|
[116.052137, 30.848801, 439.45],
|
||||||
// [116.060838, 30.850918, 442.91],
|
[116.060838, 30.850918, 442.91],
|
||||||
// [116.069013, 30.852035, 435.14],
|
[116.069013, 30.852035, 435.14],
|
||||||
// [116.18739, 30.854441, 244.53],
|
[116.18739, 30.854441, 244.53],
|
||||||
// [116.205214, 30.859332, 300.96]
|
[116.205214, 30.859332, 300.96]
|
||||||
// ]
|
]
|
||||||
// },
|
},
|
||||||
// clockLoop: false, // 是否循环播放
|
clockLoop: false, // 是否循环播放
|
||||||
// camera: {
|
camera: {
|
||||||
// type: "gs",
|
type: "gs",
|
||||||
// pitch: -30,
|
pitch: -30,
|
||||||
// radius: 500
|
radius: 500
|
||||||
// },
|
},
|
||||||
// // model: {
|
|
||||||
// // show: true,
|
|
||||||
// // url: "https://data.mars3d.cn/gltf/mars/qiche.gltf",
|
|
||||||
// // scale: 0.2,
|
|
||||||
// // minimumPixelSize: 50
|
|
||||||
// // },
|
|
||||||
// model: {
|
// model: {
|
||||||
// scale: 1,
|
// show: true,
|
||||||
// url: "/uav/scene.gltf",
|
// url: "https://data.mars3d.cn/gltf/mars/qiche.gltf",
|
||||||
// heading: 90,
|
// scale: 0.2,
|
||||||
// mergeOrientation: true, // 用于设置模型不是标准的方向时的纠偏处理,在orientation基础的方式值上加上设置是heading值
|
|
||||||
// minimumPixelSize: 50
|
// minimumPixelSize: 50
|
||||||
// },
|
// },
|
||||||
// polyline: {
|
model: {
|
||||||
// color: "rgba(255,0,0,0.5)",
|
scale: 1,
|
||||||
// width: 2,
|
url: "/uav/uav.gltf",
|
||||||
// showAll: true
|
heading: 90,
|
||||||
// },
|
mergeOrientation: true, // 用于设置模型不是标准的方向时的纠偏处理,在orientation基础的方式值上加上设置是heading值
|
||||||
// path: {
|
minimumPixelSize: 50
|
||||||
// color: "rgba(255,255,0,1.0)",
|
},
|
||||||
// width: 4,
|
polyline: {
|
||||||
// leadTime: 0
|
color: "rgba(255,0,0,0.5)",
|
||||||
// }
|
width: 2,
|
||||||
// });
|
showAll: true
|
||||||
// graphicLayer.addGraphic(fixedRoute);
|
},
|
||||||
// fixedRoute.start();
|
path: {
|
||||||
// 1. 获取当前视角
|
color: "rgba(255,255,0,1.0)",
|
||||||
const currentView = window.marsMap.getCameraView();
|
width: 4,
|
||||||
|
leadTime: 0
|
||||||
// 2. 修改视角的heading为0(正北),保留其他参数
|
}
|
||||||
window.marsMap.setCameraView({
|
|
||||||
lat: currentView.lat,
|
|
||||||
lng: currentView.lng,
|
|
||||||
alt: currentView.alt,
|
|
||||||
heading: 0, // 指北
|
|
||||||
pitch: currentView.pitch,
|
|
||||||
roll: currentView.roll
|
|
||||||
});
|
});
|
||||||
|
graphicLayer.addGraphic(fixedRoute);
|
||||||
|
fixedRoute.start();
|
||||||
|
// 1. 获取当前视角
|
||||||
|
// const currentView = window.marsMap.getCameraView();
|
||||||
|
|
||||||
|
// // 2. 修改视角的heading为0(正北),保留其他参数
|
||||||
|
// window.marsMap.setCameraView({
|
||||||
|
// lat: currentView.lat,
|
||||||
|
// lng: currentView.lng,
|
||||||
|
// alt: currentView.alt,
|
||||||
|
// heading: 0, // 指北
|
||||||
|
// pitch: currentView.pitch,
|
||||||
|
// roll: currentView.roll
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue