After spending the entire day reading up on this common problem people have with google map's embed program related to dynamic tabs when the main page does not show the map correctly on page load from. The Map is not centered. Does anyone have any suggestion on how to fix this problem, I'm pretty much willing to try anything.
I'm currently using Dynamic Content Tabs. I'm wondering is there a way to fix this problem in my situation.
Just an Example from the site.
<ul id="countrytabs" class="shadetabs">
<li><a href="#" rel="country1" class="selected">Tab 1</a></li>
<li><a href="#" rel="country2">Contacts</a></li>
<li><a href="#" rel="country3">Tab 3</a></li>
<li><a href="#" rel="country4">Tab 4</a></li>
<li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
</ul>
<div id="country1" class="tabcontent">
Tab content 1 here<br />Tab content 1 here<br />
</div>
<div id="country2" class="tabcontent">
Tab content 1 here<br />Google Maps<br />
</div>
google maps embd
<iframe width="400" height="425" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?ie=UTF8&q=Ace+Liquors&fb=1&gl=us&hq=ace+liquor+glendale&cid=17378010379165161653&t=m&ll=34.162084,-118.301747&spn=0.007546,0.008562&z=16&iwloc=A&output=embed"></iframe>
Personal Code for Contacts tab is as so:
<li>
<a id="contact" rel="hours" href="#">
<span>Contact</span>
</li>
from what i understand, i need a jquery piece of code that will load the maps when Contacts is clicked. Anyone have any suggestions to force the maps to load only when this event happens?