https://github.com/camdavidsonpilon/subwayjs
make an interactive subway map in javascript.
https://github.com/camdavidsonpilon/subwayjs
Last synced: 8 months ago
JSON representation
make an interactive subway map in javascript.
- Host: GitHub
- URL: https://github.com/camdavidsonpilon/subwayjs
- Owner: CamDavidsonPilon
- License: other
- Created: 2012-07-12T02:07:32.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-12-14T04:58:21.000Z (over 13 years ago)
- Last Synced: 2024-05-02T06:13:54.608Z (about 2 years ago)
- Language: JavaScript
- Homepage: http://www.camdp.com
- Size: 122 KB
- Stars: 33
- Watchers: 8
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Subwayjs is a javascript module for creating an interactive subway system for you website. See www.camdp.com/UWSubway and www.camdp.com/ttc for examples.
The module relies on Paper.js (http://paperjs.org/download/).
To run, you'll need something that looks like this in your header:
Note that there must be only one script that will contain the main subways.js library and the initialization of the stations (see initialization_example.js for an example of initalization). The seperation above was purely for aesthetics. The reason for this is that paper.js works only a very local scope, and not across js scripts.
See ttc.js for a full, working example.
Please email me at cam.davidson.pilon@gmail.com if you have any comments, questions or suggestions.