tomchentw / react-google-maps

React.js Google Maps integration component
https://tomchentw.github.io/react-google-maps/
MIT License
4.62k stars 939 forks source link

Directions Renderer Question #833

Open LukasZvikas opened 6 years ago

LukasZvikas commented 6 years ago

Hey guys, I have a question. Is it possible to add on click events to directionsRenderer? I want to trigger another component outside the map when the marker is clicked, but can't find a way to do it yet. Any help would be appreciated. Thanks.

elongl commented 6 years ago

https://developers.google.com/maps/documentation/javascript/reference/3.exp/marker#Marker.click As you can see in the documentation, the Marker has a click event. "This event is fired when the marker icon was clicked."