Code Monkey home page Code Monkey logo

echarts-countries-js's Introduction

echarts-countries-js

npm version

It collects all geo-jsons in javascript of 213 countries and regions and acts as a static asset to jupyter-echarts or your Apache ECharts (incubating) collection.

Installation

npm i echarts-countries-js

This library will be included in pyecharts. No action is required from pyecharts user.

echarts usage

<html>
  <head>
    <meta charset="utf-8" />
	<style>
	  .citymap{
	  width: 100%;
	  height: 100%;
	  }
	</style>
  	<script src="https://echarts-maps.github.io/echarts-countries-js/echarts.min.js"></script>
	<script src="https://echarts-maps.github.io/echarts-countries-js/echarts-countries-js/Switzerland.js"></script>
  </head>
  <body>
	<div id='map' class='citymap'></div>
	<script src='demo.js'></script>
	<script>
	  make_map('瑞士', 'map');
	</script>
  </body>
</html>

Usage with echarts

Featuring Cities(or for Single Download)

Cities:

  1. 阿富汗 (Afghanistan)
  2. 阿尔巴尼亚 (Albania)
  3. 阿尔及利亚 (Algeria)
  4. 安道尔 (Andorra)
  5. 安哥拉 (Angola)
  6. 安圭拉 (Anguilla)
  7. 安提瓜和巴布达 (Antigua and Barbuda)
  8. 阿根廷 (Argentina)
  9. 亚美尼亚 (Armenia)
  10. 澳大利亚 (Australia)
  11. 奥地利 (Austria)
  12. 阿塞拜疆 (Azerbaijan)
  13. 巴林 (Bahrain)
  14. 孟加拉国 (Bangladesh)
  15. 巴巴多斯 (Barbados)
  16. 白俄罗斯 (Belarus)
  17. 比利时 (Belgium)
  18. 伯利兹 (Belize)
  19. 贝宁 (Benin)
  20. 百慕达群岛 (Bermuda)
  21. 不丹 (Bhutan)
  22. 玻利维亚 (Bolivia)
  23. 波斯尼亚-黑塞哥维那 (Bosnia and Herzegovina)
  24. 博茨瓦纳 (Botswana)
  25. 巴西 (Brazil)
  26. 英属印度洋领地 (British Indian Ocean Territory)
  27. 英属维尔京群岛 (British Virgin Islands)
  28. 文莱 (Brunei)
  29. 保加利亚 (Bulgaria)
  30. 布基纳法索 (Burkina Faso)
  31. 蒲隆地 (Burundi)
  32. 柬埔寨 (Cambodia)
  33. 喀麦隆 (Cameroon)
  34. 加拿大 (Canada)
  35. 佛得角 (Cape Verde)
  36. 开曼群岛 (Cayman Islands)
  37. 中非共和国 (Central African Republic)
  38. 乍得 (Chad)
  39. 智利 (Chile)
  40. 哥伦比亚 (Colombia)
  41. 科摩罗 (Comoros)
  42. 刚果-布拉柴维尔 (Congo-Brazzaville)
  43. 刚果金 (Congo-Kinshasa)
  44. 库克群岛 (Cook Islands)
  45. 珊瑚海群岛领地 (Coral Sea Islands Territory)
  46. 哥斯达黎加 (Costa Rica)
  47. 克罗地亚 (Croatia)
  48. 古巴 (Cuba)
  49. 塞浦路斯 (Cyprus)
  50. 捷克 (Czechia)
  51. 丹麦 (Denmark)
  52. 吉布提 (Djibouti)
  53. 多米尼克 (Dominica)
  54. 多米尼加共和国 (Dominican Republic)
  55. 东帝汶 (East Timor)
  56. 厄瓜多尔 (Ecuador)
  57. 埃及 (Egypt)
  58. 萨尔瓦多 (El Salvador)
  59. 赤道几内亚 (Equatorial Guinea)
  60. 厄立特里亚 (Eritrea)
  61. 爱沙尼亚 (Estonia)
  62. 埃塞俄比亚 (Ethiopia)
  63. 福克兰群岛 (Falkland Islands)
  64. 法罗群岛 (Faroe Islands)
  65. 密克罗尼西亚联邦 (Federated States of Micronesia)
  66. 斐济 (Fiji)
  67. 芬兰 (Finland)
  68. 法国 (France)
  69. 加蓬 (Gabon)
  70. 格鲁吉亚 (Georgia)
  71. 德国 (Germany)
  72. 加纳 (Ghana)
  73. 直布罗陀 (Gibraltar)
  74. 希腊 (Greece)
  75. 格陵兰 (Greenland)
  76. 危地马拉 (Guatemala)
  77. 根西 (Guernsey)
  78. 几内亚比索 (Guinea-Bissau)
  79. 几内亚 (Guinea)
  80. 圭亚那 (Guyana)
  81. 海地 (Haiti)
  82. 洪都拉斯 (Honduras)
  83. 匈牙利 (Hungary)
  84. 冰岛 (Iceland)
  85. 印度 (India)
  86. 印度尼西亚, 印尼 (Indonesia)
  87. 伊拉克 (Iraq)
  88. 爱尔兰 (Ireland)
  89. 伊朗 (Islamic Republic of Iran)
  90. 马恩岛 (Isle of Man)
  91. 以色列 (Israel)
  92. 意大利 (Italy)
  93. 牙买加 (Jamaica)
  94. 日本 (Japan)
  95. 泽西 (Jersey)
  96. 约旦 (Jordan)
  97. 哈萨克斯坦 (Kazakhstan)
  98. 肯尼亚 (Kenya)
  99. 基里巴斯 (Kiribati)
  100. 科威特 (Kuwait)
  101. 吉尔吉斯斯坦 (Kyrgyzstan)
  102. 老挝 (Laos)
  103. 拉脱维亚 (Latvia)
  104. 黎巴嫩 (Lebanon)
  105. 莱索托 (Lesotho)
  106. 利比里亚 (Liberia)
  107. 利比亚 (Libya)
  108. 列支敦士登 (Liechtenstein)
  109. 立陶宛 (Lithuania)
  110. 卢森堡 (Luxemburg)
  111. 马其顿 (Macedonia)
  112. 马达加斯加 (Madagascar)
  113. 马拉维 (Malawi)
  114. 马来西亚 (Malaysia)
  115. 马尔代夫 (Maldives)
  116. 马里 (Mali)
  117. 马耳他 (Malta)
  118. 马绍尔群岛 (Marshall Islands)
  119. 毛里塔尼亚 (Mauritania)
  120. 毛里求斯 (Mauritius)
  121. 墨西哥 (Mexico)
  122. 摩尔多瓦 (Moldova)
  123. 摩纳哥 (Monaco)
  124. 蒙古 (Mongolia)
  125. 黑山 (Montenegro)
  126. 蒙特塞拉特 (Montserrat)
  127. 摩洛哥 (Morocco)
  128. 莫桑比克 (Mozambique)
  129. 缅甸 (Myanmar)
  130. 纳米比亚 (Namibia)
  131. 尼泊尔 (Nepal)
  132. 新西兰 (New Zealand)
  133. 尼加拉瓜 (Nicaragua)
  134. 尼日尔 (Niger)
  135. 尼日利亚 (Nigeria)
  136. 纽埃 (Niue)
  137. 朝鲜 (North Korea)
  138. 挪威 (Norway)
  139. 阿曼 (Oman)
  140. 巴基斯坦 (Pakistan)
  141. 帕劳 (Palau)
  142. 巴勒斯坦 (Palestine)
  143. 巴拿马 (Panama)
  144. 巴布亚新几内亚 (Papua New Guinea)
  145. 巴拉圭 (Paraguay)
  146. 秘鲁 (Peru)
  147. 菲律宾 (Philippines)
  148. 皮特凱恩群島 (Pitcairn Islands)
  149. 波兰 (Poland)
  150. 葡萄牙 (Portugal)
  151. 卡塔尔 (Qatar)
  152. 科索沃 (Republic of Kosovo)
  153. 罗马尼亚 (Romania)
  154. 俄罗斯 (Russia)
  155. 卢旺达 (Rwanda)
  156. 撒拉威阿拉伯**共和国 (Sahrawi Arab Democratic Republic)
  157. 圣赫勒拿-阿森松和特里斯坦-达库尼亚 (Saint Helena Ascension and Tristan da Cunha)
  158. 圣基茨和尼维斯 (Saint Kitts and Nevis)
  159. 圣卢西亚 (Saint Lucia)
  160. 圣文森特和格林纳丁斯 (Saint Vincent and the Grenadines)
  161. 萨摩亚 (Samoa)
  162. 圣马力诺 (San Marino)
  163. 沙特阿拉伯 (Saudi Arabia)
  164. 塞内加尔 (Senegal)
  165. 塞尔维亚 (Serbia)
  166. 塞舌尔 (Seychelles)
  167. 塞拉利昂 (Sierra Leone)
  168. 新加坡 (Singapore)
  169. 斯洛伐克 (Slovakia)
  170. 斯洛文尼亚 (Slovenia)
  171. 所罗门群岛 (Solomon Islands)
  172. 索马里 (Somalia)
  173. 南非 (South Africa)
  174. 南乔治亚和南桑威奇群岛 (South Georgia and the South Sandwich Islands)
  175. 韩国 (South Korea)
  176. 南苏丹 (South Sudan)
  177. 西班牙 (Spain)
  178. 斯里兰卡 (Sri Lanka)
  179. 苏丹 (Sudan)
  180. 苏里南 (Suriname)
  181. 史瓦济兰 (Swaziland)
  182. 瑞士 (Switzerland)
  183. 瑞典 (Sweden)
  184. 叙利亚 (Syria)
  185. 塔吉克斯坦 (Tajikistan)
  186. 坦桑尼亚 (Tanzania)
  187. 泰国 (Thailand)
  188. 巴哈马 (The Bahamas)
  189. 冈比亚 (The Gambia)
  190. 荷兰 (The Netherlands)
  191. 多哥 (Togo)
  192. 托克劳 (Tokelau)
  193. 汤加 (Tonga)
  194. 特立尼达和多巴哥 (Trinidad and Tobago)
  195. 突尼斯 (Tunisia)
  196. 土耳其 (Turkey)
  197. 土库曼 (Turkmenistan)
  198. 特克斯和凯科斯群岛 (Turks and Caicos Islands)
  199. 吐瓦鲁 (Tuvalu)
  200. 乌干达 (Uganda)
  201. 乌克兰 (Ukraine)
  202. 阿拉伯联合酋长国 (United Arab Emirates)
  203. 英国 (United Kingdom)
  204. 乌拉圭 (Uruguay)
  205. 美国 (USA)
  206. 乌兹别克斯坦 (Uzbekistan)
  207. 瓦努阿图 (Vanuatu)
  208. 梵蒂冈 (Vatican City)
  209. 委内瑞拉 (Venezuela)
  210. 越南 (Vietnam)
  211. 也门 (Yemen)
  212. 赞比亚 (Zambia)
  213. 津巴布韦 (Zimbabwe)

