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

Update AnimatedGlobe example to use transform.zoomTo() #145

Closed
techniq opened this issue Apr 23, 2024 · 1 comment
Closed

Update AnimatedGlobe example to use transform.zoomTo() #145

techniq opened this issue Apr 23, 2024 · 1 comment

Comments

@techniq
Copy link
Owner

techniq commented Apr 23, 2024

To fix dragging and clicking to be in since, instead of setting $yaw/$pitch directly for the selectedFeature, it should call transform.zoomTo() (use <Transform bind:this={transform}>) to keep both in sync. This should fix the issue if you manually rotate the globe then click on a feature.

We might need to update Transform / zoomTo() to better support geo/projections

@techniq
Copy link
Owner Author

techniq commented May 30, 2024

This is now fixed after adding the integrated TransformContext

@techniq techniq closed this as completed May 30, 2024
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

1 participant