fix: 修复未同步marker的id导致的定位时无法执行动画的问题

This commit is contained in:
Xu Zhimeng 2023-06-26 18:26:38 +08:00
parent 622e64e17d
commit 3cfc33d2c0

View File

@ -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')