Google Maps Click Event Not Firing on Marker

Hey everyone,

Has anyone successfully triggered a click event on a Google Maps marker and passed the event to a variable (e.g., marker)?

I want to store the click position and the marker’s data in this variable and then display the data inside a div positioned absolutely at the click’s x/y coordinates. However, the click event doesn’t seem to fire properly on the marker, and I’m not sure why.

Has anyone run into this issue or found a solution?

Thanks in advance!