tags:

views:

233

answers:

1

I am attempting to embed a google map into a page of a website using google maps' iframe capabilities (so that I can avoid having to add things within the head and inside the body tag of the page)

When I create the iframe code, everything is fine except for the fact that the info window associated with the pin is opening by default when the page loads.

I'm wondering if anyone has successfully overridden this behavior. I've found a few posts describing how to do it for a geocoded address but not for a specific place of business (it seems the attributes are different)

Code:

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?q=Madison+Square+Garden+New+York+NY&amp;amp;hl=en&amp;amp;cd=1&amp;amp;ei=PoNXS-hcmuLJBNfexZUI&amp;amp;sig2=dFymmpNhsjY6dEvjphBbPQ&amp;amp;sll=40.731053,-73.951703&amp;amp;sspn=0.127506,0.130247&amp;amp;ie=UTF8&amp;amp;view=map&amp;amp;cid=5487804314630162138&amp;amp;ved=0CCUQpQY&amp;amp;hq=Madison+Square+Garden+New+York+NY&amp;amp;hnear=&amp;amp;ll=40.750354,-73.992491&amp;amp;spn=0.006295,0.006295&amp;amp;iwloc=A&amp;amp;output=embed"&gt;&lt;/iframe&gt;

(This is the suggestion I found on 'net that does not seem to work for a specific place of business: http://www.sugarwebdev.co.uk/blog/hide-or-remove-the-info-window-on-an-embedded-google-map/)

A: 

I tried the solution posted in your question, using the iframe code you provided and it worked fine. I added:

&amp;iwloc=near

right after the 'output=embed' at the end.

Cannonade
@Cannonada ... thanks so much ... I tried adding the iwloc property in a couple of different places, including the suggestion of the link I included (which is somewhere in the middle) but, for whatever reason, never at the end.
Michael
Michael
No problem :) Glad I was able to help.
Cannonade