It collects all geo-jsons in javascript of all 370 provincial cities in 28 provinces and acts as a static asset to jupyter-echarts or your echarts collection.
npm i echarts-china-cities-js
<html>
<head>
<meta charset="utf-8" />
<style>
.citymap{
width: 100%;
height: 100%;
}
</style>
<script src="https://echarts-maps.github.io/echarts-china-cities-js/echarts.min.js"></script>
<script src="https://echarts-maps.github.io/echarts-china-cities-js/js/shape-with-internal-borders/jiang1_xi1_nan2_chang1.js"></script>
</head>
<body>
<div id='nan2_chang1' class='citymap'></div>
<script src='https://echarts-maps.github.io/echarts-china-cities-js/demo.js'></script>
<script>
make_city('南昌', 'nan2_chang1');
</script>
</body>
</html>
Cities:
Please use python
$ pip install -r requirements
$ npm install
$ python makedemo.py
$ gulp
$ pip install test/requirements.txt
$ npm test
The geojson files are downloaded from AMap.com(高德地图) via echarts-map-tool, hence are subjected to AMap's service and content license.
No content right have been transferred to you and you shall engage AMap.com before making commercial applications using the files in this package. No Liability nor Guarantee were given for any error or flaws in the downloaded files.
Similiar to google's map data, it is free as long as the public's access to your files are free.
This bundling code(makedemo.py) is MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。