This is a simple node script that takes a GeoJSON or TopoJSON input string and returns a GeoJSON object with the coordinates reversed, so that it can be used with D3.
Credit to https://observablehq.com/@john-guerra/d3-black-box-map.
This is a simple node script that takes a GeoJSON or TopoJSON input string and returns a GeoJSON object with the coordinates reversed, so that it can be used with D3.
Credit to https://observablehq.com/@john-guerra/d3-black-box-map.