<input id="pac-input" class="controls" type="text" placeholder="Enter a location">
function initialize() {
...
var marker = new google.maps.Marker({
position: latlng,
map: map,
title: "title",
animation: google.maps.Animation.DROP
});
...
infowindow.open(map, marker);
...
}