去掉config地图中心设置

This commit is contained in:
liuye
2022-02-10 11:30:29 +08:00
parent ca81d6ba66
commit 91bffb8aac
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ export default {
getMarkerCluster(points, count = 0) {
let {lib: TMap, map} = this
if (map) {
map.setCenter(this.config.latlng)
// map.setCenter(this.config.latlng)
let MarkerCluster = new TMap.MarkerCluster({
map, gridSize: 60,
enableDefaultStyle: false, // 关闭默认样式

View File

@@ -232,7 +232,7 @@ export default {
});
map.fitBounds(bounds, {padding: 100})
} else {
map.setCenter(this.config.latlng)
// map.setCenter(this.config.latlng)
}
} else {