Is there a simple method to access the objects and properties of the markers and infowindows that are generated by the DirectionsRenderer? (such as the "A" and "B" endpoints of the route)
I want to swap out the infowindows for the "A" & "B" markers with ones that I have customized (with changing content) from a different marker that is not part of the route.
I have attempted to transfer the content from the old infowindow to the new one on the route like this, but it does not display correctly due to too many parent divs and styling restrictions:
//infowin refers to the infowindow linked to the marker
result.routes[0].legs[0].end_address = MarkersArray[i].infowin.getContent();
Many thanks, E