From e40ee62d3e9b71ffe3432d32a53a00c4097b5708 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Fri, 31 Dec 2021 09:03:28 +0800
Subject: [PATCH] +3d 2.5d
---
src/components/mobileCortrolButtom/index.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/components/mobileCortrolButtom/index.vue b/src/components/mobileCortrolButtom/index.vue
index b851a50..eed285d 100644
--- a/src/components/mobileCortrolButtom/index.vue
+++ b/src/components/mobileCortrolButtom/index.vue
@@ -36,20 +36,20 @@
tabTable: [],
ccData: [
{
- lnt: 115.87071885,
+ lnt: 115.86471885,
lat: 28.74382592,
},
{
- lnt: 121.50266534548483,
- lat: 31.24357506330159,
+ lnt: 115.86711312,
+ lat: 28.74315701,
},
{
- lnt: 121.56405019,
- lat: 31.20845211,
+ lnt: 115.86872136,
+ lat: 28.74009846,
},
{
- lnt: 121.55500463461836,
- lat: 31.257934074839717,
+ lnt: 115.87413129,
+ lat: 28.743337,
},
],
};
@@ -69,11 +69,15 @@
},
handleCommand(command) {
let that = this;
+ let position = [+command.lnt + 0.01197, +command.lat - 0.0021];
console.log(command, "定位");
// 定位
+ // this.$store.commit("MSETCC_SETCC", {
+ // lntLat: position,
+ // });
this.$store.dispatch("mapFlyTo", {
//飞入
- lntLat: [command.lnt, command.lat, 2530],
+ lntLat: [...position, 500],
heading: 0,
pitch: -45,
roll: 0,
--
Gitblit v1.9.3