From b5a1f4cab551be9659e523af3d9df64b6466ced9 Mon Sep 17 00:00:00 2001
From: ChenZeping02609 <chenzeping02609@163.com>
Date: 星期四, 13 五月 2021 16:53:37 +0800
Subject: [PATCH] 分析地址更改
---
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