Hi!

I'm having troubles with line click event....

i have this code:

var newLine = new GPolyline([]);
map.addOverlay(newLine);
newLine.enableEditing({onEvent: 'mouseover'});
newLine.disableEditing({onEvent: 'mouseout'});
GEvent.addListener(newLine,'click',function(latlng){
alert(1);
});

but it seems that it doesn't work!!! i'm using the version 2 of API,
as you can see

http://maps.google.com/maps?file=api&v=2.s&sensor=false&key=ABQIAAAAzr2EBOXUKnm_jVnk0OJI7xSosDVG8KKPE1-m51RBrvYughuyMxQ-i1QfUnH94QxWIa6N4U6MouMmBA

i really need this feature in my work.

thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to