From 10ecfd0b60442d209d1ab4b749580ffb638d1992 Mon Sep 17 00:00:00 2001
From: lixuliang <lixuliang_hd@126.com>
Date: 星期三, 08 五月 2024 14:44:04 +0800
Subject: [PATCH] 数字人更新

---
 src/components/right/right-bottom.vue |   34 +++++++++++++++++++++++++++++++---
 1 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/src/components/right/right-bottom.vue b/src/components/right/right-bottom.vue
index 41bd8c1..79dee25 100644
--- a/src/components/right/right-bottom.vue
+++ b/src/components/right/right-bottom.vue
@@ -5,6 +5,23 @@
         <el-tooltip
           class="item"
           effect="dark"
+          content="鏁板瓧浜�"
+          placement="left"
+          popper-class="item_tooltip"
+        >
+          <div
+            class="legend-bg"
+            @click="showDigitalPerson"
+            :class="{ active: isShowDP }"
+          >
+            <img class="legendImg" src="@/assets/img/new/鏁板瓧浜�.png" />
+          </div>
+        </el-tooltip>
+      </div>
+      <div class="mapTool">
+        <el-tooltip
+          class="item"
+          effect="dark"
           content="浜﹀簞鏂板尯鑼冨洿"
           placement="left"
           popper-class="item_tooltip"
@@ -207,10 +224,13 @@
   background-image: url("~@/assets/img/new/leftCircle.png");
   background-size: 100%;
   background-color: transparent;
-  width:  35px;
-  height:  35px;
+  width: 35px;
+  height: 35px;
   position: relative;
   cursor: pointer;
+}
+.active {
+  background-image: url("~@/assets/img/new/leftCircle-y.png");
 }
 .tcqp {
   background-color: rgba(0, 138, 252, 0.6);
@@ -312,6 +332,8 @@
     return {
       isWideAngle: false,
       wideAngle: 1.04,
+      isShowDP: false,
+      isShowTA: false,
       clickIndex: 0,
       camera: {
         position: [116.540659, 39.744945, 50000],
@@ -356,7 +378,13 @@
       let p = sgworld.Navigate.getCameraInfo();
       console.log(p);
     },
-
+    showDigitalPerson() {
+      this.isShowDP = !this.isShowDP;
+      this.$store.commit("showDigitalPerson", this.isShowDP);
+      if (!this.isShowDP) {
+        this.$store.commit("showTextArea", false);
+      }
+    },
     maskingOut() {
       if (!window.maskinglayer) {
         window.maskinglayer = sgworld.Creator.createImageryProvider(

--
Gitblit v1.9.3