the-pudding / sleep-training

MIT License
0 stars 0 forks source link

geojson is way too big—needs to be under 1MB #39

Open matthewfdaniels opened 1 week ago

tomvaillant commented 6 days ago

See you already did this one! Would love to know what you did, removed properties from features?

matthewfdaniels commented 6 days ago

you can use https://mapshaper.org/ to fix this, but i would recommend finding a way to do just a single geojson of land (no countries) and just positioning the circles over each country by having its lat/long hard coded in the data. right now, you're doing an awful lot of work to extract the coordinate from the geojson, and you only have a few countries to encode data for.