Google maps - Animate arrow as you move

Hello, I am using google cordova maps for my project and I’ve been fighting with how to make the user’s position marke move smoothly as the user moves but I can’t find a way.

Does anyone have an idea on how to achieve this?

Thanks