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.
to get marker which was clicked, you should use infoWindow.anchor
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With