Development

$ npm install
$ gulp switzerland # as this is special fix
$ gulp

Credit and geojson source

pissang and his starbucks project.

Switzerland map comes from natural earth data

License

ODC Open Database License (ODbL)

Note

This projects is NOT associated with official Apache ECharts (incubating) project and is independently maintained by @chfw.

echarts-countries-js's People

Contributors

bkmgit avatar chenjiandongx avatar chfw avatar hansz00 avatar jechague avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

echarts-countries-js's Issues

Political maps

It may be helpful to allow several different world, country and region maps. This would allow end user to choose the one they want rather than make it a developer burden/choice. It would also allow for showing political boundaries at different periods in time.

投影坐标问题

你好,请问echarts根据geojson文件渲染出地图的投影坐标是什么呢?

echarts.min.js

It may be helpful to add echarts-en.min.js, though not clear which version of echarts.min.js is included here.

Incorrect map to Singapore

The coordinates of the Singapore map is mention as
"@@dbFVa\\`JXGfTrPHPOX@TXhNbU@ISWSiA[_@GcLkZUMMAqJMAIWQOJMKY@OGYFL\WDYNDb" This is the wrong map as it can be seen on the attached screenshot.
Screenshot from 2019-09-27 15-09-02

Map of Tanzania

The map information of Tanzania is Incomplete. Please check it.

