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

zoom into full globe when changing projection back to 3d #195

Closed
nickywright opened this issue Oct 31, 2022 · 3 comments
Closed

zoom into full globe when changing projection back to 3d #195

nickywright opened this issue Oct 31, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request low Low priority

Comments

@nickywright
Copy link
Contributor

going from Columbus View --> 3d view results in a very zoomed out globe (see image). Can we have it to be a full-globe but zoomed in (same view as what will be for the 'home' button).

@nickywright nickywright added the enhancement New feature or request label Nov 2, 2022
@matthew-merkas matthew-merkas self-assigned this Nov 4, 2022
@michaelchin
Copy link
Contributor

I have tried to fix this problem. See the code below. Maybe there is a better approach ...

setTimeout(() => {
scene.camera.flyTo({
destination: Cartesian3.fromDegrees(
HOME_LONGITUDE,
HOME_LATITUDE,
DEFAULT_CAMERA_HEIGHT
),
})
}, 2500) //wait for the morphTo3D to finish(by default 2 seconds morphTo3D to finish)

@michaelchin michaelchin added the low Low priority label Mar 26, 2023
@michaelchin
Copy link
Contributor

similar to #194. need to adjust camera height according to the screen size

@michaelchin
Copy link
Contributor

fixed in e6bef11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low Low priority
Projects
None yet
Development

No branches or pull requests

3 participants