Open exactalogistics opened 1 year ago
@exactalogistics thanks for reaching out.
It looks like you're using the non React version of globe.gl here, but you're combining it with React code (useEffect
, useRef
, etc). You should stay with one form or the other, combining is not going to work.
But in any case, you're on to the right track, manipulating those attributes of the ThreeJS orbit controls is how you achieve those two features.
Hello and thank you for clearifying!
I can't seem to see any examples of how to use it without React. You don't by any chance happen to have a link or similar to follow instructions on?
@exactalogistics there are many examples on https://github.com/vasturiano/globe.gl. None of these examples use React.
Thanks for geting back to me. That's actually where I got the code from that I'm working on. Here: https://github.com/vasturiano/globe.gl/blob/master/example/hollow-globe/index.html
How could I manipulate the React strings I've added in the code to plain JS? Maybe should ask on Stack Overflow? :)
You mean to access the controls? There's an example that does that here: https://globe.gl/example/world-population/
Hello,
Trying to show your awesome globe in a Wordpress website. So far I've read some documentation and added the globe through the globeViz div, works like a charm. I've also added a sort of skin to the globe that will work for my project.
Now I'm trying to accomplish two things: disable zoom and initialize auto-rotate.
This is my code in total, nothing of the two things mentioned above happens. What am I missing?
Never worked with Globe.gl before but I really like it - I'm eager to learn more but at this stage a code fix is much appreciated.