On Jun 27, 8:48 pm, "[email protected]" <[email protected]> wrote: > 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=ABQIAAAAz... > > i really need this feature in my work.
Where is your map in which it doesn't work? I get pretty straight forward javascript errors in the map to which you provided a link earlier in the thread (county_vars is undefined), but it isn't clear whether or not that is your map and I don't see the code you reference above in it. -- Larry > > 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.