Australia map NSW & ACT overlap

The Australian Capital Territory is located within the New South Wales, but is not part of NSW. The map generated by the geojson makes them overlap with each other. The geojson needs to be updated - the NSW multipolygon needs to have a 'hole' for ACT.

安装后 china.js 变为 China.js 导致测试找不到文件

image

如下图

image

安装了最新的 V0.0.8 版本仍旧为 China.js 但 world.js 是正常的。

image

image

看 Github 上的文件确实正常的 china.js,一个猜测:是不是你没有清理缓存或者本地内容再打包,导致没有覆盖掉原先的文件?试试清楚所有缓存再重新打包试试?

go-echart compatability

Hi,
Just wondering what the compatibility for the .js maps provided here is with your go-echarts project?
I can't seem to get it to run straight out of the box, any ideas on why it might not be working?

世界地图"东半球版"有可能实现吗?

   请问东半球版的世界地图是否可以通过调整参数实现?即以东经150°(150° E)为“**经线”,以西经30° (30° W)经线为图幅的左边经线和右边经线,太平洋在中间的显示方案。
   当前是显示“西半球版”世界地图,即以0°经线为“**经线”,以西经180°经线为左边经线、以东经180°经线为右边经线。

Add a license to the repo

Hi,

We @genexuslabs are considering using the information in this repository in one of our products and we would like a clarification of the license for using it.

We understand by this section of the repo's ReadMe that your intention is to make the information as open as possible, is that correct? If this is the case, may we suggest the inclusion of a license file1 in the repository to clearly state this? We would be happy to make a PR if needed.

We think that the open source license that most closely aligns with the intention of said section is this one or you could choose another one from this helpful list.

Best regards,
José

Footnotes

  1. https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/licensing-a-repository

English

Is there any chance we can find those in English?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.