fix: 修复未同步marker的id导致的定位时无法执行动画的问题
This commit is contained in:
parent
622e64e17d
commit
3cfc33d2c0
|
@ -343,7 +343,7 @@ export default {
|
|||
setTimeout(() => {
|
||||
// 在panTo结束后执行动画
|
||||
const overlays = this.$refs.mapRef.map.getOverlays()
|
||||
const currOverlay = overlays.getArray().find(item => item.id == `${stationType}_${stationId}`)
|
||||
const currOverlay = overlays.getArray().find(item => item.id == `marker_${stationType}_${stationId}`)
|
||||
const innerEle = currOverlay.getElement()
|
||||
innerEle.classList.add('ani-bounding')
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user