We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following Vega-lite code with a single point:
{ "data": { "values": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 4.8885, 52.4039 ] } } ] }, "mark": { "type": "geoshape" } }
renders empty:
But when there are two points:
{ "data": { "values": [ { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 4.8885, 52.4039 ] } }, { "type": "Feature", "geometry": { "type": "Point", "coordinates": [ 5.8885, 53.4039 ] } } ] }, "mark": { "type": "geoshape" } }
they will both render:
It seems there is no extent computation of a single point.
The text was updated successfully, but these errors were encountered:
I think this traces down to a d3-geo issue? Vega uses D3's projection fitting methods.
var p = d3.geoMercator(); p.fitExtent( [[0,0],[500,500]], {"type": "Feature", "geometry": {"type": "Point", "coordinates": [4.8885, 52.4039]}} ); p.scale() // Infinity p.translate() // [-Infinity, Infinity]
If you specify custom projection parameters in the VL spec, the map should work with a single point.
Sorry, something went wrong.
No branches or pull requests
The following Vega-lite code with a single point:
renders empty:
But when there are two points:
they will both render:
![image](https://user-images.githubusercontent.com/5186265/63462248-c607a000-c45a-11e9-957b-3bdee3cbaece.png)
It seems there is no extent computation of a single point.
The text was updated successfully, but these errors were encountered: