Here's an example where I use a custom icon for all waypoints: http://appleton-static.appspot.com/static/directions-custom-icon.html This uses the markerOptions field of DirectionsRenderer. Is this what you had in mind?
On Wed, Sep 8, 2010 at 6:01 PM, Garito <[email protected]> wrote: > Hi all! > How can I define a custom image for a waypoint? > > I do something like: > var iconUrl = "http://chart.apis.google.com/chart? > chst=d_map_pin_letter_withshadow&chld=" + totalMarkers++ + "|65ba4a| > 000000"; > var directionsService = new google.maps.DirectionsService(), > directionsDisplay = new > google.maps.DirectionsRenderer({markerOptions: {icon: iconUrl}}); > > and add the waypoints with the request object but I can't specify the > custom icon for the waypoint > > Is this posible? > > Thanks a lot > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
