[6.7.0][Opt]起终点绘制监听Och业务数据变化

This commit is contained in:
chenfufeng
2024-10-17 17:23:33 +08:00
parent ef06a4b30e
commit 98270da425
2 changed files with 96 additions and 41 deletions

View File

@@ -179,12 +179,14 @@ class MapContainerLayout @JvmOverloads constructor(
override fun onAnimationStart(animation: Animator) {
super.onAnimationStart(animation)
isPlayingAnim = true
overMapView.setIsPlaying(true)
overMapView.setMapFlag(isScaled)
}
override fun onAnimationCancel(animation: Animator) {
super.onAnimationCancel(animation)
isPlayingAnim = false
overMapView.setIsPlaying(false)
overMapView.swapSettings()
updateShadowBg(isScaled)
isScaled = !isScaled
@@ -199,6 +201,7 @@ class MapContainerLayout @JvmOverloads constructor(
override fun onAnimationEnd(animation: Animator) {
super.onAnimationEnd(animation)
isPlayingAnim = false
overMapView.setIsPlaying(false)
overMapView.swapSettings()
updateShadowBg(isScaled)
isScaled = !isScaled