Make a contour of Beijing city map
Now, let's have a hands-on session to transform Beijing city map with internal borders into a contour of Beijing:
- Please install: node.js. And I recommend that everyone use nvm, the advantage is switching between node.js versions could not be easier.
-
Install mapshaper,echarts-mapmaker
npm install -g mapshaper echarts-mapmaker
-
Use mapshaper
mapshaper beijing.geojson -dissolve2 -o beijing-shape-only.geojson
-
Open beijing-shape-only.geojson in geojson.io.