I've created a page displaying different locations with two tabs - one for Google Maps and another for weather.
For example, take a look at this location:
The issue I'm facing is that when switching between the tabs, they don't load fully. If I set the weather tab as active first, then the Google Maps tab doesn't load completely and vice versa.
Could someone please point out what I'm doing wrong here?
This is the code snippet:
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
HTML:
<div style="padding-left: 75px">
<ul class="nav nav-tabs" id="myTab">
<li class="active"><a href="#lage">Lage</a></li>
<li><a href="#wetter">Wetter</a></li>
</ul>
</div>
<div class="tab-content">
<div class="tab-pane active" id="lage">
<div id="map-canvas" style="height: 350px; max-width: 1100px"> </div>
</div>
<div class="tab-pane" id="wetter">
<div id="basicMap" style="height: 350px; max-width: 1100px"> </div>
</div>
</div>
Thank you in advance for your assistance!