• Get the json file of taiwan
    • I use the project in github of g0v.  https://github.com/g0v/twgeojson
  • Put json file in static/json of flask project
  • Add taiwanmap.html and pad the following script in  taiwanmap.html

twmap

  • Using js
    • <script src=”http://d3js.org/d3.v3.min.js”></script>
    • <script src=”http://d3js.org/topojson.v1.min.js”></script>
  • Add html to route

map_server

  • Finish

map_show

Reference

https://github.com/g0v/twgeojson