I am trying to implement a map / direction based application using the Google maps V3 API. So far, I have managed to display a map and show directions for two selected places.
However, I cannot set custom content in InfoWindow using DirectionsRendererOptions. The following is what I use.
var renderer = new google.maps.DirectionsRenderer(
{
infoWindow : new google.maps.InfoWindow(
{
content : "This is a test"
}
)});
It seems that the custom InfoWindow is getting set, because when the disableAutoPan property is set in the new InfoWindow, the expected behavior is expected. However, the content is not defined.
Is there a way to access the contents of InfoWindow (generated by the DirectionsRenderer) and also update it?
Thanks in advance.