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