去掉config地图中心设置
This commit is contained in:
@@ -169,7 +169,7 @@ export default {
|
|||||||
getMarkerCluster(points, count = 0) {
|
getMarkerCluster(points, count = 0) {
|
||||||
let {lib: TMap, map} = this
|
let {lib: TMap, map} = this
|
||||||
if (map) {
|
if (map) {
|
||||||
map.setCenter(this.config.latlng)
|
// map.setCenter(this.config.latlng)
|
||||||
let MarkerCluster = new TMap.MarkerCluster({
|
let MarkerCluster = new TMap.MarkerCluster({
|
||||||
map, gridSize: 60,
|
map, gridSize: 60,
|
||||||
enableDefaultStyle: false, // 关闭默认样式
|
enableDefaultStyle: false, // 关闭默认样式
|
||||||
|
|||||||
@@ -232,7 +232,7 @@ export default {
|
|||||||
});
|
});
|
||||||
map.fitBounds(bounds, {padding: 100})
|
map.fitBounds(bounds, {padding: 100})
|
||||||
} else {
|
} else {
|
||||||
map.setCenter(this.config.latlng)
|
// map.setCenter(this.config.latlng)
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user