In Spring 2009, I took a class in web design, INFO 2300. For our final project, we designed a website for a client. Our client was Big Red Bikes, a club at Cornell trying to form a bike sharing program. One of the features of the website I built was a javascript map. It was used to view the locations of several bike hubs around campus and how many bikes are at each hub.
There are two versions: the normal map and the admin map. The normal map just displays each bike hub and the number of bikes located there. The admin map instead gives the admin user ability to change the hub name and the number of bikes available there, for inventory purposes.
I thought about releasing this code as a generic thing that people could use, but most of the interesting functionality is built specifically for the bike system. But since it's javascript, the code is there for you to see or use. Feel free to poke around js-mapping.js if you want to see what's making the map tick. It requires jQuery and jQuery UI. Otherwise, just have fun playing with the map.
Note: The admin functionality looks like it works, but it doesn't. Reload the page and you'll see that none of your changes have stuck. But if the PHP backing the map was not commenting out the interesting parts, it would work; there's no change to the javascript.