I'm trying to place two maps in my website, in toggleable tabs. So when the site is loaded, the active pane map is loaded fine, but when I swap to another tab, it just stay gray: 
But if I try it on my smartphone, works fine :S.
Well, here is my code, I hope you can help me:
DIVS:
<div id="huelva" class="tab-pane fade"> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12" style="padding-top: 10px"> <div id="huelvamap" style="width:100%; height:300px; overflow: visible;"></div> </div> ... SCRIPT:
<script> function initMap() { // Create a map object and specify the DOM element for display. var map = new google.maps.Map(document.getElementById('ceutamap'), { center: {lat: 35.8889515, lng: -5.3535556}, scrollwheel: false, zoom: 12 }); var map2 = new google.maps.Map(document.getElementById('huelvamap'), { center: {lat: 37.2709008, lng: -6.9571999}, scrollwheel: false, zoom: 12 }); } </script> <script src="https://maps.googleapis.com/maps/api/js?key=[api_key]&callback=initMap" async defer></script> If it's needed I will upload the site, post the link!
Thanks in advance