techniq / layerchart

Composable Svelte chart components to build a wide range of visualizations
https://www.layerchart.com
MIT License
668 stars 12 forks source link

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

Closed techniq closed 6 months ago

techniq commented 7 months ago

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 commented 6 months ago

This is now fixed after adding the integrated TransformContext