-
-
Save Fil/f67b0f6ccfa1f072c555775e331c307b to your computer and use it in GitHub Desktop.
d3 geojson polygons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d3 = require("d3-geo", "d3-geo-projection", "d3-geo-voronoi") | |
polygons = d3.geoVoronoi().polygons({…}) | |
projected = d3.geoProject( | |
d3.geoProject( | |
polygons, | |
d3 | |
.geoEquirectangular() | |
.scale(180 / Math.PI) | |
.translate([0, 0]) | |
), | |
d3.geoIdentity().reflectY(true) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment