Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smooth rotation animation of vehicle marker #1

Closed
dasirahul7 opened this issue Dec 11, 2020 · 3 comments
Closed

Smooth rotation animation of vehicle marker #1

dasirahul7 opened this issue Dec 11, 2020 · 3 comments

Comments

@dasirahul7
Copy link

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!

@deeprathod
Copy link

@dasirahul7 Did you find any solution to this? Same here. facing the same issue. The car is flickering too much while navigating.

@ishdemon
Copy link

ishdemon commented Sep 26, 2021

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

@dasirahul7
Copy link
Author

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

Yes I got it, Thank you so much for the reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants