I am sure that you should trigger the click event from the outside, which means that you are running the function, so you can call the same function to show that the marker is being fired. For instance,
function callAfterMarker(){ alert("Market Clicked"); } google.maps.event.addListener(marker, 'click', function() { callAfterMarker(); }); <a href="javascript:callAfterMarker();">Address Name</a>";
In addition, you have a marker array, and you can decide with which marker your function or position should be calculated and executed. (ie) If you want to pass any marker related information to this function.
Hope this helps!
source share