-
Notifications
You must be signed in to change notification settings - Fork 628
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
Issue with image encoding on maps #7295
Comments
It looks like we don't handle images correctly with geo coordinates. Thanks for the bug report. x and y work correctly Open the Chart in the Vega Editor long/lat do not Open the Chart in the Vega Editor We need to update https://github.com/vega/vega-lite/blob/master/src/compile/mark/encode/position-rect.ts. |
Thanks for the pointer. I'm pretty Javascript illiterate but this could be the occasion, esp. if you tell me where to look. I'll give it a try |
I think this is a duplicate of #6580, though. |
Indeed @domoritz the same fix works there as well. |
I think #7296 fixes it. |
Thanks, looking forward to try it in next release! |
This issue is probably related to #6580 and comes after further investigation after this question on StackOverflow: https://stackoverflow.com/questions/66556550/plotting-image-on-maps-with-vega-lite-altair
The code below does not display the images. In the Vega (not lite) editor, it seems:
x1
andx2
channels are artificially added;width
andheight
configurations disappeared (see Image on a map: NaN width/height #6580)Editing the corresponding code in the Vega editor accordingly seems to fix the issue:
Working link with Vega
Not working link with Vega-Lite
The text was updated successfully, but these errors were encountered: