From 3cc9f0efa740810f88738788b062f348d8d9b48a Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期一, 08 三月 2021 09:34:13 +0800
Subject: [PATCH] 修改图例动画功能

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

diff --git a/src/components/panel/topicSearch/SewersSearch.vue b/src/components/panel/topicSearch/SewersSearch.vue
index ba83a11..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,6 +181,9 @@
       console.log(val)
       const bound = this.L.geoJSON([val], {}).getBounds()
       console.log(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