@Balasaheb Molawade Thanks for the question. Can you please share link to the code or doc that you are trying. Also please add details about which maps (azure/ Bing maps) are you trying.
Here is the bing maps v8 samples and Here is some samples using azure maps.
There is an animation library for Azure Maps available here.