I add CABasicAnimation to the AnnotationView layer to simulate a car moving on a map.
This works fine until I try to zoom in or out while animating.
I found that the animated annotator disappears when the map is scaled.
I suppose this could be because the layer associated with the animation object was removed when the mapview was scaled.
I am trying to solve this problem by stopping the animation while scaling. but the result is not very good. The car seems to be jumping to the target point.
Anyone have any ideas on this?
Does anyone know how to make the animation still run when the map is scaled?
ios animation mkmapview cabasicanimation mkannotationview
Hubert
source share