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

d3.geoVoronoi() is not (yet) existing? #19

Closed
mattijn opened this issue Jul 14, 2018 · 1 comment
Closed

d3.geoVoronoi() is not (yet) existing? #19

mattijn opened this issue Jul 14, 2018 · 1 comment

Comments

@mattijn
Copy link

mattijn commented Jul 14, 2018

First, thanks for your great contributions regarding projections in D3. I have been playing with your new added projections in this d3-geo-polygon extension in combination with vega. Firstly I used the airocean projection to cut and engrave some wood using laser and liked the result¹.

But now having seen these maps on https://beta.observablehq.com/@fil/speed-of-the-voronoi-projection I would love to play with this projection as well.

I used the method as mentioned in the notebook:

The following map was made with the Voronoi projection — available as d3.geoVoronoi() in d3-geo-polygon.

When I try to use this:
projection = d3.geoVoronoi()

I receive:
TypeError: d3.geoVoronoi is not a function

Question: I'm trying features that are not yet available? or do I call them wrongly?

¹ Click to expand

img_1049
img_1050

@Fil
Copy link
Member

Fil commented Jul 15, 2018

Hello ! First, your images are absolutely beautiful, I would love to be able to do this too.

As for your question, that paragraph was wrong and misleading (I fixed it).

  1. d3.geoVoronoi is published here; but it is not the voronoi projection — it's a library that helps to compute the spherical voronoi diagram.

  2. the voronoi projection itself is working in private blocks, and I'm working on publishing it. In the meantime I'd be delighted to share the code with you if you want to try your lasers on it!! Please email me philippe.riviere@visionscarto.net so I can send you more details.

@Fil Fil closed this as completed Jul 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants