[gmap width="100%" height="200px" type="hybrid" zoom=11]London, UK[/gmap]
[gmap]Times Square, New York, USA[/gmap]
Only one (and the only mandatory) parameter is defined – address.
[gmap show_description="true" icon="star" description="White House|The official residence and principal workplace of the President of the United States (DIRECTIONS)."]White House, Washington, USA[/gmap]
Description bubble will be visible immediately after map is loaded (show_description=”true”); if this is false (default) you need to click on the marker to show the bubble. Icon is changed to “star” and we entered a description in “title|rest of text” format. The “DIRECTIONS” will be replaced by a link to Google Maps on which you can get directions to the entered address.
Important: if you’re using double quotes to write the shortcode then you must use single quotes for your HTML, otherwise the shortcode wont be parsed properly.
[gmap width="400px" height="400px" type="hybrid" zoom=10]London, UK[/gmap]
After defining width and height in pixels we set the map type to hybrid (satellite + roads) and zoom level to 10 (which is 50% of [0-20]).
[gmap zoom=11 description="$desc"]$my_address[/gmap]
Both the address and description are pulled from custom fields which we defined for this page. Click on the marker to toggle description.
[gmap icon="http://www.graphicsfactory.com/clip-art/image_files/tn_image/1/570901-tn_sun_1102.gif" debug=1 zoom=12]Los Angeles, USA[/gmap]
The icon is custom, defined via full URL and debugging is turned on.
[gmap icon="shop" zoom=15 height="200px"]34th street, NY, USA[/gmap]
Placing a map in the sidebar is as easy as putting it in a post. You’ll probably just need to adjust the hight a bit.