I\'m using gmaps.js to load 2 maps in Bootstrap tabs. What happens, is the first map loads fine, but when the second tab (hidden) is clicked, the map doesn\'t load properly.
Try this way
http://jsfiddle.net/7PueE/
function loadmap() {
var nmap = new GMaps({
div: '#loveland-map',
lat: 40.431917,
lng: -105.078848,
width: '100%',
height: '500px',
scrollwheel: false,
});
nmap.addMarker({
lat: 40.431917,
lng: -105.078848,
title: 'Loveland Office',
infoWindow: {
content: ''
}
});
}