-
Notifications
You must be signed in to change notification settings - Fork 54
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
Responsively change initial zoom #59
Comments
It looks like the size of the globe is linked to the height of the globe, so to workaround my query above I'm setting the height to "130vh" on larger desktops, using CSS to bump the globe up by half (15vh) and then hiding the excess. See partial code examples below. React
CSS
|
I had a similar problem where I wanted controls to zoom in and zoom out. I hope this helps anyone
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to responsively change the zoom of the globe?
I initially tried responsively changing the value for
initialCameraDistanceRadiusScale
but that made the whole globe disappear.I also tried changing the value for
cameraDistanceRadiusScale
but that seemed to have no effect (even though it works with most other options).Maybe a simpler question is how do you programmatically change the zoom of the map?
Hope you can help!
The text was updated successfully, but these errors were encountered: