Please see following screenshot.
My code is
function get(position, html, resultsMap){
//alert(position);
var getDirection = new google.maps.InfoWindow({
content: '',
position: position
});
getDirection.close();
getDirection.setContent(html);
getDirection.open(resultsMap);
}
Function call is
get(position, html, resultsMap);
All this working fine except above issue. I want to close previous infoWindow and display only new Infowindow, when click another link ( all links has same class).How to fix.