How'd You Build That Map?
When I started the Wilder World Tour, I built a simple map so my Mom could know where I was during the trip. I thought others might be interested too.
I’d been meaning to find an extra day or two to wrap this all in a little wrapper and share it. I finally found time the last couple of days. The result is travelMap, a library that allows you to build your own travel maps including showing current location, lines between locations, and popup information about each stop.
Find the project on GitHub and use it, share it, fork it:
You can either download the travelmap.js (or min.js) or you can just use bower to install it:
> bower install travelmap
This project depends on GMaps and the Google Maps API. The bower package installs the GMaps project as a dependency already. It does not require any other libraries (e.g. no jQuery). It shouldn't have any problems working with any libraries as far as I know.
Before you can use the library, you need to include the Google API and GMaps libraries. Usually, you would include all three at once:
Once you have the scripts, it's usage is simply calling createMap and specifying the stops and selector:
Let me know what you think!