Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smaller countries json with higher resolution #97

Open
DanielJWood opened this issue May 24, 2022 · 1 comment
Open

Smaller countries json with higher resolution #97

DanielJWood opened this issue May 24, 2022 · 1 comment

Comments

@DanielJWood
Copy link

DanielJWood commented May 24, 2022

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:

  • 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.

@owenstone
Copy link
Contributor

add fidelity to small places

This and the title of this issue are right on.

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.

Thanks for logging this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants