On Feb 15, 8:54 am, jlove <[email protected]> wrote:
> Is there an example of how to add an event listener for Polylines? I
> have been able to add all of the event listeners for markers, but none
> for Polylines... I assume there is something wrong with:
>
>    google.maps.event.addListener(polyline, 'click', function ()
> { alert('click');});
>

Maybe the variable polyline is actually a potato. We can't know that.
Your syntax is the same as shown in the documentation, but unless you
follow the posting guidelines and demonstrate the problem not many
people can help. (I will not bother to set up an example to test
someone else's problem)

Posting Guidelines
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e#
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical


> where polyline is a polyline that is displayed. is there a
> polyline.setClickable(); that needs to be set?


Is there a polyline.setClickable() in the documentation?

--
Marcelo - http://maps.forum.nu
--



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