I add a CABasicAnimation
to the AnnotationView
layer to simulate a car moving on the mapview.
This works fine until I try to zoom in or out the mapview when the animation is in progress.
I found the animating annotation view disappears when zooming the mapview!!
I guess this may be caused by that the layer associated the animation object has been removed when zooming mapview.
I try to solve this by stopping the animation when zooming. but the result is not good. The car seems jump to target point.
Anyone has ideas about this?
Anyone knows how to make the animation still running when zooming the mapview?