Monday, January 7, 2008

How to use google maps

Below code for anchor tag will open the google map of the location in another window.

< a id="lnkMap" href='http://maps.google.com/maps?q=Street+City+State_Province+Zip_Postal_Code+Country' target="_blank" >Map/Directions< /a >

As the query string, you have to pass the adderss of the location seperated by '+' to the 'maps.google.com/maps' url.

No comments: