I have a page with two tabs. The first tab has photos and the second a google map. The problem is that the google map is not completely drawing because it is in a hidden div
This works for me:
google.maps.event.trigger(map, 'resize');
but, after the tab is shown...
$('a[href="#mytab"]').on('shown', function (e){ google.maps.event.trigger(map, 'resize'); moveTo(); }); // realocate the map
I am using bootstrap, find the similar function in jquery UI.