function initialize() { var myLatlng = new google.maps.LatLng(53.8154002,-1.5686282,15); var myOptions = { zoom: 15, center: myLatlng, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var marker = new google.maps.Marker({ position: myLatlng, map: map, title:"Leeds Community Healthcare NHS Trust, First Floor, Stockdale House, Headingley Office Park, Victoria Road, Leeds LS6 1PF", icon: '../images/map-marker.png' }); $(window).resize(function() { // (the 'map' here is the result of the created 'var map = ...' above) google.maps.event.trigger(map, "resize"); }); }