CarMarkerAnimation

Additional

Language
Java
Version
1.1 (Dec 12, 2018)
Created
Dec 11, 2018
Updated
Jan 10, 2019
Owner
Pritam Dasgupta (tintinscorpion)
Contributor
Pritam Dasgupta (tintinscorpion)
1
Activity
Badge
Generate
Download
Source code
APK file

Commercial

CarMarker-Animation

Smooth marker animation on google map along with proper turns and camera bearing.




Optional:

duration refers to the animation time. By default it will take 3000 even if 0 is passed. callback is the interface of Googlemap.CancellabeCallback(). It requires when the user wants to animate the next animation after the first has finished else just pass null. For eg-

newGoogleMap.CancelableCallback() { @OverridepublicvoidonFinish() { } @OverridepublicvoidonCancel() { } });

Note: If you are animating car onLocationChanged() then, Ideal location request for car animation should be as below. Greater than the interval mentioned will give more good results but less than this may hamper the animation.

 mLocationRequest =newLocationRequest();
 mLocationRequest.setInterval(1000*5);
 mLocationRequest.setFastestInterval(1000*3);
 mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);