That's right folks, articles on OberWiki can have fancy maps embedded right into the page, thanks to the kind API-releasing folks at Google Maps!
Adding a map to a page
When you're editing a page, you'll see a "show map" link under the editing toolbar. (No toolbar or link? Change your editing preferences to show the toolbar!) Click on that link and a map will pop up, centered on northern Ohio. Now navigate yourself to where you want to be: you can pan around, zoom in and out, and decide whether you want a road map, a satellite image, or both.
If you click somewhere on the map, a red pushpin will pop up. When you click on that pushpin, a bubble with two links appears above it. "Insert map centered here", naturally, will insert a map centered on that point into the article you're editing. Once you've got a map in your article, you can stick a bunch of pushpins with labels into it with the "add point here" link. (When you click "add point here" a bunch of numbers is inserted, followed by "label goes here": that's where the label goes. Tricky, huh?)
If you want, once you've got the code for the map, you can tweak a couple options. Check it out:
- <googlemap lat="41.28296653985038" lon="-82.2491455078125" zoom="10" type="map" width="500" height="400" type="hybrid" controls="small">
- 41.28296653985038,-82.2491455078125,you are here
width="500" height="400" type="hybrid" controls="small" -- That'll make the map 500 pixels wide, 400 pixels tall, with a small set of controls (as opposed to "medium" or "large"), and it will be the hybrid (satellite + road map) kind.
Mad props are due to these people: