From e70c3ee7d3a5d28f742caea299b86370a3cfd481 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 23 Dec 2021 14:00:55 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/components/mobileCortrolButtom/index.vue | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/components/mobileCortrolButtom/index.vue b/src/components/mobileCortrolButtom/index.vue
index 251dacc..f325322 100644
--- a/src/components/mobileCortrolButtom/index.vue
+++ b/src/components/mobileCortrolButtom/index.vue
@@ -69,14 +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: [command.lnt, command.lat],
- });
+ // this.$store.commit("MSETCC_SETCC", {
+ // lntLat: position,
+ // });
this.$store.dispatch("mapFlyTo", {
//飞入
- lntLat: [command.lnt, command.lat, 500],
+ lntLat: [...position, 500],
heading: 0,
pitch: -45,
roll: 0,
--
Gitblit v1.9.3