var initialize = function() { var latlng = new google.maps.LatLng(43.884772,10.232509); // imposta le opzioni di visualizzazione var options = { zoom: 15, center: latlng, mapTypeId: google.maps.MapTypeId.HYBRID }; // crea l'oggetto mappa var map = new google.maps.Map(document.getElementById('mappadove'), options); var iconb = "immagini/verde.png"; var myLatLng = new google.maps.LatLng(43.8845919,10.2317700); var contentString = 'Esperia'; var infowindows = new google.maps.InfoWindow({content: contentString, maxWidth: 100}); var beachMarker = new google.maps.Marker({position: myLatLng, map: map, icon: iconb, title: 'Bagno Esperia'}); google.maps.event.addListener(beachMarker, 'click', function() {infowindows.open(map,beachMarker);}); } window.onload = initialize;