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

Scrollable projections #270

Open
simonbyrne opened this issue Sep 1, 2024 · 2 comments
Open

Scrollable projections #270

simonbyrne opened this issue Sep 1, 2024 · 2 comments

Comments

@simonbyrne
Copy link
Contributor

Firstly, I am really impressed by how much this package has improved! Kudos to all the hard work.

What would it take to make the projections themselves scrollable, i.e. scrolling will change the projection itself, rather than the panning/zooming on the projected image. I realize this is quite ambitious, but it would be really cool to e.g. scroll around an orthographic projection.

@SimonDanisch
Copy link
Member

Making the projection an observable should already be supported ;)
You'd just need to hook that up to the mouse events to change the projection appropriately.
If creating each projection is fast, I think this should also have reasonable performance.

@asinghvi17
Copy link
Member

asinghvi17 commented Sep 1, 2024

Yes this would be pretty straightforward - there's an animation in the examples folder which shows how you would "scroll" a projection. From there it's pretty much smooth sailing. Just keep changing the dest attribute of the GeoAxis as the user scrolls essentially.

I have wanted to do this for a while so might push up an example in the next few days!

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

3 participants