Google Maps IFRAME tricks
When doing sites I usually use the Google Maps IFRAME to drop a map onto the contact page or whatnot. I know the JS API is way cooler, but time is of the essence more often than never. So, anyway…The problem with using the copy-and-paste code from the Google Maps website is that it zooms to center on the map point, often leaving the balloon with the address outside the bounds of the iframe. What is more desirable is to have the map point and balloon zoom to fit. Well, here’s my solution to make that happen.
<iframe width="100%" height="400" frameborder="0" scrolling="yes" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&iwd=1&iwloc=addr&source=s_q&hl=en&geocode=&t=m&q=The+White+House&sll=&sspn=&ie=UTF8&hq=&hnear=1600+Pennsylvania+Ave,+Washington+DC&ll=&spn=0.035898,0.055189&z=16&output=embed"></iframe>