How to create a custom geojson shape and get it displayed with pyecharts

The source files of this tutorial is on github

Draw your first polygon: the Forbidden City in Beijing

  1. Open geojson.io in Chrome

    geojson

  2. Centre the map on Beijing and zoom out

    geojson-2

  3. Click on polygon tool and start drawing

    geojson-3

  4. Remember to finish a polygon, you must click the first point which you started from.

    geojson-4

  5. Highlight the text area on the right. Please insert one key value pair as underlined:

```"name": "The Forbidden City"

  1. Then save the geojson into a local file, for example "The-Forbidden-City.geojson"

Preview geojson

Open geojson.io in another window. Drag and drop the new file into it. You should see the Forbidden City polygon.

Coming up

We are going to integrate it with pyecharts