I'm using the google Maps marker animation logic given here.
My marker gets animated,but after each marker.setPosition(newPosition);
I need to call mapView.invalidate();
which refreshes the map resulting in very sluggish animation.
Is there any workaround?
The next solution is working correctly for me:
It is based on the same implementation done by some people for GoogleMaps v2, but adapted to osmdroid.
The source where I found the implementation for GoogleMaps v2 is here: How to animate marker in android map api V2?
I am using: osmdroid-android 5.5 and osmbonuspack 6.0