>    google.maps.event.addListener(polyline, 'click', function ()
> { alert('click');});

google.maps.event.addListener(MyPolyline, 'click', function(event){
                some js functions
        });
works fine for me in v3!

event is optional, but there is a bug actually with event handler
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/3ee0bd59a57eae79/0942215a432e046a?lnk=gst&q=event.latLng#0942215a432e046a

try changing the name of the variable "polyline", maybe there is some
compatibly problem with that name

-- 
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.

Reply via email to