Tehran Metro Map using d3-tube-map based on official map
visit https://mer30hamid.github.io/Tehran-Metro-Map/ for demo
Even if the application only uses client side javascript, you still need to run a small web server to prevent CORS errors, because of loading json files from the local filesystem. A simple option would be Python's SimpleHTTPServer
(or http.server
, depending on the version of Python installed.). More about it here
> cd Tehran-Metro-Map
> python -m http.server
Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...