From 6a2f7c1adc5d7c3e2dd844e37582ad6f82a2eb1e Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Sat, 08 Jan 2022 09:07:30 +0800
Subject: [PATCH] +
---
src/components/mobileLeftNav/index.vue | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/components/mobileLeftNav/index.vue b/src/components/mobileLeftNav/index.vue
index 5f84749..b15dfc6 100644
--- a/src/components/mobileLeftNav/index.vue
+++ b/src/components/mobileLeftNav/index.vue
@@ -45,7 +45,7 @@
},
},
computed: {
- ...mapGetters(["iconHide"]),
+ ...mapGetters(["iconHide", "dimensionData"]),
},
data() {
return {
@@ -169,6 +169,7 @@
this.$store.commit("MSET_ICONHIDE", !isif);
},
leftNavClick(item) {
+ console.log(123132);
//判断并关闭已开启标签
let lnd = this.leftNavData;
for (let k in lnd) {
@@ -198,16 +199,21 @@
}
},
flyTo(item) {
+ let that = this;
let posi = this[item.layer].positions[0];
// console.log(posi);
+ let lntLat =
+ that.dimensionData.pitch == -45
+ ? [posi.lng + 0.00917, posi.lat - 0.0188, 500]
+ : [posi.lng + 0.01197, posi.lat - 0.00055, 500];
this.$store.dispatch("mapFlyTo", {
//飞入
- lntLat: [posi.lng + 0.00917, posi.lat - 0.0188, 2100],
+ lntLat: lntLat,
// lntLat: [posi.lng + 0.01187, posi.lat - 0.0308, 4000],
// lntLat: [121.50492752204283, 31.21567802276832, 2530],
- heading: 0,
- pitch: -45,
- roll: 0,
+ heading: that.dimensionData.heading,
+ pitch: that.dimensionData.pitch,
+ roll: that.dimensionData.roll,
noOpen: true,
});
},
@@ -395,7 +401,7 @@
};
</script>
-<style scoped lang='scss'>
+<style scoped lang="scss">
.m-left-nav {
position: fixed;
bottom: 30px;
--
Gitblit v1.9.3