Just what the title says. I am searching for a solution but I have not found anything that has guided me to the correct documentation or articles.
If you have any ideas or can point me to a possible solution I can work with, it would be greatly appreciated.
Thanks
You can do this yourself like this:
setInterval
to set up a function to be run periodically.panBy
on the Google map object to "rotate" it a bit.That should give you a simple animation that does what you want. You'd want to adjust the time interval that you give to
setInterval
to get something that feels smooth of course. You should have something like this:Choosing appropriate
x
andn
values is up to you.The accepted answer is ok, but a little outdated. Instead of
window.setInterval
you shoud usewindow.requestAnimationFrame
. This will give you a smoother animation.A simple example (not from me) can be found here, but the gist of it looks something like this: