From 4102cd81b143bd83ef3c2e1f85311075e2e2d7e2 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 24 Dec 2021 11:49:16 +0800
Subject: [PATCH] +接口更改
---
src/components/mobileCortrol/index.vue | 69 ++++++----------------------------
1 files changed, 13 insertions(+), 56 deletions(-)
diff --git a/src/components/mobileCortrol/index.vue b/src/components/mobileCortrol/index.vue
index b3a1cbc..82a5c80 100644
--- a/src/components/mobileCortrol/index.vue
+++ b/src/components/mobileCortrol/index.vue
@@ -23,59 +23,16 @@
},
methods: {
zoomIn(val) {
- let that = this;
- // console.log(val);
- // 121.49592752204283 31.23567802276832
- this.mviewer.zoomToPosition(
- new that.DC.Position(
- 121.49592752204283,
- 31.23567802276832 - 0.012,
- 2530,
- 0,
- -45
- )
- );
- // let camera = this.mviewer.camera;
- // // console.log(camera.moveStart());
- // // this.mviewer.getImageryLayerInfo().then((res) => {
- // // console.log(res);
- // // });
- // var ellipsoid = this.mviewer.scene.globe.ellipsoid;
- // var cartesian3 = DC.Namespace.Cesium.cartesian3(
- // camera.position.x,
- // camera.position.y,
- // camera.position.z
- // );
- // // // var cartographic = ellipsoid.cartesianToCartographic(cartesian3);
- // // // var lat = Cesium.Math.toDegrees(cartograhphic.latitude);
- // // // var lng = Cesium.Math.toDegrees(cartograhpinc.longitude);
- // // // var alt = cartographic.height;
- // console.log(cartesian3);
- // let position = camera.position;
- // for (let k in position) {
- // if (k == "x" || k == "y" || k == "z") {
- // console.log(k, " : ", position[k]);
- // }
- // }
- // if (val == "+") {
- // camera.position.x -= 614.8521;
- // camera.position.y -= 1002.9298;
- // camera.position.z += 682.3683;
- // } else if (val == "-") {
- // camera.position.x += 614.8521;
- // camera.position.y += 1002.9298;
- // camera.position.z -= 682.3683;
- // }
- // camera.flyTo({
- // destination: position,
- // orientation: {
- // heading: camera.heading,
- // pitch: camera.pitch,
- // roll: camera.roll,
- // },
- // duration: 0.5,
- // convert: false,
- // });
+ this.$store.dispatch("mapFlyTo", {
+ //飞入
+ lntLat: [115.87988885, 28.72502592, 2100],
+ // lntLat: [115.87186406, 28.74449337, 1200],
+ // lntLat: [121.50492752204283, 31.21567802276832, 2530],
+ heading: 0,
+ pitch: -45,
+ roll: 0,
+ noOpen: true,
+ });
},
},
};
@@ -85,12 +42,12 @@
.m-left-control {
position: fixed;
left: 20px;
- top: 87px;
- z-index: 201 !important;
+ top: 93px;
+ z-index: 20 !important;
.m-l-inbut {
width: 35px;
height: 35px;
- background-color: #c9302c;
+ background-color: rgb(33, 150, 243);
display: flex;
align-items: center;
justify-content: center;
--
Gitblit v1.9.3