This code is ancient and does not work with current Google Maps. Historical interest only. Google Maps has a very clever system to draw lines onto its maps, such as when you want driving directions. Unlike just about every other system, Google Maps does not draw the line directly on the map itself. It gets your browser to do that, using various tricks. This means you can play a trick of your own:

