This commit is contained in:
liqi 2025-04-13 16:29:13 +08:00
parent 3b8de544b4
commit fcb356d2eb
3 changed files with 61 additions and 61 deletions

View File

@ -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;
} }
} }
} }

View File

@ -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

View File

@ -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: { // model: {
// // show: true, // show: true,
// // url: "https://data.mars3d.cn/gltf/mars/qiche.gltf", // url: "https://data.mars3d.cn/gltf/mars/qiche.gltf",
// // scale: 0.2, // scale: 0.2,
// // minimumPixelSize: 50 // minimumPixelSize: 50
// // }, // },
// model: { model: {
// scale: 1, scale: 1,
// url: "/uav/scene.gltf", url: "/uav/uav.gltf",
// heading: 90, heading: 90,
// mergeOrientation: true, // ,orientationheading mergeOrientation: true, // ,orientationheading
// minimumPixelSize: 50 minimumPixelSize: 50
// }, },
// polyline: { polyline: {
// color: "rgba(255,0,0,0.5)", color: "rgba(255,0,0,0.5)",
// width: 2, width: 2,
// showAll: true showAll: true
// }, },
// path: { path: {
// color: "rgba(255,255,0,1.0)", color: "rgba(255,255,0,1.0)",
// width: 4, width: 4,
// leadTime: 0 leadTime: 0
// } }
// });
// graphicLayer.addGraphic(fixedRoute);
// fixedRoute.start();
// 1.
const currentView = window.marsMap.getCameraView();
// 2. heading0
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. heading0
// window.marsMap.setCameraView({
// lat: currentView.lat,
// lng: currentView.lng,
// alt: currentView.alt,
// heading: 0, //
// pitch: currentView.pitch,
// roll: currentView.roll
// });
} }
} }
}; };