From d46ebfb71da0148dcc2724024cf7b053d784f299 Mon Sep 17 00:00:00 2001
From: 少年 <1392120328@qq.com>
Date: 星期二, 05 三月 2024 18:35:10 +0800
Subject: [PATCH] youhua

---
 src/components/leftMenu/sousuo2.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/components/leftMenu/sousuo2.vue b/src/components/leftMenu/sousuo2.vue
index 591fa3f..e592b06 100644
--- a/src/components/leftMenu/sousuo2.vue
+++ b/src/components/leftMenu/sousuo2.vue
@@ -14,11 +14,11 @@
           top: -1px;
           right: -3px;
         ">
-        <img src="@/assets/img/navigation/addf.png" style="width: 20px" @click.stop="AddFavorite" />
+        <!-- <img src="@/assets/img/navigation/addf.png" style="width: 20px" @click.stop="AddFavorite" /> -->
       </span>
-      <span v-show="syssval == '璇疯緭鍏ュ叧閿瘝鎼滅储鍦板浘'" style="float: right; height: 100%; width: 10%">
+      <!-- <span v-show="syssval == '璇疯緭鍏ュ叧閿瘝鎼滅储鍦板浘'" style="float: right; height: 100%; width: 10%">
         <img src="@/assets/img/navigation/addf.png" style="width: 20px" @click.stop="showAddFavorite" />
-      </span>
+      </span> -->
     </div>
     <!-- 鎼滅储鐣岄潰 -->
     <div class="ssjm" v-show="ssjm">
@@ -72,13 +72,13 @@
   position: absolute;
   /* text-align: center; */
   left: 2.5%;
-  bottom: 0.2rem;
+  top: 0.15rem;
   width: 95%;
   border: 1px solid white;
   height: 0.4rem;
   line-height: 0.4rem;
   background: #fff;
-  border-radius: 0.2rem;
+  border-radius: 0.15rem;
   color: black;
   font-size: 0.14rem;
 }
@@ -195,6 +195,12 @@
       window.flyLine = undefined;
       this.poi_text = "";
       this.ssjgxs = false;
+      if (window.pointArr && window.pointArr.length > 0) {
+        window.pointArr.forEach(item => {
+          window.mapapi.removeLayer(item)
+        })
+        window.pointArr = []
+      }
     },
     changeInput() {
       if (this.poi_text === "") {
@@ -219,7 +225,7 @@
       this.ssjm = false;
       if (window.pointArr && window.pointArr.length > 0) {
         window.pointArr.forEach(item => {
-          window.map.removeLayer(item)
+          window.mapapi.removeLayer(item)
         })
         window.pointArr = []
       }
@@ -501,7 +507,7 @@
       flyToPoint([item.lng, item.lat])
       //鍒涘缓鐐逛綅
       let layer = createPointMarker([item.lng, item.lat], item);
-      window.map.addLayer(layer)
+      window.mapapi.addLayer(layer)
 
 
 
@@ -550,7 +556,7 @@
       //   axios
       //     .get(
       //       window.gisBaseUrl +
-      //       "yzxncsApi/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
+      //       "BEApi/cs/geowinmap_xncs/ds?r=0.9158559377752831&serviceproviderid=map.vectorserviceprovider&serviceid=queryfeature&featcls=225%25E8%258C%2583%25E5%259B%25B4%25E5%2588%2586%25E5%258C%25BA%25E8%25A7%2584%25E5%2588%2592.geojson&lng=" +
       //       degrees[0] +
       //       "&lat=" +
       //       degrees[1] +

--
Gitblit v1.9.3