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 | 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