How do I get the globe to stop rotating on mouse-click?

70 views
Skip to first unread message

Phillipe Han

unread,
Sep 9, 2014, 6:20:59 AM9/9/14
to webgl...@googlegroups.com
Currently, the spinning example reads:

       
setInterval(function() {
         
var c = earth.getPosition();
          earth
.setCenter([c[0], c[1] + 0.1]);
       
}, 50);

What do I need to add to get it to stop spinning on-click? Thank you!
Reply all
Reply to author
Forward
0 new messages