> > GEvent.addListener(marcador,'click',
> > function(event)
> > {       alert(event.clientX);}
>
> > );
> > mapa.addOverlay(marcador);
>
> > but this is not working because "event" is not what i think it is...
>
> This tells you what a click listener on a GMarker is passed 
> -http://code.google.com/apis/maps/documentation/reference.html#GMarker...
> It's a GLatLng.
>
> This tells you how to extract details from a GLatLng 
> -http://code.google.com/apis/maps/documentation/reference.html#GLatLng...
>
> Re-writing your listener as
>    GEvent.addListener(marcador, 'click', function(point) { ....
> should help understanding

But i don't want to extract the lat or lng ... I want the position in
the screen of that marker, i need X and Y of the marker in the page...
with that i want to locate a div near the marker... that's why I need
the x and y...

Bye!
--~--~---------~--~----~------------~-------~--~----~
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