Open daedalus1984 opened 6 years ago
year, you can write: var before = null; requestAnimationFrame(function animate(now) { var c = map.getPosition(); var elapsed = before? now - before: 0; before = now; map.setCenter([c[0], c[1] + 0.1*(elapsed/30)]); requestAnimationFrame(animate); });
How can I achieve to make it rotate automatically?