Comments (2)
- You can set auto-rotation of the globe via:
myGlobe.controls().autoRotate = false; // or true
So you just need to associate that action to your click event.
Additionally, if you just want to cancel the auto-rotation when the user manually zooms/pans the globe, you can do this:
// assuming auto-rotation has been previously engaged
const controls = myGlobe.controls();
controls.addEventListener('start', () => controls.autoRotate = false);
- Performance wise, both versions should be equivalent. You can choose whichever framework is more convenient for your app.
from globe.gl.
Thank You!
from globe.gl.
Related Issues (20)
- Transparent globe with PNG texture HOT 2
- Is it possible to update the texture of a map on zoom? HOT 2
- is there anyway to disable mouse scroll zooming globe? HOT 1
- ForwardRef in dynamic import HOT 2
- Tr
- Ok
- import dynamically HOT 13
- Globe autorotates very quickly if the page is in background for a while HOT 3
- For tilelayer, can it achieve something like googlemap?
- Arc dash animation stops when labels are implemented HOT 5
- Why does it take so long to set the heatmapsData? HOT 2
- Random raycast error HOT 2
- make it easier to hit labels on mobile - e.g., transparent background for labels HOT 1
- Rotate the globe to the specified position? HOT 2
- Await for globe.labelDotRadius function HOT 2
- THREE.WebGLRenderer : useLegacyLights depreciated HOT 5
- Polygons are not filling the shape of the Antarctic continent HOT 1
- Trigger polygon hover event for one of the polygons programmatically HOT 2
- Atmosphere renders above globe every 2nd rotation
- How to make only the earth rotate without the background rotating? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from globe.gl.