Topojson - Arc for Singapore and Hong Kong

I noticed that world-110m.json and world-110m2.json at https://github.com/mbostock/topojson/tree/master/examples had no paths for Singapore and Hong Kong. I looked in the Natural Earth dataset that generates the world-110m.json file, and noticed that Singapore was listed in the tiny_countries file, but only as a point, not as a polygon. The normal countries file does not seem to include Singapore. However, pay attention to http://techslides.com/d3-world-maps-tooltips-zooming-and-queue/ that Singapore is not a point, but a path.

I noticed that the above link has ways for Singapore and Hong Kong. However, I am having problems using the files from this page due to complex code and you prefer to insert arcs manually.

Thanks!

+6
source share

Source: https://habr.com/ru/post/977478/


All Articles