function initialize() { var myLatLng = {lat: 43.248664, lng: -8.580516}; var mapCanvas = document.getElementById('map'); var mapOptions = { center: myLatLng, zoom: 16, mapTypeId: google.maps.MapTypeId.ROADMAP } var map = new google.maps.Map(mapCanvas, mapOptions); var marker = new google.maps.Marker({ position: myLatLng, map: map, title: 'Oficinas J. Esmorís e Hijos, S.L.' }); } google.maps.event.addDomListener(window, 'load', initialize);