From e46c7f58112c13ed09b325bf164f0d2a440f1012 Mon Sep 17 00:00:00 2001
From: 徐旺旺 <11530253@qq.com>
Date: 星期四, 13 五月 2021 16:13:17 +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