I am trying to transform GeoJSON to TopoJOSN in order to put into Vega-Lite. Therefore I can draw a map.
I used https://geojson-maps.ash.ms/ to download the .json for map Oceania (Low resolution), then I put this file into https://mapshaper.org/ so that I can export it again as .topojson
However, even I choose export as .topojson, the file still give me .json. Because when I put this URL to Vega-Late, it cannot display a Oceania map. (My code at the very bottom of the question)
Anyone know how can I transform into topojson? Or even maybe there is anything wrong with my URL?
A couple issues with your specification:
"states"
. It includes a feature named"custom"
.albersusa
projection, which only shows the USA, and your GeoJSON has no data within this boundary.Fixing these issues, and using an orthographic projection centered on Australia, gives you a better chart (view in editor):