-
Notifications
You must be signed in to change notification settings - Fork 611
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
Support pan and zoom for geoshape mark #3306
Comments
Look like projection cannot be bind yet -- vega/altair#632 (comment) |
@allenjlee: Here's the geo selection issue we discussed. I believe we support single/multi selections with geo projections already but a good first test would be to build out a few examples of each. The flight links example provides a nice base case that you can start adding some interesting interactivity to for both selection types. I'll let you ideate a little here yourself :) Interval selections are the more trickier ones. As we discussed, these selection generate signals in visual space ( Instead, we added a new |
A while ago I saw this notebook https://observablehq.com/@jake-low/web-mercator-tile-visibility. It might be useful to get a feeling with these geo projected intervals. If not, just ignore. I think it is really a big achievement if you can make these |
In 2022, is there a recommended way to make zoomable vega-lite geo visualization? |
Actually, it's available now. We can probably close this @kanitw? |
@domoritz great! are there vega-lite examples with panning and zooming in maps/geo data? |
Hi @kaushiksrini, #6953 contains a couple of examples ( For now, with PR #6953, intervals on maps are limited to brushing. Panning and zooming will be forthcoming in a future release. |
Thanks @arvind, that sounds good! Is panning and zooming actively being worked on? I use altair and vega-lite for viz and this feature would be beneficial - would be happy to work on it and submit a PR. |
Thanks @kaushiksrini. Panning & zooming isn't something we're actively working on yet—so it would be something we'd very much welcome a PR on. #6953 walks through the changes made to support intervals on geo—we'd need to extend these changes to I'd be happy to find time to jump on a Zoom call if this is something you'd be interested in contributing to! |
@arvind Thanks, I would be interested in submitting a PR for this feature. I will look through the resources you provided and get a grasp of the repo and the functionalities. I shall reach out to schedule a Zoom call to learn more after that. Thanks again! |
Thanks for you interest in helping out with this feature @kaushiksrini! I think it would be highly valuable to be able to pan and zoom maps in VL, especially as support for tile-based maps is also being explored in #8885. Since this is a feature I'm excited about, I just wanted to check in if you were able to get started on it with the tips above from Arvind? |
@joelostblom Hey! I look forward to making my first altair contribution. I was looking at it and trying to understand it, but didn't reach out to Arvind yet. Have some time and am planning to pick this up again. @arvind would you be available to hop on a Zoom call in the coming couple of weeks? |
Here is a vega-lite example for any people interested. Here I apply params/signals to control zooming and panning. Use your mouse wheel to scroll in/out. Click and hold to pan. Dynamic colors per state and dynamic size of airports as we zoom in and out. We must use the mercator projection type for panning it seems? If you only want a specific country then we could easily add a filter to limit based on long/lat etc
You can play with the colors by adding a transform for sort then adjust the color setup with a theme and sort etc.
Happy charting! Adam (APB Reports) |
We need to create examples and comprehensively test different options for geo especially trying selection like interval on x/y positions.
The text was updated successfully, but these errors were encountered: