From e6c22bf0e48f2b3c99ca5f731b56ace14a7e7ecf Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Tue, 2 Aug 2022 16:20:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/visual/command/cpts/map.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/views/modules/visual/command/cpts/map.vue b/src/views/modules/visual/command/cpts/map.vue index 8fdc9c92..e64bc68a 100644 --- a/src/views/modules/visual/command/cpts/map.vue +++ b/src/views/modules/visual/command/cpts/map.vue @@ -473,6 +473,13 @@ export default { polygonLayer.on("click", (e) => { console.log(e.feature.properties); this.$emit("clickAgency", e.feature.properties); + + if (e.feature.properties.level == "grid") { + this.handleClickDot( + { ...e.feature.properties, placeType: "grid" }, + e.feature.properties.center + ); + } }); polygonLayer.on("unmousemove", (e) => {