Google maps resizing

If you're experiencing weird behaviours with Google Maps not loading correctly, or appearing in the top left corner of your div, you may need to invoke the resize function to fix this.

var mapHolder = document.getElementById('map-canvas');
mapCanvas = new gmaps.Map(mapHolder, mapOptions);
gmaps.event.addListenerOnce(mapCanvas, 'tilesloaded', function(){
	gmaps.event.trigger(mapHolder, 'resize');
});

References
http://stackoverflow.com/questions/8677261/google-map-v3-map-loaded-event
https://developers.google.com/maps/documentation/javascript/events