优化地图
This commit is contained in:
@@ -58,19 +58,15 @@
|
||||
|
||||
this.businessName = item.businessName
|
||||
this.isShow = false
|
||||
this.map.easeTo({
|
||||
center: new this.lib.LatLng(item.lat, item.lng),
|
||||
zoom: 23
|
||||
}, {
|
||||
duration: 800
|
||||
})
|
||||
this.map.setCenter(new this.lib.LatLng(item.lat, item.lng))
|
||||
this.map.setZoom(22)
|
||||
|
||||
setTimeout(() => {
|
||||
document.querySelectorAll('.marker').forEach(e => {
|
||||
e.classList.remove('marker-active')
|
||||
})
|
||||
document.querySelector(`.marker-${item.id}`).classList.add('marker-active')
|
||||
}, 900)
|
||||
}, 400)
|
||||
},
|
||||
|
||||
getList (isSearch) {
|
||||
|
||||
Reference in New Issue
Block a user