firstfrost (
firstfrost) wrote2006-09-01 01:07 pm
Bus Map
I've been playing around with the Google Maps API and teaching myself Javascript (Javascript Lesson One: "there is no here here"), and have proof-of-concept (that is, the routes through 100) for an MBTA bus map (because I never know where any of the busses go).
http://web.mit.edu/boojum/www/Map/
I find that I have really no particular knack for nice-looking UI, so if anyone has suggestions (or CSS files!) let me know.
As far as the actual functionality goes, bug reports and suggestions also welcome. (I can't figure out a good way to allow hitting return to work for the text entry fields without triggering a page reload...)
http://web.mit.edu/boojum/www/Map/
I find that I have really no particular knack for nice-looking UI, so if anyone has suggestions (or CSS files!) let me know.
As far as the actual functionality goes, bug reports and suggestions also welcome. (I can't figure out a good way to allow hitting return to work for the text entry fields without triggering a page reload...)
no subject
no subject
(It should be safe to let it run and then kill the tab after you're done, though; I checked it for memory leaks fairly recently and it didn't seem to have any).
no subject
Firefox also complained about slowness, but when I told it to keep going, it was ok.
no subject
no subject
no subject
no subject
Don't have much need for bus info, but it is very cool
Wow
I especially like the T stations.
no subject
no subject
"Clear all routes" would be a good button to have, though "reload page" does work for that in a pinch, which is why I was lazy and haven't added it. You should be able to show all the routes at a point by clicking to set a marker and then doing "select routes near locations" of some small distance.
I should figure out how to let you put a marker on top of a point, which doesn't currently work because the marker is grabbing the mouse event or something like that.
Your bike trip page was totally cool and inspirational when I saw it; the changing color trails in particular was very impressive. :)
Sadly...
I wonder if there's a way to make the data load lazily---maybe put the data for each route in a separate file and somehow slurp it in when a given route is displayed. But my JavaScript is basically non-existent, so...
no subject
And proves yet again that you (and your clones) have Too Much Time On Your Hands.
I could probably come up with user interface suggestions at some point if you like.
no subject
no subject
I think you can use Javascript onsubmit() to intercept the return key. Have the function return false to avoid submitting the form.
no subject
(I played around with using onchange, but that seemed to not work with IE. Darned platform compatibilities.)
Thanks so much
(Anonymous) 2007-07-07 09:11 pm (UTC)(link)Thanks again
no subject
Is your work open-source or would I have to recreate it?
no subject
Anyway, my understanding of the Google API and license is that I can use data I extract from their API for my own personal use, but I can't publish it on my own.