For a long time now I've wanted to make a chapter member map mashup with Google maps. To see what I'm talking about, look at this page: http://stc-suncoast.org/map.html. I'm not finished putting all the members up there — this is obviously just a start.
Google Maps has an API that allows you to blend your own data with their mapping system. It's really much easier to create a Google map mashup than it may initially appear.
To create a member mashup with Google maps:
Go to the Google API page and sign up for an API key. This is a long string of digits you'll need.
Paste the source code into a notepad file, change the API key to your own API key (this appears near the top after the word "key"), and save the file with a .html extension.
Look for the following text in your file:// Set up three markers with info windows
var point = new GLatLng(43.65654,-79.90138);
var marker = createMarker(point,'<div style="width:240px">Some stuff to display in the First Info Window. With a <a href="http://www.econym.demon.co.uk">Link</a> to my home page</div>')
Replace the coordinates inside GLatLng() with the coordinates of the markers that you want. To convert your addresses into coordinates, use single geocoder for small addresses or this batch geocoder for larger jobs.
Replace the text "Some stuff to display in the First Info Window..." with text that you want to accompany your marker.
Repeat that chunk of marker text for as many markers as you want to create.
Upload the .html file somewhere on your directory. Voila, your Google mashup map appears.
I'd Rather Be Writing Newsletter
Get new posts delivered straight to your inbox.
About Tom Johnson
I'm a technical writer based in the California San Francisco Bay area. Topics I write about on this blog include technical writing, authoring and publishing tools, API documentation, tech comm trends, visual communication, technical writing career advice, information architecture and findability, developer documentation, and more. If you're a professional or aspiring technical writer, be sure to subscribe to email updates using the form above. You can learn more about me here.