How to do Rotate marker based on driving direction in ionic?

Rotate marker based on driving direction ? how can i implement any suggestions?

have you try this