Sunday, June 27, 2010

V2 polyline click

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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate