I want to click on a marker and map programmatically, in Google Maps. How can I do this?
The right way to trigger a marker click/event programmatically is by using google.maps.event
:
google.maps.event.trigger(marker, 'click')
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