I have found that, at present, it is not possible to capture a "click"
event on a polyline rendered by the DirectionsRenderer.

This is frustrating as there are times, in my implementation, when the
user will need to click on the itinerary to indicate a point where he/
she wishes to deviate to a poi without affecting the existing
itinerary.

I still want to keep the greatly useful "draggable" option for the
phase of defining the itinerary.
The only way I have found to get round this limitation, is to draw the
path myself (thick line) AND have the DirectionsRenderer draw it as
well (thin line).  At this point I can capture a click on the line,
provided I disable the dragging functionality.

Consequently, I have opened a change request (functionality
enhancement) which can be found here should any of you wish to support
this :
http://code.google.com/p/gmaps-api-issues/issues/detail?id=2933

Simon

-- 
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 google-maps-js-api...@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