去掉config地图中心设置
This commit is contained in:
@@ -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, // 关闭默认样式
|
||||
|
||||
@@ -232,7 +232,7 @@ export default {
|
||||
});
|
||||
map.fitBounds(bounds, {padding: 100})
|
||||
} else {
|
||||
map.setCenter(this.config.latlng)
|
||||
// map.setCenter(this.config.latlng)
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user