> 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.click
It's a GLatLng.
This tells you how to extract details from a GLatLng -
http://code.google.com/apis/maps/documentation/reference.html#GLatLng.lat
Re-writing your listener as
GEvent.addListener(marcador, 'click', function(point) { ....
should help understanding
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---