On 4 February 2011 11:59, Vinay 's <[email protected]> wrote:
>            GEvent.addListener(marker, "dragend", function(){
>            var points;
>            points= marker.getLatLng();
>            //alert(points);
>            });

You don't need to do that, because the position of the marker is
passed to the function, so it's even easier:

             GEvent.addListener(marker, "dragend", function(point){
             // use point in this function
             // alert(point);
             });

http://code.google.com/apis/maps/documentation/javascript/v2/reference.html#GMarker.dragend

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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