miridius / worldie

worldie.vercel.app
2 stars 1 forks source link

Switch from geojson to topojson to save bandwidth #4

Closed miridius closed 2 years ago

miridius commented 2 years ago

TopoJSON files are a lot smaller than GeoJSON and the country data we're currently using has both so we may as well switch.

We just have to make sure leaflet supports them well first

miridius commented 2 years ago

Should be done after #3

miridius commented 2 years ago

Leaflet doesn't support TopoJSON natively, so we'd have to use the topojson JS library to convert from geojson to topojson in the browser, which I'm not sure is worth the bandwidth saved... will park this topic for now