Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating GlobeTexture on runtime #50

Open
birdm4n opened this issue Dec 14, 2020 · 2 comments
Open

Updating GlobeTexture on runtime #50

birdm4n opened this issue Dec 14, 2020 · 2 comments

Comments

@birdm4n
Copy link

birdm4n commented Dec 14, 2020

Hey! I was wondering if it's in any way possible to update the globe's texture on runtime.
I've been digging a bit through the source but wasn't able to do this.
Whenever I change the texture in the prop or through other means, the globe disappears completely.
Is there no way to do that? Or is that behavior a bug? Thanks for the help!

@tgmof
Copy link

tgmof commented Jan 1, 2021

At least with the black texture globe_dark he provides, it works, isn't it?

@birdm4n
Copy link
Author

birdm4n commented Jan 5, 2021

Not really. At least not the way I tried it. Made a small example based on on of the examples:
https://codesandbox.io/s/react-globe-change-globe-texture-h1vjx

The globe completely goes away when you click the button to change the texture. And I am just using those provided textures there. How did you do it to make it work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants