You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a continent select menu that controls which continent is in focus of the globe. The selected continent is used to calculated the coordinates for the focus, as well as the distanceRadiusScale for the focusOption. I'm seeing the focus move to the new coordinate correctly, however it doesn't seem like the changed distanceRadiusScale is getting properly picked up, as the scale does not seem to change.
Hi @aboe026, I believe this is a bug, and I can look into it. useCamera hook might not be listening to changes in focusOptions. Will look into it along with other bugs in next 1-2 weeks, but if you want to take a jab at fixing the bug, that's appreciated too :)
Quick question, is the component easy/intuitive to use? I have mixed thoughts about using *Options for props API. But I didn't want to spread all the configurations out as flat props, which would make the component overwhelming to understand.
I love the component! Very straight-forward. I have no problem with the *Options for props API, was intuitive enough for me at least. Thanks for making this project, its awesome!
Hi @aboe026, this bug is now fixed in 3.1.1. I tested it locally while fixing the bug, but please feel free to give it a spin. You can fork this codesandbox example to test.
I have a continent select menu that controls which continent is in focus of the globe. The selected continent is used to calculated the coordinates for the
focus
, as well as thedistanceRadiusScale
for thefocusOption
. I'm seeing the focus move to the new coordinate correctly, however it doesn't seem like the changeddistanceRadiusScale
is getting properly picked up, as the scale does not seem to change.Here is my file for context:
I can see in the console printouts that the
distanceRadiusScale
is correctly changing. It just doesn't seem to affect the actual zoom of the globe.The text was updated successfully, but these errors were encountered: