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 |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/components/panel/topicSearch/SewersSearch.vue b/src/components/panel/topicSearch/SewersSearch.vue
index 4eb6302..a3987bf 100644
--- a/src/components/panel/topicSearch/SewersSearch.vue
+++ b/src/components/panel/topicSearch/SewersSearch.vue
@@ -173,11 +173,18 @@
       wfsHelper.addLike(this.form.query.key, this.form.keyword)
       // const _this = this
       AjaxUtils.GetDataAsynByUrl(wfsHelper.getUrl(), {}, (res) => {
+        console.log(res)
         this.list = res.features
       })
     },
     handleLocation (val) {
       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