From 4bf99ece0279cedde3b1f6c888b64265534640c0 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期日, 07 三月 2021 12:47:02 +0800
Subject: [PATCH] 修改图层控制

---
 src/components/panel/topicSearch/SewersSearch.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/components/panel/topicSearch/SewersSearch.vue b/src/components/panel/topicSearch/SewersSearch.vue
index b761427..a3987bf 100644
--- a/src/components/panel/topicSearch/SewersSearch.vue
+++ b/src/components/panel/topicSearch/SewersSearch.vue
@@ -173,6 +173,7 @@
       wfsHelper.addLike(this.form.query.key, this.form.keyword)
       // const _this = this
       AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}, (res) => {
+        console.log(res)
         this.list = res.features
       })
     },
@@ -180,7 +181,10 @@
       console.log(val)
       const bound = this.L.geoJSON([val], {}).getBounds()
       console.log(bound)
-      this.$store.state.map.flyToBounds(bound)
+      var layer = window.serviceLayerHelper.getByLayerId(val.id)
+      console.log(layer)
+      layer && layer.openPopup()
+      this.$store.state.map.map.flyToBounds(bound)
     }
   }
 }

--
Gitblit v1.8.0