echarts-maps / echarts-countries-js

Packages countries and regions as an asset for echarts.

Home Page:https://echarts-maps.github.io/echarts-countries-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Packages countries and regions as an asset for echarts.

https://echarts-maps.github.io/echarts-countries-js/

License:Open Data Commons Open Database License v1.0


Languages

Language:JavaScript 98.7%Language:Pug 1.3%