Skip to content

Commit

Permalink
update tanzania map. fix #32
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Nov 23, 2024
1 parent 0779f0e commit 430ba65
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 10 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://badge.fury.io/js/echarts-countries-js.svg)](https://badge.fury.io/js/echarts-countries-js)

It collects all geo-jsons in javascript of 212 countries and regions
It collects all geo-jsons in javascript of 211 countries and regions
and acts as a static asset to jupyter-echarts or your echarts collection.

## Installation
Expand Down Expand Up @@ -228,7 +228,6 @@ Cities:
1. [瑞典](https://pyecharts.github.io/echarts-countries-js/dist/Sweden.js) (Sweden)
1. [叙利亚](https://pyecharts.github.io/echarts-countries-js/dist/Syria.js) (Syria)
1. [塔吉克斯坦](https://pyecharts.github.io/echarts-countries-js/dist/Tajikistan.js) (Tajikistan)
1. [坦桑尼亚](https://pyecharts.github.io/echarts-countries-js/dist/Tanzania.js) (Tanzania)
1. [泰国](https://pyecharts.github.io/echarts-countries-js/dist/Thailand.js) (Thailand)
1. [巴哈马](https://pyecharts.github.io/echarts-countries-js/dist/The_Bahamas.js) (The Bahamas)
1. [冈比亚](https://pyecharts.github.io/echarts-countries-js/dist/The_Gambia.js) (The Gambia)
Expand Down
2 changes: 1 addition & 1 deletion echarts-countries-js/Tanzania.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions geojson/shape-with-internal-borders/tanzania.geojson

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ NAMES = {
"Sweden": "瑞典",
"Syria": "叙利亚",
"Tajikistan": "塔吉克斯坦",
"Tanzania": "坦桑尼亚",
"Thailand": "泰国",
"The Bahamas": "巴哈马",
"The Gambia": "冈比亚",
Expand Down Expand Up @@ -226,7 +225,7 @@ NAMES = {
"Zimbabwe": "津巴布韦"
}

gulp.task("default", ["readme", "world", "config", "template", "italy", "switzerland"], function() {
gulp.task("default", ["readme", "world", "config", "template", "italy", "switzerland", "tanzania"], function() {
glob(LOCATION + '/*.json', function(err, files){
if(err) throw err;
files.forEach( (filePath) => {
Expand Down Expand Up @@ -306,9 +305,11 @@ gulp.task('template', function(){
countryNames.push('china');
countryNames.push('world');
countryFiles.push('echarts-countries-js/Switzerland.js');
countryFiles.push('echarts-countries-js/Italy.js');
countryNames.push('瑞士');
countryFiles.push('echarts-countries-js/Italy.js');
countryNames.push('意大利');
countryFiles.push('echarts-countries-js/Tanzania.js');
countryNames.push('坦桑尼亚');
countryFiles.push('echarts-countries-js/eckert3-world.js');
countryNames.push('eckert3-world');
countryFiles.push('echarts-countries-js/china-cities.js');
Expand Down Expand Up @@ -342,6 +343,15 @@ gulp.task('italy', function() {
}))
.pipe(gulp.dest('echarts-countries-js'));
});
gulp.task('tanzania', function() {
maker.makeJs('geojson/shape-with-internal-borders/tanzania.geojson', 'Tanzania.js', '坦桑尼亚');
gulp.src('Tanzania.js', {base: '.'})
.pipe(minify({
noSource: true,
ext: { min: ".js"}
}))
.pipe(gulp.dest('echarts-countries-js'));
});

gulp.task('world', function(){
gulp.src(['./node_modules/echarts/map/js/world.js', './node_modules/echarts/map/js/china.js'])
Expand Down
4 changes: 2 additions & 2 deletions preview.html

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@
"瑞典": "Sweden",
"叙利亚": "Syria",
"塔吉克斯坦": "Tajikistan",
"坦桑尼亚": "Tanzania",
"泰国": "Thailand",
"巴哈马": "The_Bahamas",
"冈比亚": "The_Gambia",
Expand Down Expand Up @@ -398,7 +397,6 @@
"Sweden": "Sweden",
"Syria": "Syria",
"Tajikistan": "Tajikistan",
"Tanzania": "Tanzania",
"Thailand": "Thailand",
"The_Bahamas": "The_Bahamas",
"The_Gambia": "The_Gambia",
Expand Down

0 comments on commit 430ba65

Please sign in to comment.