地图
This commit is contained in:
@@ -32,8 +32,7 @@
|
||||
polygons: [],
|
||||
labels: [],
|
||||
businessName: '',
|
||||
ops: {
|
||||
},
|
||||
ops: {},
|
||||
markers: [],
|
||||
isShow: false,
|
||||
MarkerCluster: null,
|
||||
@@ -61,9 +60,9 @@
|
||||
this.isShow = false
|
||||
this.map.easeTo({
|
||||
center: new this.lib.LatLng(item.lat, item.lng),
|
||||
zoom: 17
|
||||
zoom: 20
|
||||
}, {
|
||||
duration: 2000
|
||||
duration: 800
|
||||
})
|
||||
},
|
||||
|
||||
@@ -155,8 +154,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
// this.config.latlng && map.setCenter(this.config.latlng)
|
||||
|
||||
this.MarkerCluster = new TMap.MarkerCluster({
|
||||
map, gridSize: 60,
|
||||
enableDefaultStyle: false, // 关闭默认样式
|
||||
@@ -166,7 +163,8 @@
|
||||
content: `${e.name}`,
|
||||
properties: {...e}
|
||||
})) || [],
|
||||
zoomOnClick: true
|
||||
zoomOnClick: true,
|
||||
maxZoom: 18
|
||||
})
|
||||
this.setCenter(points.map(e => {
|
||||
return new TMap.LatLng(e.lat, e.lng)
|
||||
|
||||
Reference in New Issue
Block a user