GeoMedia GIS Blog

"A picture is only worth a thousand words. A map may be worth a thousand numbers. But a GIS is worth a thousand tables."

A Very Cool Google Maps Hack

Posted by jeffhobbs on February 6, 2008

I ran across this site a little while ago and had to post a link. You punch in a few parameters and you get HTML code to place a Google Map on your own web site.

I punched in my work address along with a few other parameters and got the following code back:

<p align=”center”> <iframe name=”mapframe” src=”http://www.gearthhacks.com/yourmap/mapiframe.php?map=1137&#8243; frameborder=”0″ width=”450″ scrolling=”no” height=”300″></iframe> </p> <p align=”center”> <img src=”http://www.gearthhacks.com/siteimages/logo_ge.gif&#8221; align=”absmiddle” width=”16″ height=”16″ /> <a href=”http://www.gearthhacks.com/yourmap/yourmapkml.php?map=1137″>View in Google Earth</a> — <a href=”http://www.gearthhacks.com/download-google-earth.php”>Get Google Earth</a><br /> Powered by <a href=”http://www.gearthhacks.com/yourmap/”>YourMap</a&gt; from <a href=”http://www.gearthhacks.com/”>Google Earth Hacks</a>.</p>

Unfortunately my blog doesn’t allow me to actually create my own HTML, so I can’t actually create the map to show you. However I did take a screen shot of the map so you can see how it looks.

googlemapshack

The entire process took about one minute. Although you really can’t easily adapt the code for reuse among different applications e.g. pass it an x/y and show a map for a parcel, it’s great for any static maps you need to create e.g. a map to a user’s group meeting.

Advertisements

One Response to “A Very Cool Google Maps Hack”

  1. ryan91236 said

    Sounds perfect to me. I have read this post with a great pleasure. You should write much more often.

Sorry, the comment form is closed at this time.

 
%d bloggers like this: