My Other Where's George? Stuff My Where's George User Profile

Hit Map Tutorial


What I'm doing here is simply creating a modified version of the HTML code used to generate the US map. Rather than go to the official site and fill in all the data from scratch each time you want to update your map, it's easier to save the HTML code on your PC, and then modify the HTML as needed in a way that will save your selections such as colors, states selected, and labels for future use. Subsequent map updates, such as adding a new state, simply involve modifying a few lines of HTML source code in the file on your PC, opening the file in your browser, and clicking the "Draw the Map" button.

A little HTML terminology is necessary here for HTML newbies. Most of what needs to be done to the HTML code is simply selecting options and adding attributes. All that mouse clicking and filling in labels and titles on an HTML form can be done ahead of time by modifying the HTML code. Whenever the instructions below say to "select an option", it simply means to change <OPTION> to <OPTION selected>. That's right. Simply place the cursor in your text editor after the word OPTION and add the word "selected" (don't forget the separating blank space). To add an attribute, you add text of the form "attribute=value" to an HTML tag. For example, adding the attribute "border=2" (border is the attribute, 2 is the value), to <IMG src="mypic.gif"> results in <IMG src="mypic.gif" border=2>

So here's the procedure:

You're done. Save the file with all your changes, making sure the file name ends in .html (e.g. mapmaker.html). (Do not save the file as .txt which is the default file type for Windows Notepad editor). Then open the newly created HTML file using your internet browser. You should see the form with all of your selections and labels you just added to the HTML file. Don't worry about the missing graphics, and the hyperlinks won't work either, but that doesn't matter. Now just click the "Draw the Map" button to generate the map.

This works for the state county maps as well. Follow the same procedure, starting by clicking on the state link from http://monarch.tamu.edu/~maps2. The only tricky part will be changing the "action" attribute in the FORM tag. The state maps don't all reside in the same directory, so you will have to determine the directory from the browser's URL window and prepend that to the file given in the "action" attribute.


Back to top