You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Excellent game. Have you considered converting the country boundaries json into a topojson? If you encode it this way (and eliminate all unnecessary fields that are currently bloating the file size), you could probably use a 50m resolution or higher basemap, which would add fidelity to small places.
Not sure how you're rendering the map, but things like d3 can decode topojson into geojson out of the box easily.
Your current json of countries (without territories and Antarctica) clocks in at around 1MB. This file is a quick example I made, mostly using mapshaper.org. It's higher definition and about half the size after compression with topojson. Without compression, it's about 2MB, though it still includes greenland and a few other places you exported.
My general workflow was:
delete any attribute fields that weren't needed (in QGIS, but doable elsewhere)
delete shapes (Antarctica, etc.) that aren't needed (in QGIS, but doable elsewhere)
simplify geometries (using mapshaper)
export to topojson (using mapshaper)
Let me know if you have questions.
The text was updated successfully, but these errors were encountered:
However it gets implemented, I would like to see more detail of the shapes of small countries, especially islands.
After I guess one, if it is small enough that I have to zoom in to see it, I'm disappointed that it is shown only as a nondescript triangle or trapezoid. I don't learn what the country looks like, and as an aside, that ruins my use case of using Globle as a less-cheaty way to preview my guesses for another game like Worldle/Countrydle.
Hi there,
Excellent game. Have you considered converting the country boundaries json into a topojson? If you encode it this way (and eliminate all unnecessary fields that are currently bloating the file size), you could probably use a 50m resolution or higher basemap, which would add fidelity to small places.
Not sure how you're rendering the map, but things like d3 can decode topojson into geojson out of the box easily.
Your current json of countries (without territories and Antarctica) clocks in at around 1MB. This file is a quick example I made, mostly using mapshaper.org. It's higher definition and about half the size after compression with topojson. Without compression, it's about 2MB, though it still includes greenland and a few other places you exported.
My general workflow was:
Let me know if you have questions.
The text was updated successfully, but these errors were encountered: