Export Image
Export Code

Polished World Map

Curran Kelleher

Last edited Feb 26, 2024
Created on Sep 21, 2019

A world map showing country boundaries from World Atlas TopoJSON, polished for visual style, including graticules.

MIT Licensed

Comments

Erica Rabinovich
commented on
Feb 26, 2024

Hello, I'm trying to get a working map in my project using a simplified version of the countries-50m info, but it seems like there may be an issue with the projection? I simplified the data with mapshaper.org as you demonstrated and ended up with this: https://gist.github.com/erabinovich3/190b8e4d47d83ffeb7f87962838fb8dc However, when I try to draw this with d3, I just get a black square... GitHub and mapshaper have no issues displaying the map, so I'm not sure what's going on. Any ideas? Thank you!

Curran Kelleher
commented on
Feb 26, 2024

Interesting... Are there any errors in the console? Can you share a link to the broken code in VizHub? It looks like your export is TOPOJSON, are you using https://github.com/topojson/topojson to parse it to GeoJSON? If you share a link to the code that is running but not working, that would make it easier to help.

Consider joining our Discord and asking there, that's a great place to work through issues like this:

https://discord.gg/wbtJ7SCtYrIf

Good luck!

Erica Rabinovich
commented on
Feb 26, 2024

Thanks for the response! For brevity and speed, I forked and made some changes to this viz to use my data and (intended) projection. Even though this isn't exactly the same as my code, it looks like the same thing is happening...

https://vizhub.com/erabinovich3/b0a6d569dbc94127bfe0137a11125089