Hi,
In plain JS, I can attach an event listener to a marker:
google.maps.event.addListener(marker, 'click', function(ev) {
// do something when that particular marker is clicked
});
The slightly older react-googlemaps library has a separate Marker component which can have onClick attributes attached to it.
Is there an equivalent mechanism for this React component?
Hi,
In plain JS, I can attach an event listener to a marker:
The slightly older react-googlemaps library has a separate Marker component which can have onClick attributes attached to it.
Is there an equivalent mechanism for this React component?