Two easy steps:
git clone git@github.com:nomatteus/onamap.git
- Open
index.html
in your web browser!
You should be able to run this directly in your browser (i.e. "double-click" on it!), but you'll probably want to run this through a web server once the real coding starts.
See the Google Maps JavaScript API V3 docs for examples, API documentation, and tutorials.
css/style.css
Very basic styles to fill the browser window with the map.
js/app.js
Creates the map, and contains events to add markers on click. Start coding here!
index.html
Loads the Google Maps JS, and HTML for the map/controls/etc.
- Google Maps JS API v3
- Underscore.js
A framework to allow rapid development of sites that feature "things" on a map.
I am genericizing the code from my "streetcars on a map" site: http://totransit.ca/
Toronto Open Data: http://toronto.ca/open