Make a contour of Beijing city map

screenshot

Now, let's have a hands-on session to transform Beijing city map with internal borders into a contour of Beijing:

  1. Please install: node.js. And I recommend that everyone use nvm, the advantage is switching between node.js versions could not be easier.
  2. Install mapshaper,echarts-mapmaker

    npm install -g mapshaper echarts-mapmaker

  3. Download Beijing city map with internal borders

  4. Use mapshaper

    mapshaper beijing.geojson -dissolve2 -o beijing-shape-only.geojson

  5. Open beijing-shape-only.geojson in geojson.io.