I have multiple waypoints made by using the reference of this example:
http://code.google.com/apis/maps/documentation/javascript/examples/directions-panel.html

Could anyone help me how to customize the infoWindow of the infoWindow of 
setOptions of google.maps.DirectionsRenderer()?

My DirectionsRenderer variable is this:
var directionsDisplay = new google.maps.DirectionsRenderer();

I have made an infoWindow variable:

var infowindow_forRoutedMarker = new google.maps.InfoWindow({
                content: companyName_and_address[i]
              });



Right now, this is how I set my directionsDisplay:

directionsService.route(request, function (result, status) {
                if (status == google.maps.DirectionsStatus.OK) {
                    directionsDisplay.setDirections(result); 
                  
                    directionsDisplay.setOptions({
                        draggable: false,
                        *infoWindow*: infowindow_forRoutedMarker,
                        suppressInfoWindows: false,
                        suppressMarkers: false,
                        markerOptions: ({ clickable: true,
                                          zIndex: 3 })
                    });
                }
            });



Is it possible to change the default infoWindow to my 

infowindow_forRoutedMarker?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Wu1lTMialNMJ.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to