Smooth rotation animation of vehicle marker
dasirahul7 opened this issue · 3 comments
First of all Thank you so much for this excellent example.
Actually I'm facing glitch or vibrating marker on map while moving, It's not showing as your gif image.
Can you please share with me smooth rotation marker example on google map.
Thank you!
@dasirahul7 Did you find any solution to this? Same here. facing the same issue. The car is flickering too much while navigating.
We don't need getRotation method as MapUtility library already has it.
Just add implementation 'com.google.maps.android:maps-utils-ktx:3.2.0'
And Use this to avoid flickering :
val rotation = SphericalUtil.computeHeading(previousLatLng!!,currentLatLng)
I have created a PR :
#2
We don't need getRotation method as MapUtility library already has it.
Just addimplementation 'com.google.maps.android:maps-utils-ktx:3.2.0'
And Use this to avoid flickering :
val rotation = SphericalUtil.computeHeading(previousLatLng!!,currentLatLng)
I have created a PR :
#2
Yes I got it, Thank you so much for the reply!