7

I have a google map on my page, i am displaying multiple markers on my map with infowindow attached to each marker, when i click on a marker its related infowindow opens & displays information for the marker.

I have a button in infowindow which updates related status of marker & upon update i change the markericon.

So, how do i get exact marker object of infowindow in which the button is clicked.

Note that there may multiple infowindows open at a time.

Thanks.

Nikhil Chavan
  • 1,685
  • 2
  • 20
  • 34

1 Answers1

2

to get marker which was clicked, you should use infoWindow.anchor

Błażej
  • 151
  • 1
  • 7