npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@surbowl/world-geo-json-zh

v2.1.4

Published

A simplified Chinese world map in GeoJSON format, including ISO 3166 codes, Chinese short names, and full names of countries (regions). 简体中文 GeoJson 世界地图,带有国家地区的 ISO 3166 代码、中文简称与全称

Downloads

2,542

Readme

world-geo-json-zh

简体中文 Geo JSON 世界地图,带有国家(地区)的 ISO 3166 代码、中文简称与全称。含中国南海海域十段线。

A simplified Chinese world map in GeoJSON format, including ISO 3166 codes, Chinese short names, and full names of countries (regions). Contains China's Ten-Dash Line.

🌏 Data

👀 Demo

Install

<script type="module">
    import worldGeoJsonZh from 'https://cdn.jsdelivr.net/npm/@surbowl/world-geo-json-zh/+esm'
</script>

or

npm i @surbowl/world-geo-json-zh

Data

Properties

{
   "type": "FeatureCollection",
   "features": [
      {
         "type": "Feature",
         "properties": {
            "name": "中国",
            "full_name": "中华人民共和国",
            "iso_a2": "CN",   // ISO 3166 Alpha-2 code
            "iso_a3": "CHN",  // ISO 3166 Alpha-3 code
            "iso_n3": "156"   // ISO 3166 Numeric code
         },
         "geometry": {
            "type": "MultiPolygon",
            "coordinates": [ ...... ]
         }
      },
      {
         "type": "Feature",
         "properties": {
            "name": "智利",
            "full_name": "智利共和国",
            "iso_a2": "CL",
            "iso_a3": "CHL",
            "iso_n3": "152"
         },
         "geometry": {
            "type": "MultiPolygon",
            "coordinates": [ ...... ]
         }
      },
      
      ......
      
   ]
}

Source

本项目基于 Natural Earth 1:50m Cultural Vectors Admin 0 – Countries 地图生成,为降低文件体积,使用 Mapshaper 以 Douglas-Peucker 算法进行简化处理(-simplify dp 10% keep-shapes),Polygon 坐标精确到小数点后 6 位。

此外通过参考下列地图对结果进行调整:

Note

  • 如需区分中国内地、中国香港、中国澳门、中国台湾,请查看 Issue 《有没有内地和港澳台四个单独拿出来绘制的版本呢》 ,或参考带注释的 JSONC 文件

  • 国际标准化组织尚未制定下列国家(地区)的 ISO 3166 代码,无法通过 ISO 3166 代码匹配到下列国家(地区),您可根据业务需要将 -99 替换为自定义值。

    |name|iso_a2|iso_a3|iso_n3| |------|------|------|----| |北塞浦路斯|-99|-99|-99| |索马里兰|-99|-99|-99| |锡亚琴冰川|-99|-99|-99|

References

License

The Unlicense

Contributing

欢迎大家在 Issues 中提供建议、反馈 Bug ❤