From 316a5f6da4a38d0f2f0f83e662252f0694771222 Mon Sep 17 00:00:00 2001 From: 徐旺旺 <11530253@qq.com> Date: 星期四, 13 五月 2021 16:12:10 +0800 Subject: [PATCH] 附属设施查询 --- src/components/LayerController/service/LayerFactory.js | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/LayerController/service/LayerFactory.js b/src/components/LayerController/service/LayerFactory.js index 0a661d6..7bba481 100644 --- a/src/components/LayerController/service/LayerFactory.js +++ b/src/components/LayerController/service/LayerFactory.js @@ -193,8 +193,10 @@ point = lineString[parseInt(lineString.length / 2)][0] break } - console.log(point) - window.map.flyTo(point.reverse(), 17) + if (point.length > 2) { + point.splice(2, 1) + } + window.map.setView(point.reverse(), 17) code && this.openPopup(code, feature.id) } -- Gitblit v1.8.0