On Jan 21, 7:21 am, "suzuki.y" <[email protected]> wrote:
> It seems like a marker is recognized by using "dragstart" or "dragend"
> but not 'moveend'.
>
> Here is a partial coding for a marker event, could you check if I am
> on a right track or not

Could you check (and follow) the group's posting guidelines?
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical

--
Marcelo - http://maps.forum.nu
--




>
> ------------------------------------------------------
> function load(){
>
> // reading a set of coordinates from a textarea
> var pointsets = document.getElementById("markerarray").value;
> var sets = pointsets.split(", "); // each coordinate(Lat and Lng) are
> separated by commas
>
> var mgr = new GMarkerManager(map);
>
> // a set of coordinate points
> vav markerpoints = new Array();
> var newpoint = new Array(2);
> var newsets = new Array();
>
> for(var i=0; i<sets.length/2; i++){
>     markerpoints[i] = new GLatLng(sets[2*i], sets[2*i+1]);
>     newpoint = makeMarker(markerpoints[i]);
>     map.addOverlay(newpoint[0]);
>     newsets[i] = newpoint[1];
>
> }
>
> document.getElementById('newcoordinates').value = newsets;
>
> }
>
> function makeMarker(point){
>    var arrays = new Array(2);
>    var marker =  new GMarker(point, {draggable:true, autoPan:false,
> bouncy:true});
>     arrays[0] = marker;
>     arrays[1] = point;
>
>     GEvent.addListener(marker, "dragend", function(){
>                 arrays[1] = marker.getLatLng();
>         });
>
>                return arrays;}
>
> --------------------------------------------------
>
> I'm not quite sure how I can obtain changed coordinates.......
> I hope I can get the answer soon....
>
> Thank you very much,
>
> Yoko
-- 
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