Sunday, June 27, 2010

Re: V2 polyline click

On Jun 27, 8:48 pm, "deathdevi...@hotmail.com"
<deathdevi...@hotmail.com> 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 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