'; var infowindow = new google.maps.InfoWindow({ content: contentString }); var image = 'http://artasim.ro/wp-content/themes/theme48523/images/marker.png'; var marker = new google.maps.Marker({ position: myLatlng, map: map, title: "Santa Barbara", icon: image }); // To add the marker to the map, call setMap(); marker.setMap(map); google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); }); }