Change Routes on DirectionsRenderer
Hi, I would like to have a list of possible destinations and depending what destination user clicked the route would change accordind to curren destination. The best solutons for this is to pass the origin and destination as props to MapWithADirectionsRenderer (like the example on docs) ? Or is it possible to change routes inside the component with DirectionsService? Thanks!
The best solutons for this is to pass the origin and destination as props to MapWithADirectionsRenderer
Yes
Or is it possible to change routes inside the component with DirectionsService?
You can try and let me know.
Hey, @tomchentw I passed origin and destination as props and it worked. Thanks!
Hey how did you pass origin and destination to the directions renderer?
using props…… https://tomchentw.github.io/react-google-maps/#!/DirectionsRenderer
Hey how can i change styles of path line in DirectionsRenderer component?