From 5aa19a5070b49f164c0b9db8dcd239f41bd14b8a Mon Sep 17 00:00:00 2001 From: ChenZeping02609 <chenzeping02609@163.com> Date: 星期四, 13 五月 2021 16:53:48 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/LayerController/service/LayerFactory.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/LayerController/service/LayerFactory.js b/src/components/LayerController/service/LayerFactory.js index f781247..7bba481 100644 --- a/src/components/LayerController/service/LayerFactory.js +++ b/src/components/LayerController/service/LayerFactory.js @@ -36,7 +36,7 @@ var childLayer = config.childLayer var checked = config.checked /* if (config.groupName) { - const wmsGroupLayerService = new WmsGroupLayerService(config) + const wmsGroupLayerService = new WmsLayerGroupService(config) wmsGroupLayerService.init() continue } */ @@ -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